
MLC 104 IP Plus Series • SIS
™
Pr
ogramming and Contr
ol
83
Command/Response Table for SIS Commands (continued)
Command
ASCII (Telnet)
(host to MLC)
URL Encoded (web)
(host to MLC)
Response
(MLC to host)
Additional Description
Digital I/O data port
(dedicated Digital I/O ports)
configuration and use
NOTE:
An input voltage below 2.0 VDC is considered to be logic low. An input voltage above 2.8 VDC is considered to be logic high. These thresholds are not adjustable.
Set the input/output (I/O) mode
24
X22#
*
X4)
[
X22#
%2A
X4)
%5B
Iom
X22#
*
X4)]
Set the input/output mode (
X4)
) for a specific
port (
X22#
).
X22#
= port number:
1
= Digital I/O port 1
2
= Digital I/O port 2
3
= Digital I/O port 3.
X4)
= mode:
0
= input (default)
1
= output
2
= input and pull-up resistor
3
= output and pull-up resistor.
NOTE:
When set for
input with pull-up resistor
(
X4)
= 2), the digital input can be triggered by an external switch.
When the switch closes, the voltage drops from 5 V to 0 V.
When set for
output with pull-up resistor
, the digital I/O port on the MLC can drive devices such as relays
and LEDs.
When set for
power sensor
, the input state is triggered when an optional power sensor connected to the
power sense port detects a state change.
View the digital I/O mode
X22#
[
X22#
%5B
X4)]
Pulse the digital I/O state
14
X22#
*3*
X6#
]
X22#
%2A3%2A
X6#
%5D
Sio
X22#
*
X4#]
Briefly change the I/O state.
X6#
= Pulse time in 20 ms per count.
If this parameter is missing or =
0
, then
pulse length = default (25 = 500 ms).
65535 (1310 s) = max. pulse time.
X4#
= I/O state:
0
= off
1
= on.
NOTE:
This and the following three commands are valid only when the port is in output mode or in output with pull-up
mode.
Toggle the I/O state
14
X22#
*2 ]
X22#
%2A 2 %5D
Sio
X22#
*
X4#]
Switch the input/output state from on to off or
from off to on.
Set the I/O state to on
14
X22#
*1 ]
X22#
%2A 1 %5D
Sio
X22#
* 1
]
Set the I/O state to off
14
X22#
*0 ]
X22#
%2A 0 %5D
Sio
X22#
* 0
]
View the I/O state
X22#
]
X22#
%5D
X4#]
Summary of Contents for MLC 104 IP Plus Series
Page 6: ......