USA57 Revision
1.2
54
Command:
at
Analog to Digital Converter Threshold
Type:
System Control Command
Syntax: at
n
Range:
n = 100000 to 116368 (for channel 1), or
n = 200000 to 216368 (for channel 2)
,
or
n = 300000 to 316368 (for channel 3), or
n = 400000 to 416368 (for channel 4)
Initial Value:
6144
Description:
The “at” command sets the threshold, upon which a “one” or “zero” is determined
for each of the 4 channels. The Number represents the channel number followed
by a 5 digit number from 00000-16368 which represents the threshold on a scale
from a 0-3.3V. The default values are 6144 for all 4 channels which represents
1.24V.
Threshold voltage = (n/16368) * 3.3V
Changing the threshold allows the H (Halt command) and S (Skip next
command) commands to work as a variable analog input value which essentially
allows the program to act upon an analog level. This can be used, for example,
to regulate pressure to a given level, by turning a motor on/off at a given voltage.
Note:
Be sure to include leading zeros, if required, to ensure that all threshold
values are 5 digits, plus the leading channel number
Example:
/1
at209567
R<CR>
“/”
Is the start character. Lets Accuriss know that a command string will
follow.
“1”
Is the device address, (this is preset at the factory).
“at204567”
Sets the threshold of channel 2 to 9567 or 1.93V
“R”
Instructs Accuriss to run the command(s) that are in the communication
buffer.
“<CR>”
Tells Accuriss that the command string is complete and causes the
command to be executed since an R is included in the command string.