User`s manual

Western Reserve Controls, Inc. 1782-JDC User’s Manual
28
A.2 Serial I/O Polled Data Formats
Table A-2 Poll Produce Data (ASCII Receive String)
Byte Character Description
0 Record # Record Counter, Integer value 1 – 255
0 = Initialized State (counter value rolls over from 255 to 1, skipping 0)
1 Status Status / Error Value
2 Length Length of valid data in bytes
3 1
st
Char ASCII Character
4 2
nd
Char ASCII Character
length+1 Last Char ASCII Character
length+2
terminator
End-of-Text Character
Max Rec.
Char + 2
Any Pad character (present if characters received is less than Max Receive
Chars value)
Table A-3 Poll Consume Data (ASCII Transmit String)
Byte Character Description
0 Record # Record Counter, Integer value 1 – 255
0 = Initialized State (counter value rolls over from 255 to 1, skipping 0)
1 Length Number of bytes to transmit. 0 indicates transmit delimited mode, in which the
device transmits up to and including the transmit delimiter character defined in
the parameter object.
2 1
st
Char ASCII Character
3 2
nd
Char ASCII Character
4 3
rd
Char ASCII Character
length Last Char ASCII Character
length +1
Terminator
End-of-Text Character
Max TX
Length
1
Any Undefined
Max TX
Length
Any Undefined
(last char in this record transmitted to Master)