The text of a manual · part 10 of 14
Guard I/O EtherNet/IP Safety Modules User Manual, pages 91 to 100
Pages 91 to 100 of 140
The original document is the PDF (7.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1791ES
Page 91
Appendix
A
Get Diagnostic Status from Modules by Using Explicit Messaging
Topic
Page
Get Status Messages from 1791ES-IB8XOBV4 Modules
92
Get Status Messages from 1791ES-IB16 Modules
97
Get Status Messages from 1732ES Modules
102
I/O Data Supported by Each Module
106
I/O Assembly and Reference Data
109
Explicit Messages
115
This appendix provides information about how to use CIP Generic Message instructions (sometimes called Explicit Messaging) to get diagnostic status information from the modules. You can implicitly obtain individual point status of the Guard I/O module from the Module Definition dialog box by choosing Pt. Status from the Input Status pull-down menu.
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
91
Page 92
Appendix A
Get Diagnostic Status from Modules by Using Explicit Messaging
Another choice is to obtain overall status implicitly from the Module Definition dialog box by choosing Combined Status from the Input Status pull-down menu.
If the Combined Status changes, use Explicit Messaging to obtain the point level status.
Get Status Messages from 1791ES-IB8XOBV4 Modules
92
Follow these steps to get status messages from 1791ES-IB8XOBV4 modules. 1. In the Module Definition dialog box, from the Input Status pull-down menu, choose Combined Status.
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
Page 93
Get Diagnostic Status from Modules by Using Explicit Messaging
Appendix A
This creates a two-byte input assembly, as shown for the 1791ESIB8XOBV4 module.
2. Use the CombinedInputStatus and CombinedOutputStatus bits to detect if one or more of the I/O points on the module have a fault. • If any input or output status bit goes to a value of 0 (0=error, 1=no error), use the CombinedInputStatus and CombinedOutputStatus bits to condition your MSG rungs as follows. • Note that the second rung can be used to read the status on mode transition and once a fault is detected, continue reading until the fault is corrected. • Place these rungs in the standard task.
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
93
Page 94
Appendix A
Get Diagnostic Status from Modules by Using Explicit Messaging
Reference the figures below that show the MSG instruction parameters for reading Instance 852 from the 1791ES-IB8XOBV4 module.
Instance 852 (354 hex) is 5 bytes in length, so the destination tag MSGdata must be at least 5 bytes in length to hold this data. The size is DINT[2] or 8 bytes (see Table 40). Table 40 - Layout of Instance 852 (354 hex) – 1791ES- IB8XOBV4 Module Instance Hex (decimal)
354 (852)
Connection Type
Safety and standard
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
Safety Input 7
Safety Input 6
Safety Input 5
Safety Input 4
Safety Input 3
Safety Input 2
Safety Input 1
Safety Input 0
1
Safety Input 7 Status
Safety Input 6 Status
Safety Input 5 Status
Safety Input 4 Status
Safety Input 3 Status
Safety Input 2 Status
Safety Input 1 Status
Safety Input 0 Status
2
Safety Output 7 Status
Safety Output 6 Status
Safety Output 5 Status
Safety Output 4 Status
Safety Output 3 Status
Safety Output 2 Status
Safety Output 1 Status
Safety Output 0 Status
3
Safety Output 7 Monitor
Safety Output 6 Monitor
Safety Output 5 Monitor
Safety Output 4 Monitor
Safety Output 3 Monitor
Safety Output 2 Monitor
Safety Output 1 Monitor
Safety Output 0 Monitor
4
Reserved
Reserved
Input Power Error (1)
Output Power Error (1)
Reserved
Reserved
Muting Lamp 7 Status
Muting Lamp 3 Status
(1) This data is only diagnostic data. This data does not have safety integrity.
94
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
Page 95
Get Diagnostic Status from Modules by Using Explicit Messaging
Appendix A
Click the Communication tab. This dialog box requires the path to the module. Click Browse to select the module that the MSG will read.
From the top of the Message Configuration dialog box, choose Tag to see this dialog box.
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
95
Page 96
Appendix A
Get Diagnostic Status from Modules by Using Explicit Messaging
When the explicit message reads the data from the 1791ES-IB8XOBV4 module, the data appears in the MSGdata tags as shown.
The first 32 bits of the instance are in MSGdata[0].0…31, and the final 8 bits are in MSGdata[1].0…7. These 40 bits must be mapped according to Instance 852. An easy method to do this mapping is to create a user-defined tag (UDT) for Instance 852. Once complete, it appears as follows.
96
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
Page 97
Get Diagnostic Status from Modules by Using Explicit Messaging
Get Status Messages from 1791ES-IB16 Modules
Appendix A
Follow these steps to get status messages from 1791ES-IB16 modules. 1. In the Module Definition dialog box, from the Input Status pull-down menu, choose Combined Status.
This creates a three-byte input assembly, as shown, for the 1791ES-IB16 module.
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
97
Page 98
Appendix A
Get Diagnostic Status from Modules by Using Explicit Messaging
2. Use the CombinedInputStatus bit to detect if one or more of the I/O points on the module have a fault. • If any input status bits go to a value of 0 (0 = bad; 1 = good), use an explicit message to determine which individual data points have faulted. • Note that you can use the second rung to read the status on mode transition and once a fault is detected, continue reading until the fault is corrected. • Place these rungs in the standard task.
See the figures that show the MSG instruction parameters for reading Instance 869 from the 1791ES-IB16 module. See Appendix C of this manual for a layout of possible instances.
98
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
Page 99
Get Diagnostic Status from Modules by Using Explicit Messaging
Appendix A
Instance 869 (365 hex) is 7 bytes in length, so the destination tag IB16MSGdata must be at least 7 bytes in length to hold this data. The size is DINT[2] or 8 bytes (see Table 41). Table 41 - Layout of Instance 869 (365 hex) – 1791ES-IB16 Module Instance Hex (decimal)
365 (869)
Connection Type
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
Safety Input 7
Safety Input 6
Safety Input 5
Safety Input 4
Safety Input 3
Safety Input 2
Safety Input 1
Safety Input 0
1
Safety Input 15
Safety Input 14
Safety Input 13
Safety Input 12
Safety Input 11
Safety Input 10
Safety Input 9
Safety Input 8
2
Safety Input 7 Status
Safety Input 6 Status
Safety Input 5 Status
Safety Input 4 Status
Safety Input 3 Status
Safety Input 2 Status
Safety Input 1 Status
Safety Input 0 Status
3
Safety Input 15 Status
Safety Input 14 Status
Safety Input 13 Status
Safety Input 12 Status
Safety Input 11 Status
Safety Input 10 Status
Safety Input 9 Status
Safety Input 8 Status
4
Test Output 7 Status
Test Output 6 Status
Test Output 5 Status
Test Output 4 Status
Test Output 3 Status
Test Output 2 Status
Test Output 1 Status
Test Output 0 Status
5
Test Output 15 Status
Test Output 14 Status
Test Output 13 Status
Test Output 12 Status
Test Output 11 Status
Test Output 10 Status
Test Output 9 Status
Test Output 8 Status
6
Reserved
Reserved
Input Power Error (1)
Output Power Error (1)
Muting Lamp 15 Status
Muting Lamp 11 Status
Muting Lamp 7 Status
Muting Lamp 3 Status
Safety and standard
(1) This data is only diagnostic data. This data does not have safety integrity.
From the top of the Message Configuration dialog box, choose the Communication tab. This dialog box requires the path to the module. Click Browse to go to the module that the MSG will read.
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015
99
Page 100
Appendix A
Get Diagnostic Status from Modules by Using Explicit Messaging
From the top of the Message Configuration dialog box, click Tag to see this dialog box.
When the explicit message reads the data from the 1791ES-IB16 module, the data appears in the MSGdata tags as shown.
100
Rockwell Automation Publication 1791ES-UM001E-EN-P - April 2015