EasyManua.ls Logo

GE VersaMax PLC

GE VersaMax PLC
318 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
12.4.6.1 Example Command Block for the Flush Input Buffer
Function
VALUE
(decimal)
VALUE
(hexadeci-
mal)
MEANING
address 0001 0001
Data block length
address +1 0000 0000 NOWAIT mode
address +2 0008 0008
Status word memory type (%R)
address +3 0000 0000
Status word address minus 1 (%
R0001)
address +4 0000 0000 Not used
address +5 0000 0000 Not used
address +6 4302 10CE
Flush input buffer command
12.4.7 Read Port Status Function (4303)
This function returns the current status of the port. The following events can be detected:
A read request was initiated previously and the required number of characters has
now been received or the specified time-out has elapsed.
A write request was initiated previously and transmission of the specified number of
characters is complete or a time-out has elapsed.
The status returned by the function indicates the event or events that have completed.
More than one condition can occur simultaneously, if both a read and a write were
initiated previously.
12.4.7.1 Example Command Block for the Read Port Status
Function
VALUE
(decimal)
VALUE
(hexadecimal)
MEANING
address 0003 0003
Data block length
address +1 0000 0000 NOWAIT mode
address +2 0008 0008
Status word memory type (%R)
address +3 0000 0000
Status word address minus 1 (%
R0001)
address +4 0000 0000 Not used
address +5 0000 0000 Not used
address +6 4303 10CF
Read port status command
address +7 0076 004C
Port status memory type (%M)
address +8 0101 065
Port status memory offset (%M101)
Serial I/O / SNP / RTU Protocols GFK-1503E User Manual 239
For public disclosure

Table of Contents

Related product manuals