TPD/VPD Series HMI Device User Manual
Copyright © 2020 ICP DAS Co., Ltd. All Rights Reserved.
Page: 101
5.1.3 Connecting to I/O Expansion Boards (XV-Board)
Default Value
Net ID
1
Baud Rate
115200
Comport
XVBus
Communication Interface
Modbus RTU (XV-Board as slave)
Using C Programming Language to Control XV-board
XV-Board
HANDLE h;
int NetID = 1;
int addr = 1;
int ch_count = 8;
char DO_value[1];
DO_value[0] = 3;
//that is, turn on the ch 0 and ch1.
h = uart_Open("XVBus,115200,N,8,1");
mrm_WriteDO (h, NetID, addr, ch_count, DO_value);
uart_Close(h);