« Back to Product

Documentation

ModBus_WriteRegisterDWord

 boolean ModBus_WriteRegisterDWord (int $InstanceID, int $Wert) 

Parameters

InstanceID

ID of the device to be switched

Wert

0-4294967295

Returns

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

Description

Sets address with ID InstanceID to Value

Warning

Due to a limitation of 32-bit integers within PHP, the area can only be used to 2147483647.

Example

//Writes 123 into the register of the instance with the ID 12345
ModBus_WriteRegisterDWord(12345, 123);
Any questions?