Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModBusMaster Demo reads values fine but gives an error when writing values #46

Open
AdamRoslon opened this issue Nov 14, 2020 · 0 comments

Comments

@AdamRoslon
Copy link

I'm able to read register values without any problem, but I'm not able to write to the register values.

mctPLC.WriteRegister is returning False because TIdModBusClient.SendCommand is returning False

IOHandler.ReadBytes(RecBuffer, iSize); is setting ReceiveBuffer.FunctionCode to 134 but it needs to be equal to AModBusFunction which is 6

I get the same result with the compiled demos as I do when I compile them myself.

2020-11-14_102532

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant