Rockwell Automation 1769-SM1 Compact I/O to DPI/SCANport Module User Manual

Page 101

Advertising
background image

ControlLogix w/1769-ADN DeviceNet Ladder Example Program

7-17

Figure 7.22 ControlLogix Ladder Logic Channel 1 Subroutine

Channel 1 Subroutine

0

Subroutine

SBR

Channel 1

Enable

SM1_Output_Data[0].0

Channel 1 Subroutine

1769-SM1 Channel 1 Status

The bits in the Channel Status word provide status information on the channel itself, where:

bit 00 Logic Status Valid - "1" indicates the Logic Status / Feedback values in the input image are valid
bit 01 Datlink A Out Valid - "1" indicates the Datalink A Out values in the input image are valid
bit 02 Datlink B Out Valid - "1" indicates the Datalink B Out values in the input image are valid
bit 03 Datlink C Out Valid - "1" indicates the Datalink C Out values in the input image are valid
bit 04 Datlink D Out Valid - "1" indicates the Datalink D Out values in the input image are valid
bit 05 not used
bit 06 Configuration Valid - "1" indicates if the configuration is valid (Channel 1 only)
bit 07 Configuration Error - "1" indicates if there is a configuration error (Channel 1 only)
bit 08 DPI/SCANport Port ID bit 0 -
bit 09 DPI/SCANport Port ID bit 1 - these bits indicate the Port # connected to on the Host
bit 10 DPI/SCANport Port ID bit 2 -
bit 11 SCANport Host Present - "1" indicates a SCANport Host is present
bit 12 DPI Host Present - "1" indicates a DPI Host is present
bit 13 32-bit Datalinks Present - "1" indicates 32-bit Datalinks are used
bit 14 32-bit Ref / Fdbk Present - "1" indicates 32-bit Reference / Feedback are used
bit 15 not used

1

Move
Source SM1_Input_Data[2]
4703
Dest

SM1_Ch1_Status

4703

MOV

Channel 1

Status

1769-SM1 Channel 1 Status

The bits in the Channel Status word provide status information on the channel itself, where:

bit 00 Logic Status Valid - "1" indicates the Logic Status / Feedback values in the input image are valid
bit 01 Datlink A Out Valid - "1" indicates the Datalink A Out values in the input image are valid
bit 02 Datlink B Out Valid - "1" indicates the Datalink B Out values in the input image are valid
bit 03 Datlink C Out Valid - "1" indicates the Datalink C Out values in the input image are valid
bit 04 Datlink D Out Valid - "1" indicates the Datalink D Out values in the input image are valid
bit 05 not used
bit 06 Configuration Valid - "1" indicates if the configuration is valid (Channel 1 only)
bit 07 Configuration Error - "1" indicates if there is a configuration error (Channel 1 only)
bit 08 DPI/SCANport Port ID bit 0 -
bit 09 DPI/SCANport Port ID bit 1 - these bits indicate the Port # connected to on the Host
bit 10 DPI/SCANport Port ID bit 2 -
bit 11 SCANport Host Present - "1" indicates a SCANport Host is present
bit 12 DPI Host Present - "1" indicates a DPI Host is present
bit 13 32-bit Datalinks Present - "1" indicates 32-bit Datalinks are used
bit 14 32-bit Ref / Fdbk Present - "1" indicates 32-bit Reference / Feedback are used
bit 15 not used

Logic Command

2

Ch1_Stop_Command

Channel 1

Logic Command

STOP

SM1_Output_Data[1].0

Logic Command

3

Ch1_Start_Command

Channel 1

Logic Command

START

SM1_Output_Data[1].1

4

Ch1_Jog_Command

Channel 1

Logic Command

JOG

SM1_Output_Data[1].2

5

Ch1_ClearFaults_Command

Channel 1

Logic Command

CLEAR FAULTS

SM1_Output_Data[1].3

Advertising