Commreq #24: Read Data Command - GE GFK-2892F User Manual

Pacsystems rx3i genius communications gateway
Table of Contents

Advertisement

Chapter 6. COMMREQ/Data_Init_Comm Programming

COMMREQ #24: Read Data Command

This command is used to read data from a Genius High-Speed Counter. When the data is received, it will be
placed in the CPU memory location specified in the Command Block.
Command Block for the Read Data 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
Deposit Memory Length
Address +10
Deposit Memory type
Memory offset,
Address +11
Address +12
Address +13
Command Code
Address +14
Counter Number
Read Data Reply
Byte
Command Code
Byte +1
Counter Number
Value returned by Command
Bytes 2 -5
Code
82
9
0
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), 12 (%AQ) or 196 (%W)
Beginning address for the COMMREQ Status Block.
0
0
24
1-255: The device number of the targeted GCG Genius Gateway.
1-29: the SBA of the targeted Genius HSC Device from which data is to be
retrieved.
This entry tells the CPU how much memory is being allocated to store the
data returned by the Genius device. The value (in bytes or bits) depends
on the memory type selected as the Deposit Memory type in Address
+10 below.
When a HSC block is configured as a Type A counter, enter 2 for word
memory types or 32 for bit memory types. However, when configured as
a Type B or Type C counter, enter 3 for word memory types or 48 for bit
memory types.
Note that the Read Data Reply Datagram always responds with six bytes
of data. The most significant bytes (Byte 4 & Byte 5) are null. Bytes 0 thru
Byte 3 contain the HSC Data requested.
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)
See Read/Write Data Command Code Table below.
1 – 4
See Read/Write Data Command Code Table below.
1 – 4
PACSystems RX3i Genius Communications Gateway
GFK-2892F

Advertisement

Table of Contents
loading

Table of Contents