Chapter 6
Planning Your Application Program
ADAM5KTCP_WriteCoil
Description:
Write the coils value at a specified range described
in parameters.
Syntax:
int ADAM5KTCP_WriteCoil(char szIP[], WORD
wID, WORD wStartAddress, WORD wCount, BYTE
byData[]);
Parameter:
szIP[in]:
the IP Address of the ADAM-5000/TCP that to be
connected
wID[in]:
the specific device ID for an Modbus/TCP device.
The ADAM-5000/TCP is always assigned as 1
wStartAddress[in]: the starting address that to be written
wCount[in]:
how many coils to be written
byData[out]:
an unsigned 8 bit array that stored values written to
coil
Return:
Please refer to Chapter 6-2-4 “Return Codes” for more
detail information
6-18
ADAM-5000/TCP
User’s Manual
Содержание ADAM-5000/TCP Series
Страница 1: ......
Страница 23: ......
Страница 44: ...4 I O modules...
Страница 148: ......
Страница 183: ......
Страница 218: ......
Страница 300: ...Appendix A Design Worksheets...
Страница 307: ...Appendix A Design Worksheets A 8 ADAM 5000 TCP User s Manual...
Страница 308: ...Appendix B Data Formats and I O Ranges...
Страница 323: ...Appendix B Data Formats and I O Ranges B 13 ADAM 5000 TCP User s Manual...
Страница 324: ...Appendix C Grounding Reference...
Страница 331: ...Appendix C Grounding Reference Figure C 6 wire impedancC C 8 ADAM 5000 TCP User s Manual...