X hits on this document

82 views

0 shares

0 downloads

0 comments

23 / 37

MODBUS Communications Driver - Functions

ForceCoil: Write (Force) Single Coil

SYNOPSIS

status

Error Return

Integer

Address

Destination Address

Integer

Coil

Coil Number

Integer

Value

New Value

Integer

short status = MB ForceCoil(short Address, long Coil, short Value);

_

DESCRIPTION

Writes a new value to a single Output coil (address 0xxxx). The Driver will set the Coil to 0 if "New Value" is zero, or to 1 otherwise.

EXAMPLE

short status = MB ForceCoil(3, 122, 1);

_

if (status != 0) MessageBox(NULL, MB ErrorString(status), MB_OK); else MessageBox(NULL, MB_OK); "ForceCoil Error", _ "Coil 122 set to 1", "Force Coil",

Revision 2.210

June 6, 1998

Page 15

Document info
Document views82
Page views84
Page last viewedSat Dec 03 16:19:07 UTC 2016
Pages37
Paragraphs781
Words6172

Comments