-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I'm using latest master rip and seeing hm2_modbus lose communications with a CommanderSK VFD via a 7i96 pkuart.
The communications will be fine for several vfd on/off cycles but eventually communications won't turn the VFD on/off.
When this occurs, I see a constantly increasing count (approx 1000 counts per second) on one of the modbus.0.commands.XX.errors counts. It is not stopping at 5. The XX has always been a read command but which one seems random. I started with 11 commands (9 reads, 2 writes).
modbus.0.commands.XX.error_code = 42 (ENOMSG)
modbus.0.commands.XX.disabled = true
modbus.0.commands.XX.reset doesn't seem to have any effect.
modbus.0.commands.XX.disabled doesn't seem to have any effect.
All the other commands have error count =0, but I can't disable or reset the command with a problem.
When this occurs,
modbus.0.last-error-code = 0
modbus.0.fault_command = 0
modbus.0.suspend has no effect.
modbus.0.reset has no effect.
By "has no effect", I see the particular command.XX.error code continue to increment, approx every 1msec, and it doesn't clear or stop incrementing.
Communications are 38.4K baud and there are currently 9 read commands (bunch of register reads to debug what's going on)
Docs indicate suspend is probed at end of list, maybe it is stuck in a 1msec loop incrementing the command error and never makes it to the end of the list???
Docs indicate the .errors count should max out at 5. This is not happening.
Using the 2.9.8, I remember seeing .errors count up to 5 and I could reset them, may have been a different error code. Master version does NOT stop counting at 5 with error_code=42.