« Back to Product

Documentation

ModBus_WriteCoil

 boolean ModBus_WriteCoil (int $InstanceID, boolean $Status) 

Parameters

InstanceID

ID of the device to be switched

Status

TRUE for On, FALSE for Off

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

Sets address with ID InstanceID to _Value

Example

//Turns instance with the ID "12345" on
ModBus_WriteCoil(12345, true);
Any questions?