write register #114
Unanswered
Elmatbaisaad
asked this question in
Q&A
Replies: 1 comment 3 replies
-
For more details about modbus addressing please read spec https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf page 7 "4.4 MODBUS Addressing model" |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone !
i m working on a project where i should read register's values , now i need to write on register but i didn't really understand the fc6 here:
$startAddress = 12288;
$value = 55;
$unitID = 0;
$packet = new WriteSingleRegisterRequest($startAddress, $value, $unitID); // NB: This is Modbus TCP packet not Modbus RTU over TCP!
echo 'Packet to be sent (in hex): ' . $packet->toHex() . PHP_EOL;
is the startAdresse is the adress of the register that we want to change his value ?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions