User`s guide

MULTI-TASKER
400-0356-002
13
13
Example 1:
There is an MT112-100 in slot #2. I/O port
number "4" is ON. Send the command
[RDIO4C2] and the system will return the
following feedback:
1
A "1" indicates the control is on. A "0" would
indicate the control was off.
Example 2:
There is an MT112-100 in slot #3. I/O Controls 1
and 2 are off while 3-24 are on. Send the
command [RDIO*C3] and receive the following
feedback:
001111111111111111111111
The ports are displayed left to right. The left
most digit represents Port 1 and the rightmost
represents Port 24. The first two 0's indicate
Ports 1 and 2 are off. The remaining 1's
indicate Ports 3-24 are on.
17. [WRIO]
This command writes to a single I/O port or all
the I/O ports and sets the output high or low. All
ports must be set to the same state using this
command.
Command Format: [WRIOk=xCnUi]
k = Port Number (1 to 24, * for all)
x = I/O state to set port
0 = Set I/O port low (GND)
1 = Set I/O port high (+5V@24ma)
Cn = Card ID (n = # from 1 to max slots)
Ui = Unit ID (i = from 0 to 9)
Example 1:
Set I/O #1 on for card in slot #1 by sending the
command [WRIO1=1C1].
Example 2:
Set all I/Os off for the card in slot #1 by sending
the command [WRIO * =0C1].
18. [WRI]
This command assigns a subroutine to perform
when there is a transition on an I/O port.
Command Format: [WRIx,y=SUBkCnUi]
x = I/O Port (x = # from 1 to 24)
y = Port Transition (y= 0 or y=1)
0 = Low to High transition
1 = High to Low transition
k = Subroutine (k = # from 1 to 180)
Cn = Card ID (n = # from 1 to max slots)
Ui = Unit ID (i = from 0 to 9)
Example:
An MT112-100 is in slot #3. Send the command
[WRI2,1=SUB9C3] to assign subroutine 9 to be
performed when I/O Port #2 changes from a
High to a Low.
19. [RDIS]
This command displays the subroutine
associated with an IO port.
Command Format: [RDISxCnUi]
x = I/O Port (x = # from 1 to 24)
Cn = Card ID (n = # from 1 to max slots)
Ui = Unit ID (i = from 0 to 9)
Example:
An MT112-100 is in slot #3. Send the command
[RDIS2C3] and receive the following feedback:
Port02: Sub008, Sub009.
Port 02 is the port queried. Sub008 is the
subroutine performed when there is a LOW to
HIGH transition and Sub009 is performed when
there is a HIGH to LOW transition on port 2.
20. [RDIS*]
This command displays the subroutines
associated with all the IO ports.
Command Format: [RDIS*CnUi]
Cn = Card ID (n = # from 1 to max slots)
Ui = Unit ID (i = from 0 to 9)