beautypg.com

Rockwell Automation 1769-SM2 Compact I/O DSI/Modbus Communication Module User Manual

Page 147

background image

ControlLogix w/1769-ADN DeviceNet Example Ladder Program

8-17

Figure 8.20 Example ControlLogix Ladder Logic CH2 Subroutine

1769-SM2 Channel 2 Subroutine

The following rungs display some of the Logic Status bits from the drive. Refer to Appendix D in the 1769-SM2 user manual

for additional information about the Logic Status word.

0

SM2_Input_Data[5].0

CH2_Ready

1

SM2_Input_Data[5].1

CH2_Active

2

SM2_Input_Data[5].3

CH2_Forward

3

SM2_Input_Data[5].7

CH2_Fault

4

SM2_Input_Data[5].8

CH2_At_Speed

This rung displays the Feedback from the drive. An integer represents the xxx.x Hz format (decimal is implied) used by the

drive, so a displayed value of "300" equates to 30.0 Hz.

5

Move

Source SM2_Input_Data[6]

200

Dest

CH2_Feedback

200

MOV

The following rungs display some of the Logic Command bits sent to the drive. Refer to Appendix D in the 1769-SM2 user

manual for additional information about the Logic Command word.

6

CH2_Stop

SM2_Output_Data[3].0

i

This rung unlatches the contact that turns on the Start command when the drive is not communicating with the 1769-SM2.

This prevents the drive from immediately starting when communications are restored. If an immediate start is desired for an

application, this rung could be deleted.

7

/

CH2_Valid_Data

U

CH2_Start

i

8

CH2_Start

SM2_Output_Data[3].1

9

CH2_Jog

SM2_Output_Data[3].2

10

CH2_Clear_Fault

SM2_Output_Data[3].3