Compactlogix example program – Rockwell Automation 1769-SM2 Compact I/O DSI/Modbus Communication Module User Manual
Page 106
7-4
CompactLogix Example Ladder Programs
CompactLogix Example Program
Figure 7.2 Example CompactLogix Ladder Logic Main Routine
CompactLogix -L35E w/ 1769-SM2 in Single Mode
In this Single mode example program, the channels are utilized as follows:
Channel 1 - Connected to 1 PowerFlex 4/40 drive (maximum allowed)
Channel 2 - Connected to 1 PowerFlex 4/40 drive (maximum allowed)
Channel 3 - Connected to 1 PowerFlex 4/40 drive (maximum allowed)
This rung enables the 1769-SM2 to send the Channel 1 Logix Command and Reference words to the drive.
0
CH1_Enable
/
s:
This rung enables the 1769-SM2 to send the Channel 1 Logix Command and Reference words to the drive.
Channel 1 Subroutine
1
Jump To Subroutine
Routine Name Channel_1
JSR
CH1 control logic
This rung enables the 1769-SM2 to send the Channel 2 Logix Command and Reference words to the drive.
2
CH2_Enable
Channel 2 Subroutine
3
Jump To Subroutine
Routine Name Channel_2
JSR
CH2 control logic
This rung enables the 1769-SM2 to send the Channel 3 Logix Command and Reference words to the drive.
4
CH3_Enable
Channel 3 Subroutine
5
Jump To Subroutine
Routine Name Channel_3
JSR
CH3 control logic
6
CH1_Valid_Data
CH2_Valid_Data
CH3_Valid_Data
SM2_Data_Valid
7
/
SM2_Cfg_Data_Valid
SM2_Cfg_Error
(End)