Setup guide
Chapter 3 Driver and Protocol Objects
Object Reference Manual 3-28 www.Automationdirect.com
If nothing halts the process, decoding terminates when the end of the
response frame string is reached.
There are examples of both request frames and response frames at the end
of this section, but for the examples to make sense, you must first
understand the ASCII object markers.
ACSII Object Markers
The general format for a marker is:
%[width][type]
Each field in the marker format is a single character or a number signifying
a particular format option.
The % sign denotes the beginning of the marker. For example, to specify
that a percent-sign character is a static character part of the frame, use %%.
Width is a positive decimal integer specifying the number of characters
that particular value occupies in the frame. By default ASCII pads the value
with blank spaces if the value takes up fewer characters than the value
specified by width. Including a 0 before the width value forces the ASCII
object to pad with zeroes instead of blank spaces.
Type determines whether the field is interpreted as a character, a string,
or a number.
Table 3-6. Data Types Allowed by ASCII
Character Data Type
c Character
d Decimal integer
O, o Octal
x, X Hexadecimal integer
u Unsigned decimal integer
e, f Floating-point
s String