|
|
@ -19,6 +19,7 @@ Features |
|
|
|
Example |
|
|
|
Example |
|
|
|
------- |
|
|
|
------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```php |
|
|
|
// Modbus master UDP |
|
|
|
// Modbus master UDP |
|
|
|
$modbus = new ModbusMaster("192.168.1.1", "UDP"); |
|
|
|
$modbus = new ModbusMaster("192.168.1.1", "UDP"); |
|
|
|
// Read multiple registers |
|
|
|
// Read multiple registers |
|
|
@ -33,3 +34,4 @@ Example |
|
|
|
} |
|
|
|
} |
|
|
|
// Print data in string format |
|
|
|
// Print data in string format |
|
|
|
echo PhpType::bytes2string($recData); |
|
|
|
echo PhpType::bytes2string($recData); |
|
|
|
|
|
|
|
``` |
|
|
|