Commreq #4: Read Diagnostics Command - GE GFK-2892F User Manual

Pacsystems rx3i genius communications gateway
Table of Contents

Advertisement

COMMREQ #4: Read Diagnostics Command

Use this command to request diagnostic information from a Genius device or a bus interface module.
Diagnostics can be requested from any Genius device, even those configured not to issue Report Fault
messages. The diagnostic data returned by a block will indicate faults that have occurred since power-up or
since the last Clear Faults datagram. Current diagnostic state can be found by issuing a Clear Faults command
to the circuit(s) or channel(s) to clear the fault history, then issuing a Read Diagnostics command.
This command causes the Genius Gateway to send a Read Diagnostics datagram to the specified device. When
the device receives this datagram, it returns a Read Diagnostics Reply datagram. I/O blocks return data in
message segments of up to 16 bytes per bus scan. The content of the Read Diagnostics Reply message
depends on the device being queried. The first word of the reply will contain the length of the data that follows.
Data is packed two bytes per word. Message formats are shown in the Genius I/O System and Communications
User's Manual, GEK-90486-1. When all the data has been received, the Gateway transfers it to the PNC, which
then transfers it to the CPU.
Command Block for the Read Diagnostics Command
Address
Command Length
Address +1
No Wait
Address +2
Status Block memory type
Address +3
Status Block offset
Address +4
Idle timeout value
Address +5
Max. communications time
Address +6
Command number
Address +7
PROFINET Device number
Address +8
Genius Device Number
Maximum data memory
length. May represent either
Address +9
bits or words (depends on
the memory type selected
below).
Address +10
Deposit Memory type
Memory offset
Address +11
Address +12
GFK-2892F
Chapter 6. COMMREQ/Data_Init_Comm Programming
7
0
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), 12 (%AQ) or 196 (%W)
Beginning address for the COMMREQ Status Block.
0
0
4
1-255: The device number of the targeted GCG Genius Gateway.
1-29: the SBA of the targeted Genius Device.
This entry tells the CPU how much memory is being allocated to store the
diagnostic data returned by the Genius device. The number of bits or
words needed depends on the number of circuits on the block and the
block type:
10 words (160 bits): Discrete blocks, 8-ckt.
18 words (288 bits): Discrete blocks, 16-ckt.
34 words (544 bits): Discrete blocks, 32-ckt.
8 words (128 bits): Analog, 4-in/2-out blocks.
8 words (128 bits): RTD Input blocks.
8 words (128 bits): Thermocouple Input blocks.
6 words (96 bits): High-Speed Counter block.
If the length of data returned by the device exceeds the length specified
here, the GCG writes as much data as possible to the PLC CPU Memory
and returns a data error to the COMMREQ Status Block. The GCG will not
write past the computed end-point.
Enter the code representing the CPU Memory Type where the GCG will
deposit the data obtained from the target Genius Device. Use the same
codes as in Address+2.
bytes 1, 2
Starting address within the Deposit Memory type.
bytes 3, 4
(Byte 4 is MSB, Byte 1 is LSB)
March 2019
65

Advertisement

Table of Contents
loading

Table of Contents