Chapter 6. COMMREQ/Data_Init_Comm Programming
COMMREQ #21: Read Block I/O Command
This command is used to read input and output data from the following Genius blocks:
•
4-Input/2-Output Analog Blocks
•
Current-source Analog Blocks
•
Thermocouple Input Blocks
The data available to this command includes the I/O data that is part of the block's periodic I/O update as well
as other related data, such as the raw counts.
Command Block for the Read Block I/O 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
Address +9
Length
Address +10
Deposit Memory type
Memory offset,
Address +11
Address +12
Address +13
I/O Offset
76
8
0
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), 12 (%AQ) or 196 (%W)
Beginning address for the COMMREQ Status Block.
0
0
21
1-255: The device number of the targeted GCG Genius Gateway.
1-29: the SBA of the targeted Genius Device from which data is to be
retrieved.
Length of data to be returned by the target Genius device.
Value in bits or words, depending on memory type selected below
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)
Byte offset from the beginning of the device's I/O data (zero-based).
PACSystems RX3i Genius Communications Gateway
GFK-2892F