Retrieve detailed channel status (2002) – GE GEFanuc Automation Programmable Control Products TCP/IP Ethernet Communications for the Series 90t-70 PLC GFK-1004B User Manual

Page 110

Advertising
background image

4

4-22

TCP/IP Ethernet Communications User’s Manual – January 1996

GFK-1004B

Retrieve Detailed Channel Status (2002)

The Retrieve Detailed Channel Status command requests that the current Detailed
Channel Status words be returned for a channel. The Detailed Channel Status words
contain an active/inactive channel indicator and the last channel error codes seen (see
Section 4 for more details). These two words of detailed status supplement the
information available in the COMMREQ Status word and the Channel Status bits. The
command has no effect on the value of the Channel Status bits.

Be aware that the Detailed Channel Status words are updated every time the status of
the channel changes. If, for example, the channel is operating with a fast repetition
period, the status words may change faster than the ladder executes the COMMREQ to
retrieve them. Therefore, some status values will be missed from the ladder’s point of
view.

Example Command Block

Retrieve detailed channel status for channel 5. Store the Detailed Channel Status words
to Registers 100-101. Return the COMMREQ Status word to %R10.

БББББ

БББББ

ББББББ

ББББББ

Dec (Hex)

ББББББББББББББББББББ

ББББББББББББББББББББ

БББББ

БББББ

Word 1

ББББББ

ББББББ

00004 (0004)

ББББББББББББББББББББ

ББББББББББББББББББББ

Length of Channel Command Data Block (4 words)

БББББ

БББББ

Word 2

ББББББ

ББББББ

00000 (0000)

ББББББББББББББББББББ

ББББББББББББББББББББ

Always 0 (no-wait mode request)

БББББ

Word 3

ББББББ

00008 (0008)

ББББББББББББББББББББ

Memory Type of CRS word (%R)

БББББ

БББББ

Word 4

ББББББ

ББББББ

00009 (0009)

ББББББББББББББББББББ

ББББББББББББББББББББ

CRS word address minus 1 (%R10)*

БББББ

БББББ

Word 5

ББББББ

ББББББ

00000 (0000)

ББББББББББББББББББББ

ББББББББББББББББББББ

Reserved

БББББ

БББББ

Word 6

ББББББ

ББББББ

00000 (0000)

ББББББББББББББББББББ

ББББББББББББББББББББ

Reserved

БББББ

БББББ

Word 7

ББББББ

ББББББ

02002 (07d2)

ББББББББББББББББББББ

ББББББББББББББББББББ

Retrieve Detailed Channel Status Command number

БББББ

БББББ

Word 8

ББББББ

ББББББ

00005 (0005)

ББББББББББББББББББББ

ББББББББББББББББББББ

Channel number 5

БББББ

БББББ

Word 9

ББББББ

ББББББ

00008 (0008)

ББББББББББББББББББББ

ББББББББББББББББББББ

Local PLC - memory type to store Detailed Chan. Stat. (%R)

БББББ

БББББ

Word 10

ББББББ

ББББББ

00100 (0064)

ББББББББББББББББББББ

ББББББББББББББББББББ

Local PLC - starting address (%R100)

БББББ

БББББ

ББББББ

ББББББ

ББББББББББББББББББББ

ББББББББББББББББББББ

* Word 4 (CRS word address) is the only zero-based address in the Command Block.

Only this address requires subtracting 1 from the intended address.

(Word 7) Channel Command Number:

The command parameter in Word 7 requests that

Detailed Channel Status words be returned. If the command is processed successfully,
the Detailed Channel Status words will be written to the location specified in Words 9
and 10. Then the CRS word will indicate successful completion of the command. If the
specified channel is not currently in use, the latest status will be returned.

(Word 8) Channel Number:

The channel number in Word 8 specifies the channel whose

status is to be read. This value must be a channel number in the range of 1 to 16 decimal.

(Word 9) Local PLC - Memory Type:

Words 9 and 10 specify the starting point in the

client CPU memory where the Detailed Channel Status words are to be written. The
length of the transfer is implied and is equal to 2 words. Section 4 describes the format
of the DCS words. Word 9 specifies the memory type (See Table 4-2).

The term local PLC is
used here to identify the
client PLC

-the PLC

that initiates the
communications
request.

Advertising