Chapter 6. COMMREQ/Data_Init_Comm Programming
52
PACSystems RX3i Genius Communications Gateway
GFK-2892F
COMMREQ Command Block Contents
Each field in the Command Block is described below:
Data Field
Explanation
Data Block
Length
This is the amount of data from
[a 6]
to the end of the Command Block.
Each type of COMMREQ command has a unique
Data Block
. See Section 6.4.
Wait/No Wait Flag
This must be set to zero, indicating
No Wait
.
The
Status Pointer Memory Type
and
Status Pointer Offset
defined below
combine to identify the
location in CPU Memory of the Status Block
associated
with this COMMREQ.
The Status Block is the location to which the COMMREQ will return its status. If one
of the bit
–
oriented memories (%I or %Q) is used as the Status Block location, those
bits can be monitored by the PLC program.
Status Pointer Memory
Type
The Memory Type used is defined by
[a 2]
, as follows:
Memory Type Description
Required Entry
%I
discrete input table
70
%Q
discrete output table 72
%R
register memory
8
%AI
analog input table
10
%AQ
analog output table
12
%W
Bulk Memory
196
Status Pointer Offset
The offset into the Memory Type (above) is defined by
[a 3]
.
Note that the offset is 0
–
based. For example, if the Status Block were located at
%R099, memory type would be specified as 08 (for %R memory) and the offset
would be entered as 98 so as to point to %R099.
Note that if a bit
–
oriented memory (%I or %Q) is specified, a byte boundary must
be used for the offset.
Idle Timeout Value (ms)
This field is not used for the No Wait mode of communication.
Max. Communication
Time (ms)
This field is not used for the No Wait mode of communication.
Data Block
The Data Block contains the parameters of the command. Complete descriptions of
all commands appear later in this chapter (see Section 6.4).
Location
Function
a 6
Command Number (see Section 6.3.2)
a 7
PROFINET Device Number (1-255) of the targeted Genius
Gateway.
a 8
Targeted Genius Device Number (0-31). The serial bus
address (SBA) of the Genius device connected to the
targeted Genius Gateway.
thru a 78
Parameters of the specific Command Number (see
following sections in this chapter).