Commreq #24: Read Data Command; Commreq #25: Write Data Command - GE PACSystems RX3i Genius User Manual

Programmable control products, communications gateway
Table of Contents

Advertisement

6.4.15 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
Address +1
Address +2
Address +3
Address +4
Address +5
Address +6
Address +7
Address +8
Address +9
Address +10
Address +11
Address +12
Address +13 Command Code
Address +14 Counter Number

6.4.16 COMMREQ #25: Write Data Command

This command is used to set data values in a Genius High-speed Counter.
Command Block for the Write Data Command
Address
Address +1
Address +2
Address +3
Address +4
Address +5
Address +6
Address +7
Address +8
Address +9
Address +10 Counter Number
Address +11
Address +12
GFK-2892B
Command Length
No Wait
Status Block memory type
Status Block offset
Idle timeout value
Max. communications time
Command number
PROFINET Device number
Genius Device Number
Deposit Memory Length
Deposit Memory type
Memory offset,
bytes 1, 2
bytes 3, 4
Command Length
No Wait
Status Block memory type
Status Block offset
Idle timeout value
Max. communications time
Command number
PROFINET Device number
Genius Device Number
Command Code
Data to be written
bytes 1, 2
bytes 3, 4
PACSystems RX3i Genius Communications Gateway User Manual
Chapter 6. COMMREQ/Data_Init_Comm Programming
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.
0-31: 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.
Starting address within the Deposit Memory type.
(Byte 4 is msb, Byte 1 is lsb)
See Read/Write Data Command Code Table below.
1 – 4
7
0
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), 12 (%AQ) or 196 (%W)
Beginning address for the COMMREQ Status Block.
0
0
25
1-255: The device number of the targeted GCG Genius Gateway.
0-31: the SBA of the targeted Genius Device to which data is to be
transmitted.
See Read/Write Data Command Code Table below.
1-4
Four bytes of data to be written to the target Genius HSC
(Byte 4 is msb, Byte 1 is lsb)
Public 73

Advertisement

Table of Contents
loading

Table of Contents