Preliminar y, Programming and control, cont’d – Extron Electronics MLC 104 Plus Series User Manual

Page 80

Advertising
background image

SIS

Programming and Control, cont’d

MLC 104 Plus Series • SIS Programming and Control

4-16

PRELIMINAR

Y

Command/r

esponse table for SIS commands (continued

)

Command

ASCII (T

elnet

)

(host to MLC

)

URL Encoded (W

eb

)

(host to MLC

)

Response

(MLC to host

)

Additional description

Digital I/O data port (dedicated Digital I/O ports

) configuration and use

N

An input voltage below 2.0 VDC is consider

ed to be logic low

. An input voltage above 2.8 VDC is consider

ed to be logic high. These thr

esholds ar

e 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 r

esistor

3 = output and pull-up r

esistor

.

N

When set for input with pull

‑up r

esistor (

X4)

= 2

), the digital input can be trigger

ed by an external switch. When the

switch closes, the voltage dr

ops fr

om 5 V to 0 V

.

When set for output with pull

‑up r

esistor

, the MLC’

s digital I/O port can drive devices such as r

elays and LEDs.

See the diagrams in chapter 2 and the special application examples in chapter 5 for mor

e details.

V

iew 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 unit. 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 = of

f

1 = on

N

This and the following thr

ee commands ar

e valid only when the port is in output mode or in output with pull

‑up mode.

Otherwise the E14 err

or (invalid for this configuration) is r

eturned by the MLC.

Toggle the I/O state

14

X22#

*2]

X22#

%2A2%5D

Sio

X22#

*

X4#

]

Switch the input/output state fr

om on to of

f

or fr

om of

f to on.

Set the I/O state to on

14

X22#

*1]

X22#

%2A1%5D

Sio

X22#

*1

]

Set the I/O state to of

f

14

X22#

*0]

X22#

%2A0%5D

Sio

X22#

*0

]

V

iew the I/O state

X22#

]

X22#

%5D

X4#]

Advertising
This manual is related to the following products: