Allen-Bradley 1769-SM1 User Manual page 76

Compact i/o to dpi/scanport module
Table of Contents

Advertisement

6-4
CompactLogix Ladder Example Program
Figure 6.3 CompactLogix Ladder Logic Channel 1 Subroutine
SBR
0
Subroutine
1769-SM1 Channel 1 Status
1769-SM1 Channel 1 Status
The bits in the Channel Status word provide status information on the channel itself, where:
The bits in the Channel Status word provide status information on the channel itself, where:
bit 00 Logic Status Valid
bit 00 Logic Status Valid
bit 01 Datalink A Out Valid - "1" indicates the Datalink A Out values in the input image are valid
bit 01 Datalink A Out Valid - "1" indicates the Datalink A Out values in the input image are valid
bit 02 Datalink B Out Valid - "1" indicates the Datalink B Out values in the input image are valid
bit 02 Datalink B Out Valid - "1" indicates the Datalink B Out values in the input image are valid
bit 03 Datalink C Out Valid - "1" indicates the Datalink C Out values in the input image are valid
bit 03 Datalink C Out Valid - "1" indicates the Datalink C Out values in the input image are valid
bit 04 Datalink D Out Valid - "1" indicates the Datalink D Out values in the input image are valid
bit 04 Datalink D Out Valid - "1" indicates the Datalink D Out values in the input image are valid
bit 05 not used
bit 05 not used
bit 06 Configuration Valid
bit 06 Configuration Valid
bit 07 Configuration Error
bit 07 Configuration Error
bit 08 DPI/SCANport Port ID bit 0 -
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 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 10 DPI/SCANport Port ID bit 2 -
bit 11 SCANport Host Present
bit 11 SCANport Host Present
bit 12 DPI Host Present
bit 12 DPI Host Present
bit 13 32-bit Datalinks Present
bit 13 32-bit Datalinks Present
bit 14 32-bit Ref / Fdbk Present
bit 14 32-bit Ref / Fdbk Present
bit 15 not used
bit 15 not used
1
Logic Command
Logic Command
Ch1_Stop_Command
2
Ch1_Start_Command
3
Ch1_Jog_Command
4
Ch1_ClearFaults_Command
5
Channel 1 Subroutine
Channel 1 Subroutine
- "1" indicates the Logic Status/Feedback values in the input image are valid
- "1" indicates the Logic Status/Feedback values in the input image are valid
- "1" indicates if the configuration is valid (Channel 1 only)
- "1" indicates if the configuration is valid (Channel 1 only)
- "1" indicates if there is a configuration error (Channel 1 only)
- "1" indicates if there is a configuration error (Channel 1 only)
- "1" indicates a SCANport Host is present
- "1" indicates a SCANport Host is present
- "1" indicates a DPI Host is present
- "1" indicates a DPI Host is present
- "1" indicates 32-bit Datalinks are used
- "1" indicates 32-bit Datalinks are used
- "1" indicates 32-bit Reference / Feedback are used
- "1" indicates 32-bit Reference / Feedback are used
Channel 1
Enable
Local:1:O.Data[0].0
Channel 1
Status
MOV
Move
Source Local:1:I.Data[0]
0
Dest
SM1_Ch1_Status
0
Channel 1
Logic Command
STOP
Local:1:O.Data[1].0
Channel 1
Logic Command
START
Local:1:O.Data[1].1
Channel 1
Logic Command
JOG
Local:1:O.Data[1].2
Channel 1
Logic Command
CLEAR FAULTS
Local:1:O.Data[1].3

Advertisement

Table of Contents
loading

Table of Contents