![background image](http://html1.mh-extra.com/html/icp-das-usa/mdcl-705i/mdcl-705i_user-manual_3760336091.webp)
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
∗
E-mail: [email protected] - 91 -
Q4: How to write data to output channels on a Modbus RTU slave device?
A4: Let's continue the example in Q3, the polling definition for the output channels with read
function code are edited in the config.csv file and the config.csv file are imported. Now we have
the local register addressed for the output channels on the Modbus RTU slave device.
Modbus TCP client or Modbus RTU master can write data to an output channel by writing data
to the local register address mapped for the channel.
Scan sequence – COM2
Read AI from 300000 to 300004
of CL-213 #1
Read AO from 400452
of CL-213 #1
Read DO from 000304 to 000308
of CL-213 #1
Read AI from 300000 to 300004
of CL-213 #2
Read AO from 400452
of CL-213 #2
Read DO from 000304 to 000308
of CL-213 #2
Read AI from 300000 to 300004
of CL-213 #3
Read AO from 400452
of CL-213 #3
Read DO from 000304 to 000308
of CL-213 #3
Read AI from 300000 to 300004
of CL-213 #4
Read AO from 400452
of CL-213 #4
Read DO from 000304 to 000308
of CL-213 #4
Read AI from 300000 to 300004
of CL-213 #5
Read AO from 400452
of CL-213 #5
Read DO from 000304 to 000308
of CL-213 #5
MDCL-705i
Local Registers
Scan sequence – COM1
Read AI
300000: 300004
300005: 300009
300010: 300014
300015: 300019
300020: 300024
Read AO
400000
400001
400002
400003
400004
Read DO
000000: 000004
000005: 000009
000010: 000014
000015: 000019
000020: 000024