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
a1
0000
0000
NOWAIT mode
a2
0008
0008
Status word memory type (%R)
a3
0000
0000
Status word address minus 1 (%
R0001)
a4
0000
0000
Not used
a5
0000
0000
Not used
a6
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
a1
0000
0000
NOWAIT mode
a2
0008
0008
Status word memory type (%R)
a3
0000
0000
Status word address minus 1 (%
R0001)
a4
0000
0000
Not used
a5
0000
0000
Not used
a6
4303
10CF
Read port status command
a7
0076
004C
Port status memory type (%M)
a8
0101
065
Port status memory offset (%M101)
Serial I/O / SNP / RTU Protocols
GFK-1503E User Manual 239
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......