EDC Programmer’s Reference
36 Rev 007, 04/12
© SP Scientific 2012
The number of characters attached to the "value" field may not exceed eight;
an error will result accordingly. Leading zeroes, or trailing zeroes behind a
decimal point, may be added without effect, up to the character limit.
Examples:
SP=20 ;Adjust Setpoint to 20 degrees
SP=+20. ;Adjust Setpoint to 20 degrees
SP=020.00 ;Adjust Setpoint to 20 degrees
SP= 60.3 ;Adjust Setpoint to 60.3 degrees
CPB=3.6 ;Adjust Cooling Proportioning Band to 3.6 degrees
Controllable features which are not system "program parameters", such as
switches, use the values "0" to represent "off" and "-1" to represent "on" (byte
false = $00 = 0, byte true = $FF = -1).
Examples:
PUMPSW=-1 ;Turn pump switch on
PUMPSW=0 ;Turn pump switch off
Query Command (request for information) 3.
A request for information from the MPC to the host is an absolute command.
However, all commands which expect data in reply to the command end with
a question mark ("?"). The format of the reply is defined below (under
"Transmitted Data"). With few exceptions, the query command replicates the
mnemonic for the corresponding parametric command, merely substituting
the "?" for the "=" in the string.
Transmitted Data
It is anticipated that in a remote controlled operation of the target system, the actual
controlling "device" may be either a computer with a software program, or a human
being working interactively. The format of returned data has been optimized for
evaluation by a computer program, although it can be intelligently read by a human
working in an interactive mode.
The content of transmitted data to the host is dependent upon the type of received
data to which the system is answering. The returned message consists of one or more
segments:
Acknowledge: receipt and acceptance of a message which is syntactically 1.
correct, meets all constraints or limits imposed by the system, and which has
been subsequently processed, is acknowledged by the character string "OK".
Note: Certain absolute commands may result in a “runtime” error (in other words, will
result in an error when the software attempts to actually execute the statement).
These will result in both “OK” and the error message described next.