ICP DAS USA LinPAC-22 Series User Manual page 30

Xv-board api functions
Table of Contents

Advertisement

ICP DAS
Read the Digital Input value from multiple channels on the
Step1: Transfer the getmodbus.exe file to the LP-52xx module.
Step2: Change the permissions for the file, as shown below:
# chmod 755 getmodbus.exe
Step3: Execute the program.
Read the DI0 channel on the M-7002 module # ./getmodbus 2 115200 1 2 32 1 100
Read the DI1 channel on the M-7002 module # ./getmodbus 2 115200 1 2 33 1 100
Read the DI2 channel on the M-7002 module # ./getmodbus 2 115200 1 2 34 1 100
Read the DI3 channel on the M-7002 module # ./getmodbus 2 115200 1 2 35 1 100
Read the DI4 channel on the M-7002 module # ./getmodbus 2 115200 1 2 36 1 100
Read all DI channels on the M-7002 module
Remarks:
The following is a more detailed description of the demonstration.
(1) For more information related to the address mapping (Modbus register table) for the M-7002
module, refer to:
http://www.icpdas.com/products/Remote_IO/m-7000/address_mapping/m7000_address_mapping.pdf
The base address for the M-7000 module when communicating with the LP-5231 module is
0. The table below provides an overview of the valid range of M-7002 module register
addresses.
# ./getmodbus 2 115200 1 2 32 5 100
LinPAC-52xx Series XV-Board API User Manual
M-7002
module
30

Advertisement

Table of Contents
loading

Table of Contents