User manual

11
Manual WM-IIRO-8
Chapter 4: Software
General
You received ASII-based software on CD for use with WM-IIRO-8. ASCII programming permits you
to write applications in any high level language that supports ASCII string functions.
The communication proto col has two forms: addressed and non-addressed. Non-addressed protocol
can be used when only one WM-IIRO-8 is in use. When more than one module (pod) is in use,
addressed protocol must be used. The only difference is that an address com m and is sent to enable
the specific pod. The address command is only sent once during communication between the pod
and the host com puter. It enables communication with that specific pod and disables all other pods
on the network.
Command Structure
All communication must be 7 data bits, even parity, 1 stop bit. All numbers sent to or received from
the pod are in hexadecimal form. The factory default baud rate is 9600 Baud. The pod is considered
to be in addressed mode any time its pod address is not 00. The factory default pod address is 00
(non-addressed m ode).
Addressed Mode
The address select command must be issued before any other command to the addressed pod. The
address command is as follows:
"!xx[CR]" where xx is the pod address from 01 to FF hex, and [CR] is Carriage Return, ASCII
character 13.
The pod responds with "xxN[CR]" or "xxY[CR]" if an input change of state has occurred on enabled
bits since the last "Y" or address command, or with "xxN[CR]" otherwise.
Once the address select command has been issued, all further commands (other than a new address
select) will be executed by the selected pod. The addressed mode is required when using more than
one pod.
Non-Addressed Mode
When there's only one pod connected, no address select command is needed. You can merely issue
commands listed in the following table. Terminology used is as follows:
a. The single lower case letter 'x' designates any valid hex digit (0-F).
b. The single lower case letter 'b' designates either a '1' or '0'.
c. The sym bol '±' designates either a '+' or a '-'.
d. All commands are terminated with CR, the ASCII character #13.
e. Wherever xx is used to designate a bit number, only 00-07 are valid.
f. All commands are case insensitive; i.e., upper or lower case letters can be used.
g. The symbol '*' means zero or more valid characters (total msg length <255 decimal).