Home

Chapter 5 - AutomationDirect

image

Contents

1. Status Monitor 1 h2100 Error Codes 00 No fault occurred 11 Hardware Protection Failure HPF 01 Over current oc 12 Over current during accel ocA 02 Over voltage ov 13 Over current during decel ocd 03 Overheat oH 14 Over current during steady state ocn 04 Overload oL 15 Ground fault or fuse failure GFF 05 Overload 1 oL1 16 Low voltage Lv 06 Overload 2 oL2 17 Input power 3 phase loss PHL 07 External Fault EF 18 External Base Block bb 08 CPU failure 1 cF1 19 Auto adjust accel decel failure cFA 09 CPU failure 2 cF2 20 Software protection code codE 10 CPU failure 3 cF3 Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 9 Chapter 5 GS2 Modbus Communications Status Monitor 2 h2101 GS2 Memory Address GS2 EB Data U hexadecimal 45 44 Bits zo PPP PPP Telefe p fo vy AV v DM YY AV 0 WV N Bit Values v WD A VN Oo VO WN KAL decimal Status Monitor 2 Memory Address h2101 Bit s Value Binary Decimal 00 0 Drive operation stopped STOP 01 1 Run to Stop transition 10 2 Standby 11 Drive operation running RUN JOG active Rotational direction forward FWD REV to FWD transition FWD to REV transition Rotational direction reverse REV AC Drive Status Source of frequency determined by serial comm interface P4 00 5 Source of frequency determined by Al terminal P4 00 2 3 or
2. 21 This rung loads a value of 0 into V3002 for the drive Forward Command Reverse Forward X6 22 This rung loads a value of 1 into V3003 for the drive External Fault Command External Fault X7 23 This rung loads a value of 0 into V3003 to remove the External Fault Command External Fault X7 24 This rung loads a value of 1 into V3004 for the drive External Fault Reset Command External Fault Reset X8 25 This rung loads a value of 0 into V3004 to remove the External Fault Reset Command External Fault Reset X8 26 27 5 28 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications ee DirectLOGIC Modbus Ladder Programming cont Separate Run Command Write Instruction Why do we write the Run Command with a separate write instruction If we write the Run Command to the drive along with the Speed Reference Direction External Fault and Fault Reset Commands we can keep the parameter addresses in sequence and we can update all five of the commands with one write instruction This method is valid only if we disable the drive s keypad STOP button P3 00 04 Typically the keypad STOP button will be enabled P3 00 03 and we need to prevent a change in one of the other commands from overriding a keypad Stop Command by causing a previous Run Command to be rewritten to the drive By using a separate Run Command write instruction only a deliberate Run Command change by the program will run the drive again after a s
3. P 4 12 Analog Output Gain 040C 41037 Presets Parameter Addresses 4 P 5 00 Jog 0500 41281 Multi Speed 1 0501 41282 Multi Speed 2 0502 41283 Multi Speed 3 0503 41284 Multi Speed 4 0504 41285 Multi Speed 5 0505 41286 Multi Speed 6 0506 41287 Multi Speed 7 0507 41288 Parameter can be set during RUN Mode 0301 40770 0302 40771 0303 40772 1st Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 5 Chapter 5 GS2 Modbus Communications ET Parameter Memory Addresses continued Modbus Decimal GS2 Parameter Description Hexadecimal Protection Parameter Addresses P 6 00 Electronic Thermal Overload Relay 0600 41537 P 6 01 Auto Restart after Fault 0601 41538 P 6 02 Momentary Power Loss 0602 41539 P 6 03 Reverse Operation Inhibit 0603 41540 P 6 04 Auto Voltage Regulation 0604 41541 P 6 05 Over VoltageTrip Protection 0605 41542 P 6 06 Auto Adjustable Accel Decel 0606 41543 P 6 07 Over Torque Detection Mode 0607 41544 P 6 08 Over Torque Detection Level 0608 41545 P 6 09 Over Torque Detection Time 0609 41546 P 6 10 Over Current Stall Prevention during Acceleration 060A 41547 Over Current Stall Prevention during Operation P 6 12 Maximum Allowable Power Loss Time 060C 41549 P 6 13 Base Block Time for Speed Search 060D 41550 P 6 14 Maximum Speed Search Current Level 060E
4. RS232 RJ 12 6P4C Serial Comm Port RS485 RS 232C Interface Switches SW2 and SW3 l 2 GND E fj Must be set to RS232 for 6 1 p a eW an RS 232C connection VM 5 5V RS23 RS 485 An RS 485 network cable can span up to 1000 meters 4000 feet For an RS 485 connection set the GS2 DIP switches SW2 and SW3 to RS485 RJ 12 6P4C Serial Comm Port RS485 rR h0 RS 485 Interface Switches SW2 and SW3 2 GND E E A must be set to RS485 for 6 1 3 90 an RS 485 connection 4 SG SW3 SW2 j MAT 5 5V RS23 The GS2 Series AC drive communication address is specified by P9 00 The third party device then controls each AC drive according to its communication address The GS2 Series AC drive can be setup to communicate on standard Modbus networks using the following transmission modes ASCII or RTU Using the Communication Protocol parameter P9 02 you can select the desired mode data bits parity and stop bits The mode and serial parameters must be the same for all devices on a Modbus network 5 30 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications Data Format ASCII Mode 10 bit character frame For 7 bit character P9 02 00 7 data bits no parity 2 stop bits Start 2 3 4 5 6 Stop Stop bit bit bit 7 bit character _ 10 bit character frame P9 02 01 7 data bits even parity 1 stop bit Start 2 3 4 5 6 Even Stop bit parity bit
5. 15 GS2 11P0 115V 1ph 1hp 16 20 Reserved 21 GS2 51P0 575V 3ph 1hp 22 GS2 52P0 575V 3ph 2hp 23 GS2 53P0 575V 3ph 3hp 24 GS2 55P0 575V 3ph 5hp 25 GS2 57P5 575V 3ph 7 5hp 26 GS2 5010 575V 3ph 10hp Parameter can be set during RUN Mode Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 3 Chapter 5 GS2 Modbus Communications ET GS2 Parameter Memory Addresses Parameter Memory Addresses GS2 Parameter Modbus Description Hexadecimal Decimal Motor Parameter Addresses P 0 00 Motor Nameplate Voltage 0000 40001 P 0 01 Motor Nameplate Amps 0001 40002 P 0 02 Motor Base Frequency 0002 40003 P 0 03 Motor Base RPM 0003 40004 P 0 04 Motor Maximum RPM 0004 40005 Ramp Parameter Addresses P 1 00 Stop Methods 0100 40257 P 1 01 Acceleration Time 1 0101 40258 P 1 02 Deceleration Time 1 0102 40259 P 1 03 Accel S curve 0103 40260 P 1 04 Decel S curve 0104 40261 Acceleration Time 2 0105 40262 Deceleration Time 2 0106 40263 Select method to use 2nd Accel Decel 0107 40264 Accel 1 to Accel 2 frequency transition 0108 40265 Decel 2 to Decel 1frequency transition 0109 40266 Skip Frequency 1 010A 40267 Skip Frequency 2 010B 40268 Skip Frequency 3 010C 40269 Skip Frequency Band 0111 40274 DC Injection Current Level 0112 40275 DC Injection during Start up 0114 40277 DC Injection during Stopping 0115 40278 Start point for DC Injection 0116 40279
6. 41815 Upper Bound for Integral Control 0717 41816 Derivative Filter Time Constant 0718 41817 PID Output Frequency Limit 0719 41818 Feedback Signal Detection Time O71A 41819 PID Feedback Loss 071B 41820 Display Parameter Addresses User Defined Display Function 0800 42049 Frequency Scale Factor 0801 42050 Parameter can be set during RUN Mode Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 7 Chapter 5 GS2 Modbus Communications ET Parameter Memory Addresses continued Modbus Decimal GS2 Parameter Description Hexadecimal Communications Parameter Addresses P 9 00 Communication Address 0900 42305 P 9 01 Transmission Speed 0901 42306 P 9 02 Communication Protocol 0902 42307 P 9 03 Transmission Fault Treatment 0903 42308 P 9 04 Time Out Detection 0904 42309 P 9 05 Time Out Duration 0905 42310 P 9 07 Parameter Lock 0907 42312 P 9 08 Restore to Default 0908 42313 P 9 11 Block Transfer Parameter 1 090B 42316 P 9 12 Block Transfer Parameter 2 090C 42317 P 9 13 Block Transfer Parameter 3 090D 42318 P 9 14 Block Transfer Parameter 4 090E 42319 P 9 15 Block Transfer Parameter 5 090F 42320 P 9 16 Block Transfer Parameter 6 0910 42321 lt P 9 17 Block Transfer Parameter 7 0911 42322 P 9 18 Block Transfer Parameter 8 0912 42323 P 9 19 Block Transfer Parameter 9 0913 42324 4 P 9 20 Block Transfer P
7. 7 bit character 10 bit character frame P9 02 02 7 data bits odd parity 1 stop bit Start 2 3 4 5 6 Odd Stop bit parity bit 7 bit character nn 10 bit character frame RTU Mode 11 bit character frame For 8 bit character P9 02 03 8 data bits no parity 2 stop bit Start 0 2 3 4 5 6 7 Stop Stop bit i i 8 bit character 11 bit character frame P9 02 04 8 data bits even parity 1 stop bit Start 0 2 3 4 5 6 7 Even Stop bit parity bit 8 bit character 11 bit character frame P9 02 05 8 data bits odd parity 1 stop bit Start 0 1 2 3 4 5 6 7 Odd Stop bit parity bit 8 bit character Hal 11 bit character frame Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 31 Chapter 5 GS2 Modbus Communications ET Communication Protocol ASCII Mode STX Start Character 3AH ADR 1 ADR 0 CMD 1 CMD 0 Communication Address 8 bit address consists of 2 ASCII codes DATA n 1 Contents of data n x 8 bit data consists of 2n ASCII codes n lt 25 maximum of 50 ASCII codes LRC CHK 1 LRC CHK 0 LRC check sum 8 bit check sum consists of 2 ASCII codes END 1 END 0 RTU Mode START END characters END 1 CR ODH END
8. P 9 99 P 9 21 Block Transfer Parameter 11 P0 00 to P8 01 P9 99 P 9 99 P 9 22 Block Transfer Parameter 12 PO 00 to P8 01 P9 99 P 9 99 P9 23 Block Transfer Parameter 13 P0 00 to P8 01 P9 99 P 9 99 P 9 24 Block Transfer Parameter 14 P0 00 to P8 01 P9 99 P 9 99 P 9 25 Block Transfer Parameter 15 P0 00 to P8 01 P9 99 P 9 99 P 9 26 Serial Comm Speed Reference 0 0 to 400 0 Hz 60 0 P 9 27 Serial Comm RUN Command 00 Stop 01 Run 00 P 9 28 Serial Comm Direction Command 00 Forward 01 Reverse 00 P 9 29 Serial Comm External Fault 00 No fault 01 External fault 00 P 9 30 Serial Comm Fault Reset 00 No action 01 Fault Reset 00 P 9 31 Serial Comm JOG Command 00 Stop 01 Jog 00 P 9 39 Firmware Version tt P 9 41 GS Series Number O1 GS1 02 GS2 03 GS3 Manufacturer Model Information 00 GS2 20P5 01 GS2 21P0 02 GS2 22P0 03 GS2 23P0 04 GS2 25P0 05 GS2 27P5 06 Reserved 07 GS2 41P0 08 GS2 42P0 09 GS2 43P0 10 GS2 45P0 11 GS2 47P5 12 GS2 4010 230V 1ph 3ph 0 5hp 230V 1ph 3ph 1hp 230V 1ph 3ph 2hp 230V 1ph 3ph 3hp 230V 3ph 5hp 230V 3ph 7 5hp 460V 3ph 1hp 460V 3ph 2hp 460V 3ph 3hp 460V 3ph 5hp 460V 3ph 7 5hp 460V 3ph 10hp 13 GS2 10P2 115V 1ph 0 25hp 14 GS2 10P5 115V 1ph 0 5hp
9. Volts Hertz Parameter Addresses Volts Hertz Settings 0200 40513 Slip Compensation 0201 40514 Auto torque Boost 0202 40515 Mid point Frequency 0204 40517 Mid point Voltage 0205 40518 Min Output Frequency 0206 40519 Min Output Voltage 0207 40520 PWM Carrier Frequency 0208 40521 4 Parameter can be set during RUN Mode 5 4 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications Parameter Memory Addresses continued Modbus Decimal GS2 Parameter Description Hexadecimal Digital Parameter Addresses P 3 00 Source of Operation Command 0300 40769 P 3 01 Multi function Input Terminals DI1 DI2 P 3 02 Multi function Input DI3 P 3 03 Multi function Input DI4 P 3 04 Multi function Input DI5 0304 40773 P 3 05 Multi function Input DI6 0305 40774 P 3 11 Multi Function Output Terminal 1 030B 40780 P 3 12 Multi Function Output Terminal 2 030C 40781 P 3 16 Desired Frequency 0310 40785 P 3 17 Desired Current 0311 40786 P 3 18 PID Deviation Level 0312 40787 e P 3 19 PID Deviation Time 0313 40788 Analog Parameter Addresses P 4 00 Source of Frequency Command 0400 41025 P 4 01 Analog Input Offset Polarity 0401 41026 4 P 4 02 Analog Input Offset 0402 41027 4 P 4 03 Analog Input Gain 0403 41028 P 4 04 Analog Input Reverse Motion Enable 0404 41029 P 4 05 Loss of ACI Signal 4 20mA 0405 41030 P 4 11 Analog Output Signal 040B 41036
10. 0 LF OAH A silent interval of more than 10 ms ADR Communication Address 8 bit address CMD Command Code 8 bit command DATA n 1 Contents of data n x 8 bit data n lt 25 CRC CHK Low CRC CHK High END A silent interval of more than 10 ms CRC check sum 16 bit check sum consists of 2 8 bit characters ADR Communication Address Valid communication addresses are in the range of 0 to 254 Communication address equals to 0 means broadcast to all AC drives in which case the drives will not reply any message to the master device For example communication to AC drive with address 16 decimal ASCII mode ADR 1 ADR 0 1 0 gt 1 31H 0 30H RTU mode ADR 10H 5 32 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications ee CMD Command code and DATA data characters The format of data characters depends on the command code The available command codes are described as followed Command code 03H read N words The maximum value of N is 12 For example reading continuous 2 words from starting address 2102H of the AC drive with address 01H ASCII mode Command Message STX S Response Message ADR 1 ADR 0 CMD 1 CMD 0 Starting data address Number of data Count by byte Content of starting Number of data Count by word data address 2102H Content data LRC CHK 1 LRC CHK 0 address 2
11. Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 21 Chapter 5 GS2 Modbus Communications ET DirectLOGIC Modbus Ladder Programming cont Rungs 11 and 12 write the new Speed Reference Direction External Fault and Fault Reset commands to the drive We use two separate write commands in two separate rungs because the drive s Speed Reference command address 04432 is not sequential with the Direction External Fault and Fault Reset command addresses 04434 04436 This rung writes the Speed Reference to the drive when the Enable is on and the comm port is not busy To be able to write all four registers we have to write them in two write cycles because the Speed Reference register is not consecutive with the Direction External Fault and Fault Reset registers DL250 1 260 Speed Reference Direction Fault Reset Comm Write Enable Write Enable SP116 C10 C11 Direction Fault Reset Write Enable C11 SET This rung writes values to the Direction External Fault and Fault Reset registers This write occurs after rung 5 has completed the first write cycle DL250 1 260 Speed Reference Direction Fault Reset Comm Write Enable Write Enable SP116 C10 C11 Speed Direction Fault Reset Writes Finished C13 SET Continued following Alternate Modbus Write Instruction 5 22 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications ee Alternate Modbus Write Instruction for DL06 an
12. e e e e e e No 00000000000 ar Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual FA ISOCON GS2 Comm Port r E 4 SG FA ISOCON 5 13 Chapter 5 GS2 Modbus Communications RS 485 DLO6 DL260 RS 485 Connection Wiring 120Q Termination Resistor at both ends of network Y TXD RXD TXD RXD Connect shield to signal ground RTS Note The Termination Resistor a isn ry only on large runs DLO6 DL260 TXD s necessary only on large runs CPU Port 2 Step 3 Set AC Drive Parameters The following parameters need to be set as shown in order to communicate properly P 3 00 03 or 04 Operation Determined by RS 232C RS 485 interface Keypad STOP is enabled 03 or disabled 04 P 4 00 05 Frequency determined by RS 232 RS 485 communication interface P 9 00 xx Communication address 1 254 unique for each device see P 9 00 P 9 01 01 9600 baud data transmission speed P 9 02 05 Modbus RTU mode lt 8 data bits odd parity 1 stop bit gt with a DirectLOGIC PLC There may be other parameters that need to be set to meet Note The previous list of parameter settings is the minimum required to communicate the needs of your application Step 4 Configure the DirectLOGIC CPUs The DirectLOGIC CPUs must be configured to communicate with the GS2 Series AC drives This
13. set up includes setting up the communication port and adding instructions to your logic program The set up for all of the DirectLOGIC CPUs is very similar However there may be some subtle differences between CPUs Refer to the appropriate CPU User Manual for the specifics on your DirectLOGIC CPU Note For instructions on Modbus Configuration for your specific CPU refer to the appropriate CPU User Manual 5 14 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications DirectLOGIC Modbus Port Configuration The following configuration example is specific to the DL250 1 CPU Refer to the appropriate CPU User Manual for the specifics on your DirectLOGIC CPU In DirectSOFT choose the PLC menu then Setup then Secondary Comm Port e From the Port list box choose Port 2 For the protocol select Modbus Setup Communication Ports is xi Pott Port 2 ha Close Protocol K Sequence j DirectNET Tine fin jv MODBUS j Non Sequence 7 Remote 0 Time out 800 ms Response delay time ms v Station Number it K Baud rate a00 vi Stop bits h x Parity odd vi Port 2 15 Pin e In the Timeout list box select 800 ms Response Delay Time should be 0 ms The Station Number should be set to 1 to make the DL250 1 CPU a Modbus master Note The DL250 1 network instructions used in Master mode will acc
14. 1 for an overload fault and sets a control relay if an overload fault occurs Drive Status Monitor 1 V2000 Overload Overload Occurred K4 G ser Overload Indication Reset Overload Occurred Drive Status Monitor 1 Continued next page 5 20 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications ee DirectLOGIC Modbus Ladder Programming cont Rung 10 monitors the Speed Reference Direction External Fault and Fault Reset Commands for changes If there are any changes then a control relay is set to allow the Speed Reference to be written to the drive in the next rung This control relay is also used in later rungs to enable writes for the other three listed commands The program monitors the commands for changes and then writes to the drive only when there is a change This procedure promotes safe machine operation by isolating the Run Command from the write block This rung monitors Speed Ref Direction External Fault and Fault Reset for changes If any of them has changed a write sequence is enabled to write the new values to the drive Speed Ref New V3000 Speed Ref Retain V3010 Direction Retain V3012 Direction New V3002 Ext Fault New V3003 Ext Fault Retain V3013 Speed Ref Write Enable C10 Fault Reset Retain V3014 Fault Reset New V3004 Run CMD Speed Ref Write Enable Write Enable C12 C10 SET Continued next page Ist
15. 103H END 1 END 0 LRC CHK 1 LRC CHK 0 RTU mode Command Message ADR END 1 END 0 ADR CMD Response Message CMD Starting data address Number of data Count by byte Number of data Count by word Content of data address 2102H CRC CHK Low CRC CHK High Content of data address 2103H Ist Ed Rev C 12 2006 CRC CHK Low CRC CHK High GS2 Series AC Drive User Manual 5 33 Chapter 5 GS2 Modbus Communications ET Command code 06H write 1 word For example writing 6000 1770H to address 0100H of the AC drive with address 01H ASCII mode Command Message Response Message Data Address Data Address Data Content LRC CHK 1 LRC CHK 1 LRC CHK 0 LRC CHK 0 END 1 END 1 END 0 END 0 RTU mode This is an example of using function code 16 for writing to multiple registers Command Message Response Message ADR ADR CMD CMD Starting data Starting data address address Number of data Number of registers Count by word Byte count CRC CHK Low CRC CHK High Content of data address 2000H Content of data address 2001H CRC CHK Low CRC CHK High 5 34 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications eee CHK check sum ASCII Mode LRC Longitudinal Redundancy Check is calculated by summing up module 256 the val
16. 4 Source of operation determined by serial comm interface P3 00 3 or 4 Parameters have been locked 9 07 1 Reserved Frequency Command F XXX X h2102 Status location for the frequency setting of the AC drive Output Frequency H XXX X h2103 Status location for the actual operating frequency present at the T1 T2 and T3 terminal Output Current A h2104 Status location for the output current present at the T1 T2 and T3 terminals DC BUS Voltage d XXX X h2105 Status location for the DC Bus Voltage 5 10 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications ee Output Voltage U XXX X h2106 Status location for the output voltage present at the T1 T2 and T3 terminals Motor RPM h2107 Status location for the present estimated speed of the motor Scale Frequency Low word h2108 Status location for result of output frequency x P 8 01 low word Scale Frequency High word h2109 Status location for result of output frequency x P 8 01 high word Power Factor Angle h210A Status location for the power factor angle Load h210B Status location for the amount of load on the AC drive Output Current Drive Rated Current x 100 Firmware Version h2110 Status location for the firmware version of the AC drive Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 11 Chapter 5 GS2 Modbus Communications ET Communicating with DirectLOGIC PLCs The followi
17. 41551 P 6 15 Upper Bound of Output Frequency 060F 41552 P 6 16 Lower Bound of Output Frequency 0610 41553 P 6 31 Present Fault Record 061F 41568 P 6 32 Second Most Recent Fault Record 0620 41569 P 6 33 Third Most Recent Fault Record 0621 41570 P 6 34 Fourth Most Recent Fault Record 0622 41571 P 6 35 Fifth Most Recent Fault Record 0623 41572 P 6 36 Sixth Most Recent Fault Record 0624 41573 Parameter can be set during RUN Mode P 6 11 060B 41548 5 6 GS2 Series AC Drive User Manual GS2 Parameter Chapter 5 GS2 Modbus Communications el Parameter Memory Addresses continued Description Hexadecimal Modbus Decimal PID Parameter Addresses P 7 00 Input Terminal for PID Feedback 0700 41793 P 7 01 PV 100 Value 0701 41794 P 7 02 PID Setpoint Source 0702 41795 P 7 10 Keypad PID Setpoint 070A 41803 P 7 11 PID Multi setpoint 1 070B 41804 P 7 12 PID Multi setpoint 2 070C 41805 P 7 13 PID Multi setpoint 3 070D 41806 P 7 14 PID Multi setpoint 4 070E 41807 P 7 15 PID Multi setpoint 5 070F 41808 P 7 16 PID Multi setpoint 6 0710 41809 P 7 17 PID Multi setpoint 7 0711 41810 P 7 20 Proportional Control 0714 41813 P 7 21 Integral Control 0715 41814 P 7 22 Derivative Control 0716
18. GS2 MoDpus APTER COMMUNICATIONS In This Chapter Communication Parameters Summary 5 2 GS2 Parameter Memory Addresses 5 4 GS2 Status Addresses AV KK KK KK KK K KK KK 5 9 Communicating with DirectLogic PLCs 5 12 Step 1 Choose the Appropriate CPU XX 5 12 Step 2 Make the Connections Lkessaaaseesaasafrksadse en 5 12 Step 3 Set AC Drive Parameters 4 4454 54 Ren ore RR KK KK KK 5 14 Step 4 Configure the DirectLOGIC CPUs 2 6 ccc cee cence 5 14 DirectLOGIC Modbus Port Configuration 5 15 DirectLOGIC Modbus Ladder Programming 5 16 Communicating with Third party Devices 5 30 Data Format s sual ic evecare Al al n n ne eee ee SE 5 31 Communication Protocol XV KERR KK 5 32 Chapter 5 GS2 Modbus Communications ET Communication Parameters Summary A summary of the GS2 Communications Parameters is listed below For a complete listing of the GS2 Parameter refer to CHAPTER 4 GS2 Parameter Communications Parameters Description Default P 9 00 Communication Address to 254 01 P 9 01 Transmission Speed 4800 baud 9600 baud 19200 baud 38400 baud 01 Communication Protocol Modbus ASCII mode 7 data bits no parity 2 stop bits Modbus ASCII mode 7 data bits even parity 1 stop bit Modbus ASCII mode 7 data bits odd parity 1 stop bit Modbus RTU mode 8 data bits no p
19. arameter 10 0914 42325 P 9 21 Block Transfer Parameter 11 0915 42326 P 9 22 Block Transfer Parameter 12 0916 42327 4 P 9 23 Block Transfer Parameter 13 0917 42328 P 9 24 Block Transfer Parameter 14 0918 42329 Block Transfer Parameter 15 0919 42330 Serial Comm Speed Reference 091A 42331 Serial Comm RUN Command 091B 42332 Serial Comm Direction Command 091C 42333 Serial Comm External Fault 091D 42334 Serial Comm Fault Reset 091E 42335 Serial Comm JOG Command 091F 42336 GS Series Number 0929 42346 Manufacturer Model Information 092A 42347 Parameter can be set during RUN Mode 5 8 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications ee GS2 Status Addresses The GS2 Series AC drive has status memory addresses that are used to monitor the AC drive The status addresses and value definitions are listed below Status Addresses Read Only GS2 Status Addresses Description Hexadecimal Modbus Decimal Status Monitor 1 2100 48449 Status Monitor 2 2101 48450 Frequency Command F 2102 48451 Output Frequency H 2103 48452 Output Current A 2104 48453 DC Bus Voltage d 2105 48454 Output Voltage U 2106 48455 Motor RPM 2107 48456 Scale Frequency Low Word 2108 48457 Scale Frequency High Word 2109 48458 Power Factor Angle 210A 48459 Load 210B 48460 Firmware Version 2110 48465
20. arity 2 stop bits Modbus RTU mode 8 data bits even parity 1 stop bit Modbus RTU mode 8 data bits odd parity 1 stop bit Transmission Fault Treatment Display fault and continue operating 01 02 03 Display fault and RAMP to stop Display fault and COAST to stop No fault displayed and continue operating Time Out Detection 00 01 Disable Enable Time Out Duration 0 1 to 60 0 seconds Parameter Lock 00 01 All parameters can be set and read All parameters are read only Restore to Default 99 Restores all parameters to factory defaults Block Transfer Parameter 1 P0 00 to P8 01 P9 99 Block Transfer Parameter 2 P0 00 to P8 01 P9 99 Block Transfer Parameter 3 P0 00 to P8 01 P9 99 Block Transfer Parameter 4 P0 00 to P8 01 P9 99 Block Transfer Parameter 5 P0 00 to P8 01 P9 99 Block Transfer Parameter 6 P0 00 to P8 01 P9 99 Block Transfer Parameter 7 P0 00 to P8 01 P9 99 Parameter can be set during RUN Mode 5 2 GS2 Series AC Drive User Manual GS2 Parameter Chapter 5 GS2 Modbus Communications es Communications Parameters continued Description Range Default P 9 18 Block Transfer Parameter 8 PO 00 to P8 01 P9 99 P 9 99 P 9 19 Block Transfer Parameter 9 P0 00 to P8 01 P9 99 P 9 99 P 9 20 Block Transfer Parameter 10 P0 00 to P8 01 P9 99
21. d DL260 CPUs The DLO6 and DL260 CPUs offer Modbus Read from Network and Modbus Write to Network instructions that are easier to use than are the Read from Network and Write to Network instructions of the other DirectLOGIC CPUs Rungs 11 12 and 15 write the V3000 Speed Reference V3002 Direction V3003 External Fault V3004 Fault Reset and V3001 Run values to the corresponding drive Modbus decimal addresses 42331 42333 42334 42335 and 42332 In the first MWX box the slave start memory address is 42331 which is a Modbus decimal number 584 984 type To convert 42311 decimal to hex you first subtract 40001 and then convert the remainder to hex 91A 91A is the address for the Serial Comm Speed Reference Note Refer to your PLC User Manual for more specifics on Modbus addressing and address conversions i This rung writes the Speed Reference to the drive when the Enable is on 1 and the comm port is not busy To be able to write all four registers we have I to write them in two write cycles because the Speed Reference register is i not consecutive with the Direction External Fault and Fault Reset registers I DL250 1 260 Speed Reference Direction Fault Reset Comm Write Enable Write Enable SP116 C10 C11 MWX Port Number Slave Address Function Code 06 Preset Single Register Start Slave Memory Address 42331 Start Master Memory Address V3000 Number of Ele
22. eries AC Drive User Manual 5 17 Chapter 5 GS2 Modbus Communications DirectLOGIC Modbus Ladder Programming cont Rung 5 reads 12 of the status addresses of the GS2 AC drive These instructions read the values from the GS2 status addresses 2100 to 210B and places the values into the PLC memory addresses V2000 to V2013 Notice the number in the RX box V20400 20400 is an octal number as are all address references in the DirectLOGIC PLCs 20400 octal converted to hex is 2100 which is the first status address for the GS2 AC drive S address conversions If not writing to the drive this rung reads the first 12 status addresses of the drive DL250 1 260 Speed Reference Direction Fault Reset Comm Write Enable Write Enable SP116 C10 C11 5 Run CMD Write Enable C12 LD Kf201 LD K24 LDA 02000 RX V20400 Continued following Alternate Modbus Read Instruction 5 18 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications ee Alternate Modbus Read Instruction for DL06 and DL260 CPUs The DLO6 and DL260 CPUs offer Modbus Read from Network and Modbus Write to Network instructions that are easier to use than are the Read from Network and Write to Network instructions of the other DirectLOGIC CPUs Rung 5 as shown below reads the first 12 of the status addresses of the GS2 AC drive This instruction reads the values from the GS2 status addresses 2100 to 210B and place the
23. ess only slaves 1 to 90 Each slave must have a unique number e The Baud Rate should be set at 9600 e In the Stop Bits list box choose 1 e In the Parity list box choose Odd Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 15 Chapter 5 GS2 Modbus Communications DirectLOGIC Modbus Ladder Programming The set up for all of the DirectLOGIC CPUs is very similar However there may be some subtle differences between CPUs Refer to the appropriate CPU User Manual for the specifics on your DirectLOGIC CPU The following ladder program shows some examples of how to control the GS2 AC drive through Modbus RTU The drive should be setup and tested for communications before it is connected to a load WARNING A drive should never be connected to a load until any applicable communication programs have been proven Note This program is for illustration purposes only and is not intended for a true application In many drive applications electromagnetic interference can sometimes cause frequent short duration communication errors Unless the application environment is perfect an occasional communication error will occur In order to distinguish between these non fatal transients and a genuine communication failure you may want to use the instructions as shown in Rungs 1 through 4 Rung 1 monitors the number of times that the PLC attempts to communicate with the AC drive When the PLC s communication at
24. ments n a Modbus Data type 584 984 Mode Exception Response Buffer V5001 Direction Fault Reset Write Enable C11 SET Continued next page Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 23 Chapter 5 GS2 Modbus Communications ET Alternate Modbus Write Instruction for DL06 and DL260 CPUs cont This rung writes values to the Direction External Fault and Fault Reset registers This write occurs after rung 5 has completed the first write cycle DL250 1 260 Speed Reference Direction Fault Reset Comm Write Enable Write Enable SP116 C10 C11 MWX Port Number Slave Address Function Code 16 Preset Multiple Registers Start Slave Memory Address Start Master Memory Address Number of Elements Modbus Data type 584 984 Mode Exception Response Buffer V5002 Speed Direction Fault Reset Writes Finished C13 SET This rung writes the new Run Command to the drive DL250 1 260 Run Command Comm Write Enable SP116 C12 MWX Port Number The Run Command has its own l I separate write instruction in order I to prevent a new Speed Reference l Direction External Fault or Fault l Reset Command from causing a l previous Run Command to be I rewritten to the drive and overwritng l a keypad Stop Command l For P3 00 03 serial comm l with keypad STOP enabled 5 24 GS2 Series AC Drive User Manual Slave Address Function Code 06 Preset Single Register Start Sla
25. ng steps explain how to connect to and communicate with the GS2 Series AC drives using DirectLOGIC PLCs Step 1 Choose the Appropriate CPU The GS2 Series AC drives will communicate with the following DirectLOGIC CPUs using Modbus communications e DLO5 e DLO6 e DL250 1 e DL260 e DL350 e DL450 Step 2 Make the Connections First you must decide what type of interface will work best for your application The GS2 Comm Port can accomodate an RS 232C or an RS 485 connection RS 232C An RS 232C connection is somewhat limited The maximum RS 232C network cable length is 15 meters 50 feet In addition using the RS 232C interface will allow you to connect an AC drive to only one PLC For an RS 232C connection set the GS2 DIP switches SW2 and SW3 to RS232 RJ 12 6P4C Serial Comm Port RS485 RS 232C Interface Switches SW2 and SW3 l 2 GND z lt must be set to RS232 for 6 1 p 2 a an RS 232C connection CeL 5 5V RS23 Use the following wiring diagrams to connect your DirectLOGIC PLC to a GS2 Series AC drive with an RS 232C interface DLOS RS 232C Connection Wiring DL05 GS2 PORT 2 rae m Comm Port DL350 DL450 RS 232C Connection Wiring DL350 PORT 2 DL450 PORT 1 GS2 fe Comm Port DL06 DL250 DL260 RS 232C Connection e 2 TXD 3 RXD Wirin se 3 RXD j 4 TXD GS2 23 5 aa 2 2 GND PORT 2 Comm Port a 2 e 7 GND t 5 12 GS2 Se
26. r Data Words LD Run Command Retain OUT V3011 V3001 Run Command Load P9 27 Run Command here Write Enable 0 Stop C12 l GEND ETE a RST Run Command Write Finished C14 Continued next page RST 5 26 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications DirectLOGIC Modbus Ladder Programming cont Rungs 17 through 26 show an example of a method of inputting command values into the PLC This rung loads speed 1 into V3000 LD loads the constant value of 300 in BCD format BIN converts from BCD to binary HEX format OUT stores value in V3000 to instruct the drive to run at 30 0 Hz Speed Bit1 Speed Bit 2 30 0 Hz 60 0 Hz X3 X4 17 This rung loads speed 2 into V3000 LD loads the constant value of 600 in BCD format BIN converts from BCD to binary HEX format OUT stores value in V3000 to instruct the drive to run at 60 0 Hz Speed Bit 1 Speed Bit 2 30 0 Hz 60 0 Hz X3 X4 18 This rung loads a value of 1 into V3001 for the drive Run Command Run Stop X5 19 This rung loads a value of 0 into V3001 for the drive Stop Command Run Stop X5 20 Continued next page Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 27 Chapter 5 GS2 Modbus Communications DirectLOGIC Modbus Ladder Programming cont This rung loads a value of 1 into V3002 for the drive Reverse Command Reverse Forward X6
27. ries AC Drive User Manual Chapter 5 GS2 Modbus Communications RS 232C to RS 485 Conversion An RS 485 network cable can span up to 1000 meters 4000 feet However most DirectLOGIC PLCs require an FA ISOCON RS 232C to RS 422 485 network adapter in order to make this type of connection For an RS 485 connection set the GS2 DIP switches SW2 and SW3 to RS485 RJ 12 6P4C Serial Comm Port RS 485 Interface 2 GND 3 SG 6 1 4 SG firr 5 5V RS485 E Switches SW2 and SW3 jes must be set to RS485 for an RS 485 connection RS23 Use the following wiring diagrams to connect your DirectLOGIC PLC to a GS2 Series AC drive with an RS 485 interface Note If an FA ISOCON module is used in your connection set the module dipswitches 21 ON 22 27 OFF TERMINATE BIAS and DPX ON Refer to _ FA ISOCON manual for more detailed information DLOS RS 485 Connection Wiring DLOS PORT 2 1 0V 6 COM A r TA 3 RXD 4 TXD 4 TXD I 3 RXD TIR I ri 2 crs 60V 1 COMA DL250 RS 485 Connection Wiring No connection for DLO5 GS2 Comm Port l 4 SG 3 SG 0 i e 2 COM DL250 PORT 2 24VDC 24VDC LA GS2 Comm Port DL350 DL450 RS 485 Connection Wiring DL350 PORT 2 DL450 PORT 1 2 TXD 3 RXD e e
28. tempts are successful SP116 will count up and SP117 will not count Once the count reaches 9999 the counter will reset and resume counting PLC s communications SP116 is on when Port 2 is communicating with another device P117 is on when Port 2 has encountered a communication error Note SP116 and SP117 are special relays in the DirectLOGIC CPUs that monitor the This rung counts every time Port 2 is busy communicating DL250 1 260 Comm SP116 CNT Comm Transaction Count CTO Comm Transaction Count CTO K9999 Continued next page 5 16 GS2 Series AC Drive User Manual Chapter 5 GS2 Modbus Communications DirectLOGIC Modbus Ladder Programming cont Rungs 2 through 4 monitor the number of times the PLC fails in communicating with the AC drive These instructions set the CO control relay bit to be used for alarm or shut down based on the number of times the SP117 bit is active in one minute In this example CO will be set if the number of errors exceed 20 in one minute This rung counts every time Port 2 has an error communicating with the slave Comm Error Port 2 SP117 CNT Comm Error Count Comm Transaction Count cu CTO K20 _1Minute SP3 This rung sets a control relay to indicate a communication error Comm Error Count Comm Error Occurred CT1 CO ser External Comm Reset Comm Error Occurred XO CO pp ERT Continued next page Ist Ed Rev C 12 2006 GS2 S
29. top Block Transfer Parameters For writing to any of the parameters from PO 00 to P8 01 a group of 15 block transfer parameters P9 11 to P9 25 is available in the GS2 AC drive This sequential block of parameters can be used to group various miscellaneous non sequential parameters so that you can update the parameters in one programming write block instead of having to use multiple WX commands For example If you need to change the PID setpoint P7 11 accel time P1 01 and multi speed 1 P5 01 this would typically take three different WX commands because the parameters are non sequential However by setting P9 11 to P7 11 P9 12 to P1 01 and P9 13 to P5 01 the parameters become sequential and can be controlled using one WX command LD Kf201 LD K6 LDA Oxxxx WX V4413 Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 29 Chapter 5 GS2 Modbus Communications ET Communicating with Third party Devices First you must decide what type of interface will work best for your application The GS2 RJ 12 Serial Comm Port can accommodate an RS232C or an RS 485 connection RS 232C An RS 232C connection is somewhat limited The maximum network cable length for an RS 232C connection is 15 meters 50 feet In addition using the RS 232C interface will allow you to connect only one AC drive to one Modbus device For an RS 232C connection set the GS2 DIP switches SW2 and SW3 to
30. ues of the bytes from ADR1 to last data character then calculating the hexadecimal representation of the 2 s complement negation of the sum For example reading 1 word from address 0401H of the AC drive with address 01H Command Message Starting data address 01H 03H 04H 01H 00H 01H 0AH Numb rot data the 2 s complement negation of OAH is F6H Count by word LRC CHK 1 LRC CHK 0 END 1 END 0 RTU Mode Response Message ADR CMD Starting data address Number of data Count by word CRC CHK Low CRC CHK High Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 35 Chapter 5 GS2 Modbus Communications ET CRC Cyclical Redundancy Check is calculated by the following steps Step 1 Load a 16 bit register called CRC register with FFFFH Step 2 Exclusive OR the first 8 bit byte of the command message with the low order byte of the 16 bit CRC register putting the result in the CRC register Step 3 Shift the CRC register one bit to the right with MSB zero filling Extract and examine the LSB Step 4 If the LSB of CRC register is 0 repeat step 3 else Exclusive OR the CRC register with the polynomial value A001H Step 5 Repeat step 3 and 4 until eight shifts have been performed When this is done a complete 8 bit byte will have been processed Step 6 Repeat steps 2 to 5 for the next 8 bit byte of the command message Continue doing this until all b
31. ult Reset Write Enable C11 RST Speed Direction Fault Reset Writes Finished C13 RST Continued next page Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 25 Chapter 5 GS2 Modbus Communications ET DirectLOGIC Modbus Ladder Programming cont Rungs 14 through 16 check for a Run Command change write it to the drive store the new value in the program register and reset the enable control relays This rung monitors the Run Command for changes If a change is detected a write sequence is enabled to write the new value to the drive Speed Ref Write Enable Run CMD New C10 V3001 Run CMD Retain V3011 14 Run CMD Run CMD Write Enable Write Enable C12 SET C12 This rung writes the new Run Command to the drive DL250 1 260 Run Command Comm Write Enable SP116 C12 15 l The Run Command has its own I separate write instruction in order I to prevent a new Speed Reference I Direction External Fault or Fault l Reset Command from causing a l previous Run Command to be I rewritten to the drive and overwritng l a keypad Stop Command For P3 00 03 serial comm l with keypad STOP enabled Run Command Write Finished C14 SET When the Run Command write is complete this rung updates the Run Command retained value with the new value and resets the Write Enable Run Command Run Command Write Enable Write Finished C12 C14 16 Use
32. values into the PLC memory addresses V2000 to V2013 The Start Slave Memory Address in the MRX box is 48449 which is a Modbus decimal number 584 984 type To convert 48449 decimal to hex you first subtract 40001 and then convert the remainder to hex 2100 H2100 is the address for the GS2 Status Monitor Note Refer to your PLC User Manual for more specifics on Modbus addressing and address conversions If not writing to the drive this rung reads the first 12 status addresses of the drive DL250 1 260 Speed Reference Direction Fault Reset Comm Write Enable Write Enable SP116 C10 C11 Run CMD Write Enable MRX C12 Port Number Slave Address Function Code 03 Read Holding Register Start Slave Memory Address 48449 Start Master Memory Address V2000 Number of Elements K12 Modbus Data type 584 984 Mode Exception Response Buffer V5000 Ist Ed Rev C 12 2006 GS2 Series AC Drive User Manual 5 19 Chapter 5 GS2 Modbus Communications ET DirectLOGIC Modbus Ladder Programming cont Rungs 6 through 9 show examples of how data read from the drive Status Addresses to set Control Relay bits that can be used for alarm or shut down This rung monitors the drive Status Monitor 1 for any drive fault and sets a control relay if a fault occurs Drive Fault Occurred K1 C1 h bh_ b_ _ SET Drive Fault Indication Reset Drive Fault Occurred X1 C1 gt This rung monitors the drive Status Monitor
33. ve Memory Address 42332 Start Master Memory Address V2000 Number of Elements n a Modbus Data type 584 984 Mode Exception Response Buffer V5003 Run Command Write Finished C14 SET Chapter 5 GS2 Modbus Communications ee DirectLOGIC Modbus Ladder Programming cont Rung 13 loads the new Speed Reference Direction External Fault and Fault Reset Command values into the retained value registers and resets the applicable Write Enable control relays Now the program is ready for the next command change detection and write to the drive When both write cycles are completed the retained values will be updated with new values and the write enable is reset Speed Reference Direction Fault Reset Speed Direction Fault Reset Write Enable Write Enable Writes Finished C10 C11 C13 8 DESREN U ser Data Words speed Ref New l l LD V3000 l l V3000 Load P9 26 Speed Ref Command j ee with implied decimal place here OUT Example K150 for 15 0HZ Direction New l 3002 LD wees Load P9 28 Direction commana here Direction Retain 0 Forward V3012 1 Reverse OUT l l V3003 Ext T Load P9 29 Ext Fault Command here LD 0 No Action 1 External Fault Ext m Au OUT I kn Ext Reset New Load P9 30 V3004 Fault Reset Command here LD 0 No Action Ext Reset Retain 1 Fault Reset V3014 OUT Speed Reference Write Enable C10 RST Direction Fa
34. ytes have been processed The final contents of the CRC register are the CRC value ENN the CRC value must be swapped i e the lower order byte will be transmitted first The following is an example of CRC generation using C language The function takes two arguments Unsigned char data lt a pointer to the message buffer Unsigned char length lt the quantity of bytes in the message buffer The function returns the CRC value as a type of unsigned integer Unsigned int crc chk unsigned char data unsigned char length int j unsigned int reg_crc OxFFFF while length reg_crc data for j 0 j lt 8 j if reg_crc amp Ox01 LSB bO 1 reg_crc reg_crc gt gt 1 OxA001 Jelset reg crc reg crc gt gt 1 return reg CIC 5 36 GS2 Series AC Drive User Manual

Download Pdf Manuals

image

Related Search

Related Contents

DNP/SK25 Embedded Linux Starter Kit  Igenix IG1707 microwave  Clean Air Ltd SSR2000 Fume Cupboard Manual  日本語版(Japanese)  Final Report - University of Washington  Consejos para una alimentación saludable  ラック - タニコー  IX 345 - IX 348  RUCKUS® - Horizon Hobby    

Copyright © All rights reserved.
Failed to retrieve file