
Chapter 6. COMMREQ/Data_Init_Comm Programming
80
PACSystems RX3i Genius Communications Gateway
GFK-2892F
COMMREQ #22: Read Map Command
To read the I/O mapping configuration from a 90-70 Remote Scanner, use the Read Map Command. When the
data is received, it will automatically be placed in the CPU memory location specified in the Command Block.
Command Block for the Read Map Command
Address
Command Length
7
A1
No Wait
0
A2
Status Block memory type
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), 12 (%AQ) or 196 (%W)
A3
Status Block offset
Beginning address for the COMMREQ Status Block.
A4
Idle timeout value
0
A5
Max. communications time
0
A6
Command number
22
A7
PROFINET Device number
1-255: The device number of the targeted GCG Genius Gateway.
A8
Genius Device Number
1-29: the SBA of the targeted Genius Device.
A9
Deposit Memory Length
(either bits or words)
This entry tells the CPU how much memory is being allocated to store the
data returned by the Genius device. Value specified in bits or words,
depending on memory type selected below.
(8 words or 128 bits)
A10
Deposit Memory type
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 2.
A11
A12
Memory offset,
bytes 1, 2
bytes 3, 4
Starting address within the Deposit Memory type.
(Byte 4 is MSB, Byte 1 is LSB)
Read Map Returned Data
Byte #
Description
0
Remote Rack ID
1-2
%I Starting Reference
3
Length of %I data (bytes)
4-5
%AI Starting Reference
6
Length of %AI data (bytes)
7-8
%Q Starting Reference
9
Length of %Q data (bytes)
10-11
%AQ Starting Reference
12
Length of %AQ data (bytes)
13
8-bit additive checksum
14-15
16-bit LRC checksum