Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 13 of 19

GS2 Series Drives User Manual, pages 121 to 130

Pages 121 to 130 of 190

The original document is the PDF (5.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the AutomationDirect GS2

Page 121

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 C0 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, C0 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 2 Comm Transaction Count CT0

CNT Comm Error Count CT1 K20

_1Minute SP3

This rung sets a control relay to indicate a communication error. Comm Error Count CT1

Comm Error Occurred C0

( SET )

3 External Comm Reset X0 4

Comm Error Occurred C0

( RST )

(Continued next page)

1st Ed. Rev. C

12/2006

GS2 Series AC Drive User Manual

5–17

Page 122

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. 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 Comm SP116

Speed Reference Write Enable C10

Direction, Fault, Reset Write Enable C11

5

Run CMD Write Enable C12

LD Kf201 LD K24 LDA O2000 RX V20400

(Continued following “Alternate Modbus Read Instruction”)

5–18

GS2 Series AC Drive User Manual

Page 123

Chapter 5: GS2 Modbus Communications

Alternate Modbus Read Instruction for DL06 and DL260 CPUs The DL06 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 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 Comm SP116

Speed Reference Write Enable C10

Direction, Fault, Reset Write Enable C11

5

Run CMD Write Enable C12

1st Ed. Rev. C

12/2006

MRX Port Number: K2 Slave Address: K1 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

GS2 Series AC Drive User Manual

5–19

Page 124

Chapter 5: GS2 Modbus Communications

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 Drive Status Monitor 1 C1 V2000 K1

욷

6

Drive Fault Indication Reset X1 7

( SET )

Drive Fault Occurred C1

( RST )

This rung monitors the drive Status Monitor 1 for an overload fault, and sets a control relay if an overload fault occurs. Overload Occurred Drive Status Monitor 1 Overload C2 V2000 K4

=

8 Overload Indication Reset X2 9

(Continued next page)

5–20

GS2 Series AC Drive User Manual

( SET )

Overload Occurred C2

( RST )

Page 125

Chapter 5: GS2 Modbus Communications

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 10 Direction New V3002 Ext Fault New V3003 Fault Reset New V3004

= = = =

Speed Ref Retain V3010 Direction Retain V3012 Ext Fault Retain V3013 Fault Reset Retain V3014

Run CMD Write Enable C12

Speed Ref Write Enable C10

Speed Ref Write Enable C10

( SET ) (Continued next page)

1st Ed. Rev. C

12/2006

GS2 Series AC Drive User Manual

5–21

Page 126

Chapter 5: GS2 Modbus Communications

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 (O4432) is not sequential with the Direction, External Fault, and Fault Reset command addresses (O4434 ~ O4436). 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. Speed Reference Direction, Fault, Reset DL250-1/260 Write Enable Write Enable Comm C10 C11 SP116 11

Kf201 LD K2 LD O3000 LDA V4432 WX 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. Speed Reference Direction, Fault, Reset DL250-1/260 Write Enable Write Enable Comm C10 C11 SP116 12

Kf201 LD K6 LD O3002 LDA V4434 WX

(Continued following “Alternate Modbus Write Instruction”)

5–22

GS2 Series AC Drive User Manual

Speed, Direction, Fault, Reset Writes Finished C13

( SET )

Page 127

Chapter 5: GS2 Modbus Communications

Alternate Modbus Write Instruction for DL06 and DL260 CPUs The DL06 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. 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 Comm SP116

Speed Reference Write Enable C10

Direction, Fault, Reset Write Enable C11

11

MWX Port Number: K2 Slave Address: K1 Function Code: 06 - Preset Single Register Start Slave Memory Address: 42331 Start Master Memory Address: V3000 Number of Elements: n/a Modbus Data type: 584/984 Mode Exception Response Buffer: V5001

Direction, Fault, Reset Write Enable C11

( SET ) (Continued next page)

1st Ed. Rev. C

12/2006

GS2 Series AC Drive User Manual

5–23

Page 128

Chapter 5: GS2 Modbus Communications

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 Comm SP116

Speed Reference Write Enable C10

Direction, Fault, Reset Write Enable C11

12

MWX Port Number: K2 Slave Address: K1 Function Code: 16 - Preset Multiple Registers Start Slave Memory Address: 42333 Start Master Memory Address: V3002 Number of Elements: K3 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 Comm SP116

Run Command Write Enable C12 MWX

15 The Run Command has its own separate write instruction in order to prevent a new Speed Reference, Direction, External Fault, or Fault Reset Command from causing a previous Run Command to be rewritten to the drive and overwritng a keypad Stop Command. (For P3.00 = 03; serial comm with keypad STOP enabled.)

5–24

GS2 Series AC Drive User Manual

Port Number: K2 Slave Address: K1 Function Code: 06 - Preset Single Register Start Slave 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 )

Page 129

Chapter 5: GS2 Modbus Communications

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 Write Enable C10

Direction, Fault, Reset Write Enable C11

Speed, Direction, Fault, Reset Writes Finished C13

13

User Data Words: LD V3000: Load P9.26 Speed Ref Command (with implied decimal place) here Example: K150 for 15.0Hz V3002: Load P9.28 Direction Command here 0 = Forward 1 = Reverse V3003: Load P9.29 Ext Fault Command here 0 = No Action 1 = External Fault V3004: Load P9.30 Fault Reset Command here 0 = No Action 1 = Fault Reset

Speed Ref New V3000

Speed Ref Retain V3010 OUT

LD

OUT

Direction New V3002 Direction Retain V3012

LD

Ext Fault New V3003

OUT

Ext Fault Retain V3013

LD

Ext Reset New V3004

OUT

Ext Reset Retain V3014 Speed Reference Write Enable C10

( RST ) Direction, Fault, Reset Write Enable C11

( RST ) Speed, Direction, Fault, Reset Writes Finished C13

( RST ) (Continued next page)

1st Ed. Rev. C

12/2006

GS2 Series AC Drive User Manual

5–25

Page 130

Chapter 5: GS2 Modbus Communications

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.

14

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 Run CMD Retain C10 V3001 V3011

=

Run CMD Write Enable C12

Run CMD Write Enable C12

( SET ) This rung writes the new Run Command to the drive DL250-1/260 Comm SP116 15

Run Command Write Enable C12 LD Kf201 LD K2

The Run Command has its own separate write instruction in order to prevent a new Speed Reference, Direction, External Fault, or Fault Reset Command from causing a previous Run Command to be rewritten to the drive and overwritng a keypad Stop Command. (For P3.00 = 03; serial comm with keypad STOP enabled.)

LDA O3001 WX V4433 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 Write Enable C12

Run Command Write Finished C14

16 LD User Data Words: V3001: Load P9.27 Run Command here 0 = Stop 1 = Run

Run Command New V3001

Run Command Retain V3011 OUT Run Command Write Enable C12

( RST ) Run Command Write Finished C14

(Continued next page)

5–26

GS2 Series AC Drive User Manual

( RST )