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

help with modbus master, single register 8bit write #162

Open
jaygrovr opened this issue Aug 20, 2021 · 0 comments
Open

help with modbus master, single register 8bit write #162

jaygrovr opened this issue Aug 20, 2021 · 0 comments

Comments

@jaygrovr
Copy link

Hey guys, i have a project where i am trying to use an arduino mega, to connect over modbus rtu using serial port 1 or serial port 2 of the mega, 9600 baud to a client that is addressed as 1. The hex value of the register is 13. How can I just send this value repeatedly to my device.

I am running the latest version of modbusmaster, inside IDE 1.8.15

Can someone provide an example, this has to be super easy, but I am not seeing how to write this 8 bit value. The type is a uint8_t

Also does this library do the built in checksums for you?

Thanks again, sorry for the strange question. I have experience with modbus but only with something designed to communicate with it already.

ModbusMaster version

[Version of the project where you are encountering the issue]

Arduino IDE version

[Version of Arduino IDE in your environment]

Arduino Hardware

[Hardware information, including board and processor]

Platform Details

[Operating system distribution and release version]


Scenario:

[What you are trying to achieve and you can't?]

Steps to Reproduce:

[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this project or any resources it includes?]

Expected Result:

[What are you expecting to happen as the consequence of above reproduction steps?]

Actual Result:

[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]


Feature Request

Narrative:

As a [role]
I want [feature]
So that [benefit]

Acceptance Criteria:

Scenario 1: Title
Given [context]
  And [some more context]...
When  [event]
Then  [outcome]
  And [another outcome]...
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