16.04.2022, 06:39 (This post was last modified: 16.04.2022, 06:47 by phongvucba.)
Hi all!
I have connected a temperature sensor that supports RS485, I have tested it with modbus poll and it works ok. But when I connect to LM, it gives an error when I receive the command, I send the command also the error, did I configure the rs485 Bus correctly as the document and like modbus poll ?
I don't know where the error is, please help me!
Disable RTU in Modbus settings and run this script once. Post what you get in Logs.
You might need to change the serial settings in the script. It is currently set to 9600 baud, no parity (N) and 1 stop bit.
This is not a valid reply from the Modbus device. This means that there's some communication issue.
Try connection power supply GND (-) of the sensor to the RS485 GND input on LM and check if it makes a difference.
19.07.2022, 09:31 (This post was last modified: 19.07.2022, 09:33 by Dré.)
I hope you dont mind if i hijack this topic.
I have a problem, i have 2 of the same ABB modbus energymeters B21 212 00, the first adres is still working for a half year.
multiple times i try to add a second energymeter.
I address him 2 and so far i know all other settings of the modbus are the same.
I had more of the energymeters and i also tried others with the same settings and adres 2.
but the problem is, the Wiser still contue give problems 'in the error log is see 'Airco (RTU 1 slave 2) read failed: Operation timed out'.
but it looks like it is also working sometimes.
The total cable lengte is a 50cm (KNX kabel) and the wires are twisted under the terminal, to proceed to the 2nd module, so im sure it isnt the cable.
Do you have a idea where i have to look to solve this problem?
19.07.2022, 10:09 (This post was last modified: 19.07.2022, 10:13 by Dré.)
*i had a mistake about the text i add.
i mean It looks like if i set this to 14 (not 60) that this solved the problem.
I was still trying to find the problem.
It looks like if i change the 'poll interval' lower that this solved the issue, but just once a minute checking is more than enough for me.
But im not sure what timeout means. Because he's just checking at the interval i set too.
but the timeout goes to 15 seconds and the interval much more.
or is it a open connection?
Timeout is simply time which Master will wait for the slave to replay. Pool interval should be much longer than the timeout as it is per register where pool interval is for whole device. How many registers do you read?
You get less errors because the device is polled less due to large timeout value. In the device does not answer the communication is fully blocked for 15 seconds. Timeout for RTU should not be longer than 1 second for most devices.
19.07.2022, 10:26 (This post was last modified: 19.07.2022, 10:28 by Dré.)
(19.07.2022, 10:17)Daniel Wrote: Timeout is simply time which Master will wait for the slave to replay. Pool interval should be much longer than the timeout as it is per register where pool interval is for whole device. How many registers do you read?
what do you mean with registers?
the profile for reading a modbus device? it are 67, 66 of them where already inside the Wiser (all of them from Schneider) and i add 1.
is it posible i did make a mistake with creating the profile?
from both devices i only use Active import, Active Export, Active total power in mapping, but i dont know if he still does do anything with all others.
(19.07.2022, 10:17)admin Wrote: You get less errors because the device is polled less due to large timeout value. In the device does not answer the communication is fully blocked for 15 seconds. Timeout for RTU should not be longer than 1 second for most devices.
Thanks Admin, now i understand it better.
i changed it back 60 for poll interval
and 1 second for timeout
19.07.2022, 10:33 (This post was last modified: 19.07.2022, 10:56 by Dré.)
@Daniel,
yes, the wire started with the Wiser > modbus address 1 > modbus address 2.
Now i trying to remove the first adres in Wiser and just only use the second address.
Both are still wired, just remove in Wiser.
And so far (few minutes) I don't have an error.
At the moment I think maybe the problem is the json script, is it possible he gives problems to read out the next device?
EDIT
i add again address 1, now i get the same problem, but now on RTU 1 slave 1.
so it changed from slave 2 to slave 1.
it looks like the problem shows on the last added device.
i didn't made a change on wired or hardware.
and if i remove slave 2, slave 1 works well again.
(19.04.2022, 11:22)admin Wrote: This is not a valid reply from the Modbus device. This means that there's some communication issue.
Try connection power supply GND (-) of the sensor to the RS485 GND input on LM and check if it makes a difference.
Hi Admin,
today I stumbled in a problem like that (CRC error). But my device a Solar Inverter has only pin RX-TX. Any suggest?
Best regards Cristian
@Dré, profile does not affect device operation. Read/write can fail if the addresses or other settings are wrong. But if you have two identical devices where one is not working correctly then it's definitely not a profile issue.
@CristianAgata, do you have documentation for this inverter? There must be some DC input or output with a GND/0V connection can be used.