GE VersaMax PLC User Manual page 248

Table of Contents

Advertisement

address
address +1
address +2
address +3
address +4
address +5
address +6
address +7
address +8
address +9
address +10
248
GFK-1503E
For public disclosure
12.4.13.1 Example Command Block for the Read String
Function
VALUE
VALUE
(decimal)
(hexadecimal)
0005
0005
0000
0000
0008
0008
0000
0000
0000
0000
0000
0000
4403
1133
0030
001E
0013
000D
0008
0008
0100
0064
12.4.13.2 Return Data Format for the Read String Function
The return data consists of the number of characters actually read, the number of
characters still available in the input buffer after the read is complete (if any), and the
actual input characters:
Number of characters actually read
Address
Number of characters still available in the input
Address + 1
buffer, if any
first two characters (first character is in the low byte)
Address + 2
third and fourth characters (third character is in the
Address + 3
low byte)
subsequent characters
Address + n
12.4.13.3 Operating Note
If the input data memory type parameter is specified to be a word memory type, and if an
odd number of bytes are actually received, then the high byte of the last word to be
written with the received data is set to zero
As data is received from the serial port it is placed in the internal input buffer. If the
buffer becomes full, then any additional data received from the serial port is discarded
and the Overflow Error bit in the Port Status word (See Read Port Status Function) is set.
MEANING
Data block length
NOWAIT mode
Status word memory type (%R)
Status word address minus 1 (%R0001)
Not used
Not used
Read string command
Read time-out (30 seconds)
Terminating character (carriage return): must be
between 0 and 255 (0xFF), inclusive
Input data memory type (%R)
Input data memory address (%R0100)
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents