PLC-Driver MITSUBISHI MELSEC Q / L / A / FX
Transcrição
PLC-Driver MITSUBISHI MELSEC Q / L / A / FX
Driver-Addendum PLC-Driver MITSUBISHI MELSEC Q / L / A / FX programming interface PLC-ANALYZER pro 5 www.autem.de The logic analyzer for programmable logic controls Driver Addendum MITSUBISHI MELSEC Q / L / A / FX - programming interface Ó Copyright 1995 - 2015 AUTEM GmbH. All rights reserved. No part of this handbook may be reproduced, photocopied or electronically stored partially or completely without the express permission in writing of AUTEM. The software described in this handbook is the subject of software licensing and may only be used according to the rules of the agreement. AUTEM Gesellschaft für Automatisierungssoftware mbH Dithmarscher Straße 29 D - 26723 Emden Deutschland Telefon Telefax E-Mail Internet (+49) (0)4921-9610-0 (+49) (0)4921-9610-96 [email protected] www.autem.de AUTEM gives neither a guaranty for this handbook nor a stated or implied guaranty of typical market quality or suitability for a particular purpose. AUTEM accepts no liability for errors contained or damage resulting from the equipment, performance or usage of this material. Most of the software and hardware names in this book are trademarked and the subject of legal regulations. Tips, suggestions and improvements gratefully received. Please write to AUTEM 1st Edition 2015 Contents iii Contents 1 INSTALLATION 1.1 Installation of PLC driver 1.1.1 Installing additional hardware 1.1.2 Installing additional software 1.2 Configuration of the PLC driver 2 DATA ACQUISITION 2.1 2.2 PLC Models and CPU’s supported Recordable PLC addresses 2.2.1 Number of simultaneously recordable addresses 2.2.2 Use of name lists (symbols) 2.3 Timing behaviour and particularities during data acquisition 2.3.1 Data transfer speed 1-1 1-1 1-1 1-1 1-2 2-1 2-1 2-1 2-1 2-1 2-1 2-2 Illustrations Fig. 1-1 Configuration of the PLC driver 1-2 Contents 1-1 1 Installation This driver addendum is additional to the PLC-ANALYZER pro handbook and explains particularities and provides important information for the use of the following driver: · MITSUBISHI MELSEC Q / L / A / FX - programming interface This driver acquires PLC signals via programming interface of the PLC. It is important, that you read through the driver addendum first, before you use a PLC driver. Please pay attention to the WARNINGS that advise you on possible dangers when using PLCANALYZER pro. ! Warning Errors that may occur in the automated facility endangering humans or causing large-scale material damage must be prevented by additional external precautions. These precautions (e.g. independent limit monitors, mechanical interlocks) must guarantee a safe operation even in the case of dangerous errors. 1.1 Installation of PLC driver You can install the PLC driver when PLC-ANALYZER pro is running. Select PLC driver in the menu Extras. In the window PLC driver click the button Add. If the desired driver is not in the list, then you have to install a new driver by activation via the License-Key management (s. user manual PLC-ANALYZER pro 5 - chapter 2-2 Installation). With PLC-ANALYZER pro you can load the same or different PLC drivers more than once to acquire data from different PLCs. 1.1.1 Installing additional hardware If you have already connected your programming unit (or your PC) for programming under Mitsubishi GX Developer with the automation device, then you normally must do nothing else. Otherwise connect a free COM port (serial connection) of your programming unit (or PC) with the programming interface of the automation device. 1.1.2 Installing additional software Aside from the PLC-ANALYZER pro base module and PLC driver you must install the programming software Mitsubishi GX Developer. Contents 1-2 1.2 Configuration of the PLC driver After installing the driver select Properties. If various drivers are installed, the parameters of each can be adjusted individually. Fig. 1-1 Configuration of the PLC driver First enter a meaningful Name. Choose under PLC whether you want to record signals from a MELSEC Q-, A- or FX-control. Under Port you select the COM port or the USB port of the PC, which is connected to the PLC. Set whether the connection cable is attached to the C24-Module or directly to the CPU. If you choose MELSEC Q or MELSEC A set the parameters in Baudrate, Databits, Stopbits und Parity. Set under PLC-Address the address of MELSEC Q resp. of the MELSEC A. The PLC address is a 2-digit hexadecimal value. The default value is “FF”. It means the station itself. In a MELSECNET or MELSECNET/B it is possible to interfere a slave by indication of a station no. Note, if you choose a master-station you can interfere to all slaves, but from one slave-station only to the Master and the slaves between. Use Time stamp to decide whether a time stamp is to be entered in the signal file at each monitoring point or only when the signal changes. In the first case the signal file resulting is bigger because time stamping is continuous even if the signal does not alter. Scan interval lays down the interval between reading data from the PLC. For time insensitive applications e.g. temperatures a generous probe interval can be chosen. The signal files resulting are smaller. Under Symbolism you can assign a symbol file to the loaded driver. This makes possible the use of symbolic addresses during the address input (s. user manual PLC-ANALYZER pro 5 - chapter Contents 1-3 4.1 Address selection). In addition to the absolute address the symbolic address and the comment of the address will be displayed and saved in the project and in the signal file. Click the button Connecting test to check whether the PLC-ANALYZER can establish a connection to the PLC with the adjusted parameters. Data acquisition 2-1 2 Data acquisition 2.1 PLC Models and CPU’s supported The following models of the MELSEC Q series are supported by the driver: Q02(H)CPU, Q06HCPU, Q12HCPU, Q25HCPU, Q02(H) A mode, Q06HCPU A mode, Q12HCPU A mode, Q25HCPU A mode, Q2A(-S1)CPU, Q3A, Q4A, Q4AR The following models of the MELSEC A series are supported by the driver: A0J2HCPU, A1CPU, A1NCPU, A1SCPU, A2CPU(-S1), A2NCPU(-S1), A2ACPU(-S1), A2CCPU, A3CPU, A3NCPU, A3ACPU, A3HCPU, A3MCPU, A3UCPU, A4UCPU The following models of the MELSEC FX series are supported by the driver: FX-x, FX0N-x, FX0-x Other automation devices and CPUs from the MELSEC family are generally compatible with PLC-ANALYZER pro, but have not been explicitly tested. 2.2 Recordable PLC addresses The following table shows the addresses possible and the appropriate syntax: Syntax Art der Adresse Beispiel Xxxxxx Input relay (Hex.) X 3F Yxxxxx Output relay (Hex.) Y 47 1,2 FXxxxxx Argument input (Dez.) FYxxxxx Argument output (Dez.)1,2 DXxxxxx Direct input (Hex.) 1,2 DYxxxxx Direct output (Hex.) Mxxxxx Internal relay (Dez.) Lxxxxx Latch relay (Dez.) Sxxxxx Step relay (Dez.) 1 2 Unusable with MELSEC A Unusable with MELSEC FX 2 1,2 FX 13 FY 74 DX D3 DY 1A M 113 L 13 S 512 Data acquisition SMxxxxx SDxxxxx 2-1 Special relay (Dez.) 1,2 Special register (Dez.) SM 17 1,2 SD 112 Fxxxxx Annunciator (Dez.) 2 F 12 TSxxxxx Timer contact (Dez.) TS 5 TCxxxxx Timer coil (Dez.) TC 6 TNxxxxx Timer present value (Dez.) SSxxxxx SCxxxxx TN 5 Accumulative Timer contact (Dez.) Accumulative Timer coil (Dez.) 1,2 SS 5 1,2 SC 6 1,2 SNxxxxx Accumulative Timer present value (Dez.) CSxxxxx Counter contact (Dez.) CS 5 CCxxxxx Counter coil (Dez.) CC 2 CNxxxxx Counter present value (Dez.) CN 2 SBxxxxx Special linked relay (Hex.) 1,2 SWxxxxx Special linked register (Hex.) Gxxxxx Buffer memory (Dez.) 1 Dxxxxx Data register (Dez.) FDxxxxx Wxxxxx Link relay (Hex) Rxxxxx File register (Dez.) 2 SW 2C4 G 34 1,2 FD 432 2 W F1A 2 Bxxxxx B 1CF R 432 2 Axxxxx Accumulator (Dez.) Zxxxxx Index register (Dez.) ZRxxxxx SB 1B6 1,2 D 113 Argument register (Dez.) Link register (Hex.) SN 5 Extended file register (Dez.) A 122 Z 472 1,2 ZR 36733 2.2.1 Number of simultaneously recordable addresses You can monitor 512 addresses simultaneously with the Mitsubishi MELSEC driver. An address means a word- or a bit address. 2.2.2 Use of name lists (symbols) You can use variables created by Mitsubishi GX Developer as symbols in PLC-ANALYZER pro (see user manual). Therefore you have to export the variables as CSV file. Select Export variables in the Extras menu to do this. 2.3 Timing behaviour and particularities during data acquisition 1 2 Unusable with MELSEC A Unusable with MELSEC FX Data acquisition 2-2 The following captures describe the time behaviour and some particularities during the data acquisition. 2.3.1 Data transfer speed The intervals between scan transfers from the MELSEC PLC to the computer are dependent on the cycle time of the PLC and the baudrate. For a scan interval of e.g. 20 ms and an equal cycle time of the CPU there is one scan for each cycle. If the cycle time of the PLC is longer, the scan intervals synchronize with the PLC cycle. For a shorter cycle time the computer does not obtain a scan for each cycle, resulting in a partial loss of information. This loss can be made up by repeated measurement of the signals in question. Note that bit values and word values use two separate calls. That’s why bit values and word values don’t descend from the same PLC cycle. The offset between both is max. one scan normally. The following table shows some values of time behaviour during acquisition: MELSEC Q: Requested data 115.200 Baud 19.200 Baud 1 bit 10 ms 60 ms 1 register 15 ms 63 ms 50 bits 17 ms 78 ms 50 register 27 ms 120 ms 50 bits + 50 register 31 ms 124 ms MELSEC A: Requested data 9.600 Baud 1 bit 40 ms 1 register 45 ms 50 bits 95 ms 50 register 170 ms 50 bits + 50 register 230 ms MELSEC FX: Requested data 9.600 Baud 1 bit 23 ms 1 register 20 ms 152 bits 64 ms 18 register 97 ms 152 bits + 18 register 164 ms Data acquisition 2-3 The acquisition influences the cycle time of the controller. The more addresses will be recorded, the more prolong the cycle time. This is normal and occurs in “Batch Monitor” with the programming software GX-Developer too.