X-320M™ User's Manual
Operation
XML Control
Commands can be sent to X-320M™ to control the outputs, counters, and external variables.
Output State Control
Commands are sent using a variable called relayXState (X is replaced by 1 for Output 1, or 2 for Output
2).
A few examples of using relayXState are given below.
Command
Description
state.xml?relay1State=0
Turn Output 1
OFF
state.xml?relay1State=1
Turn Output 1
ON
state.xml?relay2State=0
Turn Output 2
OFF
state.xml?relay2State=1
Turn Output 2
ON
Pulse Relay
When the pulse command is sent, the output will turn
ON
for the Pulse Duration specified in the
Digital
I/O
setup page . It is also possible to send a pulse time command that is different than the configured
Pulse Duration. This is done by sending a pulseTime variable.
The pulseTime variable does not change the Pulse Duration in the setup page and it is not stored or
recorded. The pulseTime variable only changes the duration for the single pulse initiated by that
command. In other words, you must issue the pulseTime command for each pulse command that differs
from the preset value.
For example, say X-320M™ is configured for a Pulse Duration of 1.5 seconds. To send one 1.5-second
pulse, three 5-second pulses, and another 1.5-second pulse to Output 1, you would issue the following
commands.
Command
Description
state.xml?relay1State=2
Pulse Output 1 for the preset time (1.5 seconds).
state.xml?relay1State=2&pulseTime1=5
Pulse Output 1 for 5 seconds.
state.xml?relay1State=2&pulseTime1=5
Pulse Output 1 for 5 seconds.
state.xml?relay1State=2&pulseTime1=5
Pulse Output 1 for 5 seconds.
state.xml?relay1State=2
Pulse Output 1 for the preset time (1.5 seconds).
Xytronix Research & Design, Inc.
Page 93
Содержание X-320m
Страница 1: ......