![background image](http://html1.mh-extra.com/html/advantech/adam-6000-series/adam-6000-series_user-manual_2857302099.webp)
ADAMTCP_Write6KDIOMode
Description:
To set the working modes for each DI/O channels in a specific ADAM-6000 module.
Syntax:
int ADAMTCP_Wirte6KDIOMode(char szIP[], WORD wModule, WORD wIDAddr, BYTE byDIMode[],
BYTE byDOMode[])
Parameter:
szIP[in]: the IP Address of the target ADAM-6000 module to be connected.
wModule[in]: the module name of the ADAM-6000 module to be connected.
(For example, 6050, 6051, or 6060)
wIDAddr[in]: the Modbus device ID for an ADAM-6000 module. (Always 1)
byDIMode[in]: an 8-bit array that stored DI channels’ working modes which represent in
numeric format as follows:
0: this channel is in 'DI' mode
1: this channel is in 'Counter' mode
2: this channel is in 'Lo to Hi latch' mode
3: this channel is in 'Hi to Lo latch' mode
byDOMode[in]: an 8-bit array that stored D/O channels’ working modes which represent in
numeric format as follows:
0: this channel is in 'DO' mode
1: this channel is in 'Pulse Output' mode
2: this channel is in 'Lo to Hi Delay' mode
3: this channel is in 'Hi to Lo Delay' mode
Return:
Please refer to Chapter 6-2-3 "Return Codes" for more detail information.
Summary of Contents for ADAM-6000 series
Page 21: ...Figure 3 2 Fix ADAM 6000 module on the bracket...
Page 23: ......
Page 24: ...Figure 3 4 Secure ADAM 6000 Module to a DIN rail...
Page 27: ...Figure 3 6 ADAM 6000 I O Module Terminal Block wiring...
Page 32: ...Figure 4 4 ADAM 6017 Digital Output wiring...
Page 36: ...Figure 4 8 ADAM 6050 Digital Output Wiring...
Page 41: ...Figure 4 13 ADAM 6051 Digital Output and Counter Wiring...
Page 46: ...Figure 4 18 ADAM 6060 Relay Output Wiring...
Page 75: ...Figure 5 29 Firmware Upgrade for ADAM 6000 I O Series Modules...
Page 153: ...Appendix A Design Worksheets...