The Commreq Command Block: General Description - GE RX3i User Manual

Pacsystems
Hide thumbs Also See for RX3i:
Table of Contents

Advertisement

Chapter 7. Programming SRTP Channel Commands

The COMMREQ Command Block: General Description

When the COMMREQ function is initiated, the Command Block is sent from the PLC CPU to the Ethernet
Interface. The Command Block contains the details of a Channel command to be performed by the Interface.
The address in CPU memory of the Command Block is specified by the IN input of the COMMREQ Function
Block. It can be any valid address within a word-oriented area of memory (%R, %AI, %AQ, %P, %L, or %W). The
Command Block is set up using an appropriate programming instruction, such as a BLOCK MOVE or DATA INIT
COMM). The Command Block has the following structure:
Word 1
Word 2
Word 3
Word 4
Word 5
Word 6
Words 7 and up
(Word 1) Data Block Length: This is the length in words of the Data Block portion of the Command Block. The
Data Block portion starts at Word 7 of the Command Block. The length is measured from the beginning of the
Data Block at Word 7, not from the beginning of the Command Block. The correct value for each command,
and the associated length of each command, is specified in the next section.
(Word 2) WAIT/NOWAIT Flag: Must be set to zero for TCP/IP Ethernet Communications.
COMMREQ Status Word: The Ethernet Interface updates the COMMREQ status word to show success or failure
of the command. Command words 3 and 4 specify the PLC memory location of the COMMREQ status word.
(COMMREQ Status Word values are described in Chapter 12.)
(Word 3) COMMREQ Status Word Memory Type: This word specifies the memory type for the COMMREQ
status word. The memory types are listed in the table below:
Type
Value
(Decimal)
%R
8
%AI
10
%AQ
12
%I
16
70
%Q
18
72
%T
20
74
%M
22
76
%G
56
86
%W
196
(Word 4) COMMREQ Status Word Address Offset: This word contains the offset within the memory type
selected. The status word address offset is a zero-based number. For example, if you want %R1 as the
location of the COMMREQ status word, you must specify a zero for the offset. The offset for %R100 would be
99 decimal. Note, however, that this is the only zero-based field in the Channel commands. (When using %W
memory, the maximum offset value that can be entered is 65535, signifying %W65536.)
(Word 5): Reserved. Set to zero.
(Word 6): Reserved. Set to zero.
(Words 7 and up) Data Block: The Data Block defines the Channel command to be performed.
114
PACSystems* RX7i & RX3i TCP/IP Ethernet Communications User Manual
Data Block Length (words)
WAIT/NOWAIT Flag
COMMREQ status word Memory Type
COMMREQ status word Address Offset
Reserved
Reserved
Data Block (Channel Command Details)
Value
Description
(Hex.)
08H
Register memory (word mode)
0AH
Analog input memory (word mode)
0CH
Analog output memory (word mode)
10H
Discrete input memory (byte mode)
46H
Discrete input memory (bit mode)
12H
Discrete output memory (byte mode)
48H
Discrete output memory (bit mode)
14H
Discrete temporary memory (byte mode)
4AH
Discrete temporary memory (bit mode)
16H
Discrete momentary internal memory (byte mode)
4CH
Discrete momentary internal memory (bit mode)
38H
Discrete global data table (byte mode)
56H
Discrete global data table (bit mode)
C4H
Word memory (word mode; limited to %W1 through %W65536)
GFK-2224Q

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx7i

Table of Contents