Rockwell Automation 22-SCM-232 Serial Converter Module User Manual
Page 87
ControlLogix/CompactLogix Example Ladder Program
H-3
Figure H.1 Example ControlLogix Ladder Logic Program (Continued)
Move the Logic Command and Reference words to the Control_Output array for transmission to the SCM.
7
Move
Source Logic_Command
18
Dest
Control_Output[0]
18
MOV
Move
Source
Reference
543
Dest Control_Output[1]
543
MOV
Move the Logic Command and Reference words to the Control_Output array for transmission to the SCM.
Write the Logic Command (N182:192) and Reference (N182:193) to the drive.
8
EN
DN
ER
Type - PLC5 Typed Write
Message Control
ControlOutputMessage ...
MSG
Write the Logic Command (N182:192) and Reference (N182:193) to the drive.
Starts the message cycle over again.
9
ControlOutputMessage.DN
ControlOutputMessage.ER
U
ControlOutputMessage.EN
Starts the message cycle over again.
Reads a block of data (Starting at N183:198) containing:
N7:10 Logic Status (N183:198)
N7:11 Drive Error Code (N183:199)
N7:12 Frequency Command (= Reference) (N183:200)
N7:13 Output Frequency (Feedback) (N183:201)
N7:14 Output Current (N183:202)
N7:15 DC Bus Voltage (N183:203)
N7:16 Output Voltage (N183:204)
10
EN
DN
ER
Type - PLC5 Typed Read
Message Control
ReadDataMessage ...
MSG
Reads a block of data (Starting at N183:198) containing:
N7:10 Logic Status (N183:198)
N7:11 Drive Error Code (N183:199)
N7:12 Frequency Command (= Reference) (N183:200)
N7:13 Output Frequency (Feedback) (N183:201)
N7:14 Output Current (N183:202)
N7:15 DC Bus Voltage (N183:203)
N7:16 Output Voltage (N183:204)
Starts the message cycle over again.
11
ReadDataMessage.DN
ReadDataMessage.ER
U
ReadDataMessage.EN
Starts the message cycle over again.
12
DriveReadData[0].0
DriveStatusReady