C-Link Protocol Commands
I/O Configuration
B-50
Model 48
i
Instruction Manual
Thermo Fisher Scientific
Send:
mb read registers 5 4
Receive:
mb read registers 5 4 552629 000000 55998800.000000
set mb write coil
coil state
coil
= index of coil to be set,
state
= 1 or 0
This command sets the current state of the MODBUS coil
coil
(digital
input).
coil
has an offset of 100 (that is, the first write coil is address 101).
Send:
set mb write coil 104 1
Receive:
set mb write coil 104 1 ok
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 input 5 to be assigned an index number 9 corresponding to action
of “analog outputs to zero” with the active state being high.
Send:
din
5
Receive:
din 5 9 AOUTS TO ZERO 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 1 to 3 on a low-to-high transition.
Send:
set din 1 3 high
Receive:
set din 1 3 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 11 corresponding to action of
“general alarm”.
Send:
dout
4
Receive:
dout 4 11 GEN ALARM open