ICP DAS WISE User Manual
http://wise.icpdas.com
288
The following table gives detailed information of the query command, command
parameters and returned values. For parameters “id”, “password” and “callback”,
please refer to the examples in section above.
Set up the I/O channel value.
Command
job=set_channel_val&
if_type=
val
&com_port=
val
&module_no=
val
&
ch_type=
val
&ch_addr=
val&
ch_value=
val
Parameters
Name
if_type
Description
The I/O module Interface
Value
0: XV-Board
1: COM Port
2: Network
Name
com_port
Description
If the I/O interface is XV-Board or
Ethernet, skip this parameter. If
the I/O interface is COM Port, it is
the COM Port number.
Value
0: COM0
1: COM1
…and so on.
Name
module_no
Description
The index number of the module. If
the I/O interface is XV-Board, skip
this parameter.
Value
Integer; start from 1.
Name
ch_type
Description
The channel type
Value
Modbus Module
:
co, ro
ICP DAS I/O Module
:
do, ao
Infrared Module
:
ir
Name
ch_addr