Maple Systems OIT Family (ASCII) User Manual
Page 11

Write String Command
ESC
S memaddr textstring terminator
mem addr = 0000 to 1023 (The starting D register address in decimal, base 10,
format must be four digits. For example, send 0010, not 10.)
text string = The ASCII text string to be stored in D registers. Can range from
1 to 40 characters.
Description: Writes an ASCII text string to the D registers. When used with the ASCII
Char register monitor format, this command is an easy way to display ASCII strings
on the OIT which vary continuously. Each D register in the OIT holds two characters.
If the number of characters in the text string is odd, then the last D register
automatically stores a space character (20 hex) as the last character in the string.
Response: errorcode lineterminator
Write OIT Memory Command
ESC
W memarea memaddr length data terminator
mem area = C or D (register bank)
mem addr = 0000 to 1023 (The address is in decimal, base 10, format and must be
four digits. For example, send 0010, not 10.)
length =
1 means write one bit
2 means write one byte
3 means write two bytes
4 means write four bytes
data =
if length = 1, the data can be either 0 or 1 (when writing to a D register,
the data will be written to the least significant bit in the D register)
if length = 2, the data can be from 0 to FF (when writing to a C register,
the data will be written to eight consecutive C registers with the
specified address as the least significant bit; when writing to a D
register, the data will be written to the eight least significant bits
in the D register)
if length = 3, the data can be from 0 to FFFF (when writing to a C
register, the data will be written to sixteen consecutive C registers with
the specified address as the least significant bit)
if length = 4, the data can be from 0 to FFFFFFFF (when writing to a
C register, the data will be written to thirty-two consecutive C registers
with the specified address as the least significant bit; when writing to a
D register, the data will be written to two consecutive D registers with
the specified address as the least significant word)
Note: Although accepted, leading zeroes are not required when sending smaller numbers. For
example, 003E can be sent as 3E.
Description: Writes to the OIT’s internal data or coil registers.
Response: errorcode lineterminator
Note: Out of range data will generate an error response from the OIT. For example, if length =
1 and data = FF.
10
OIT Family Operation Manual (ASCII)
1010-0088, REV02