ICP DAS USA LinPAC-22 Series User Manual page 29

Xv-board api functions
Table of Contents

Advertisement

ICP DAS
Remarks:
The following is a more detailed description of the demonstration.
(1) Refer to the Modbus register table for the XV310 module for more details. The table below
provides the valid range for the register addresses.
DO0
:
DO3
Refer to Chapter 1.3: "Specifications" for details of other specifications for the XV-Board,
together with the Modbus register table.
(2) Set the DO value for the XV310 module. The data format is as follows:
Single channel
DO Channel
DO0
DO1
DO2
DO3
All channels
Start Address
00000
00000
In this example, set the channel states for the DO1 and DO3 channels to ON, and set the
other DO channels to OFF. The default data format for multiple Digital Input or Digital Output
channels is decimal, so we must first convert the binary value to a decimal value. For
example, the binary value 1010 (bin) would be expressed in decimal format as 10 (dec).
Address
Count
00000
00001
1
00002
00003
Count
Channel Status
DO3 DO2 DO1 DO0
4
ON or OFF
Sample command # ./setxvdo 0 4 10
4
1
LinPAC-52xx Series XV-Board API User Manual
Channel Status Data Format (Value)
ON or OFF
0
1
0
0: OFF
1: ON
Data Format (Value)
0~15
10
29

Advertisement

Table of Contents
loading

Table of Contents