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
Product R413D08, USB to RS485/RS232 - documentation? #1
Comments
8 Channel Multifunction RS485 Module command.pdf On Fri, 11 Dec 2020 at 10:13, Support support@robotics.org.za wrote:
Default slave address is 01 0x0001 16 bits wide 9600 Band ,8 Data bits,None Parity,1 Stop Bit 6)Relay state0x0001 open; 0x0000 close Attached a PDF version of the documentation that was contained in the rar files. Opening a .rar file applications. Linux: unar file.rar (command line)Windows: WinRARMAC OS: The Unarchiver app |
And an attachment from the suppliers.... |
I've found some documentation at Banggood but it is difficult to understand. I understand that it is possible to read port levels. Is it also possible to detect a pulse? I.e. is it possible to set up the port so each read returns if the port has changed since last read? If not, is the source available so I can add that functionality myself? |
On the product I bought, R413D08, USB to RS485/RS232, I have put in several hours now, and the lack of documentation is shocking.
Questions for this product :
As it has 8 outputs for controlling relays, how do I read the state of each of the relays? IN which function code (FC) will I find the info?
FC1 Read Coil
FC2 Read Discrete Input
FC3 Read Holding Registers
FC4 Read Input Registers
Where / how is the Slave address set / or if hard coded, what is it?
Starting reference?
Discrete output (coil) / input data types?
Communication. a) What baud rate does it work on. b) Data bits - 8? c) Stop bits - 1? d) Parity - none / odd / even?
What write values to use to switch relay on / off?
What I have done so far:
5. sudo raspi-config / 5 Interfacing Options / a6 Serial / enable.
a) wget https://www.modbusdriver.com/downloads/modpoll.tgz
b) tar xzf modpoll.tgz && rm modpoll.tgz
c) export PATH=$PWD/modpoll/linux_arm-eabihf:$PATH
modpoll -m rtu -a 1 -b 9600 -d 8 /dev/ttyUSB0
Above command gives the following:
modpoll 3.9 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright (c) 2002-2020 proconX Pty Ltd
Visit https://www.modbusdriver.com for Modbus libraries and tools.
Protocol configuration: Modbus RTU, FC3
Slave configuration...: address = 1, start reference = 1, count = 1
Communication.........: /dev/ttyUSB0, 9600, 8, 1, even, t/o 1.00 s, poll rate 1000 ms
Data type.............: 16-bit register, output (holding) register table
-- Polling slave...
Reply time-out!
The text was updated successfully, but these errors were encountered: