S
S
Slavka2015-10-30 09:26:07
C++ / C#
Slavka, 2015-10-30 09:26:07

freemodbus library how to send a parcel?

I urgently need to connect my device over the network, I read everything about modbus rtu, I found a free library, I understood how to configure the protocol, but I did not find how to send my array of bytes to the master's request. It's the first time I'm doing something like this. If anyone has experience, leave an email, I won’t get much.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Ocelot, 2015-10-30
@Ocelot

The byte array can be read via queues or via files (Modbus commands 0x18 and 0x14). Neither freemodbus can do either. I see two solutions:
1. Add an extension for FIFO on top of the library.
2. Pass the array through the function "Read Input Registers (0x04)"
What size of the array is expected and is it known at the time of the request?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question