« Back to Product

Documentation

S7_WriteBit

 boolean S7_WriteBit (int $InstanceID, boolean $Value) 

Parameters

InstanceID

ID of the device to be switched

Value

TRUE for On, FALSE for Off

Returns

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

Description

Set the address with the ID InstanceID to value status

Example

S7_WriteBit(12345, true); //Turn on device
Any questions?