P
P
Pavel Perkov2020-01-31 11:13:00
Arduino
Pavel Perkov, 2020-01-31 11:13:00

Modbus primitive control by arduino - how to send a command?

Good afternoon, there are 4 slave devices, arduino, UART - RS485 converter,
It is very limited in time, and there is no way to adapt libraries Tested slaves via PC using USB-RS485 converter - correctly send and read registers using
instructions 0x03 and 0x06
bit commands to control slaves without libraries using only serial print and serial read?
In the QMB software, I received the bit values ​​\u200b\u200bthat I needed for control in the form
01 06 00 02 00 00 28 0a
01 06 00 02 00 01 e9 ca
01 06 00 02 00 01 e9 ca
01 06 00 02 00 01 e9 ca
01 06 00 02 00 02 a9 cb
01 06 00 02 00 01 e9 ca
08 06 00 02 00 01 e9 53
08 06 00 02 00 02 a9 52
08 06 00 02 00 03 68 92
65 06 00 02 00 03 60 2f
65 06 00 02 00 02 a1 ef
65 06 00 02 00 01 e1 ee
65 06 00 02 00 01 e1 ee
65 06 0 0 02

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-01-31
@NeiroNx

create a set of command blanks and send the entire package by writing a byte sequence to the UART - this way you can avoid calculating checksums.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question