C-Link Protocol Commands
I/O Configuration
Thermo Fisher Scientific
Partisol 2000
i
and Partisol 2000
i
-D Instruction Manual
B-31
dig in
This command reports the status of the digital inputs as a 4-digit
hexadecimal string with the most significant bit (MSB) being input 16.
Send:
dig
in
Receive:
dig in 0xff7f
din
channel
This command reports the action assigned to the digital input
channel
and
the index number of the corresponding active state. The following example
reports the input 1 to be assigned an index number 1 corresponding to
action of STOP with the active state being high.
Send:
din
1
Receive:
din 1 1 STOP high
set din
channel index state
This command assigns digital input
channel
(1-16) to activate the action
indicated by
index
(1-12), when the input transitions to the designated
state
(high or low). Use the “list var din” command to obtain the list of
supported
index
values and corresponding actions. The following example
sets the digital input channel 5 to 1 on a low-to-high transition.
Send:
set din 5 1 high
Receive:
set din 5 1 high ok
dout
channel
This command reports the index number, output variable and the active
state assigned to digital output
channel
. The following example reports
output 4 to be assigned an index number 4 corresponding to action of “I/O
board status”.
Send:
dout
4
Receive:
dout 4 4 I/O BD STATUS open
set dout
channel index state
This command assigns digital output
channel
(1-10) to be assigned to the
action associated with
index
(1-34), and assigns it an active state of
state
(open or closed). Use the “list var dout” command to obtain the list of
supported index values and corresponding state. The following example sets
the digital output channel 4 to state 11.
Send:
set dout 4 11 open
Receive:
set dout 4 11 open ok