Using i/o messaging 5-11 – Rockwell Automation 1203-EN1 EtherNet/IP-to-SCANport Module User Manual

Page 63

Advertising
background image

Using I/O Messaging

5-11

Figure 5.5 Example ControlLogix Ladder Logic Program for I/O Messaging (Cont.)

11

Forward_Command

1305

Logic Command

FORWARD

AB1305_Drive:O.Data[0].4

12

/

Forward_Command

1305

Logic Command

REVERSE

AB1305_Drive:O.Data[0].5

This rung provides the Reference word to the 1305 drive. Note that the value is in an engineering unit, where "32,767"

equals the Parameter 19 [Maximum Freq] value and "0" equals 0 Hz. The relationship is linear. For example, if Parameter

19 = 60 Hz (default setting), then:

32,767 = 60 Hz

16,384 = 30 Hz

8,192 = 15 Hz

4,096 = 7.5 Hz

0 = 0 Hz (etc.)

13

Move

Source

Reference

16384

Dest AB1305_Drive:O.Data[1]

16384

MOV

Reference

This rung provides the Reference word to the 1305 drive. Note that the value is in an engineering unit, where "32,767"

equals the Parameter 19 [Maximum Freq] value and "0" equals 0 Hz. The relationship is linear. For example, if Parameter

19 = 60 Hz (default setting), then:

32,767 = 60 Hz

16,384 = 30 Hz

8,192 = 15 Hz

4,096 = 7.5 Hz

0 = 0 Hz (etc.)

Datalink data sent to drive. This rung is used for display purposes only. The AB1305_Drive:O.Data[*] tags could be used

directly elsewhere in the ladder program.

AB1305_Drive:O.Data[2] = Datalink A1 1305 Pr.111 = 7 [Accel Time 1]

AB1305_Drive:O.Data[3] = Datalink A2 1305 Pr.112 = 8 [Decel Time 1]

AB1305_Drive:O.Data[4] = Datalink B1 1305 Pr.113 = 10 [Stop Select]

AB1305_Drive:O.Data[5] = Datalink B2 1305 Pr.114 = 24 [Jog Frequency]

AB1305_Drive:O.Data[6] = Datalink C1 1305 Pr.115 = 27 [Preset Freq 1]

AB1305_Drive:O.Data[7] = Datalink C2 1305 Pr.116 = 28 [Preset Freq 2]

AB1305_Drive:O.Data[8] = Datalink D1 1305 Pr.117 = 29 [Preset Freq 3]

AB1305_Drive:O.Data[9] = Datalink D2 1305 Pr.118 = 73 [Preset Freq 4]

14

Copy File

Source

Datalinks_to_Drive[0]

Dest AB1305_Drive:O.Data[2]

Length

8

COP

Datalink A1

Datalink data sent to drive. This rung is used for display purposes only. The AB1305_Drive:O.Data[*] tags could be used

directly elsewhere in the ladder program.

AB1305_Drive:O.Data[2] = Datalink A1 1305 Pr.111 = 7 [Accel Time 1]

AB1305_Drive:O.Data[3] = Datalink A2 1305 Pr.112 = 8 [Decel Time 1]

AB1305_Drive:O.Data[4] = Datalink B1 1305 Pr.113 = 10 [Stop Select]

AB1305_Drive:O.Data[5] = Datalink B2 1305 Pr.114 = 24 [Jog Frequency]

AB1305_Drive:O.Data[6] = Datalink C1 1305 Pr.115 = 27 [Preset Freq 1]

AB1305_Drive:O.Data[7] = Datalink C2 1305 Pr.116 = 28 [Preset Freq 2]

AB1305_Drive:O.Data[8] = Datalink D1 1305 Pr.117 = 29 [Preset Freq 3]

AB1305_Drive:O.Data[9] = Datalink D2 1305 Pr.118 = 73 [Preset Freq 4]

Advertising