question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error being thrown repeatedly: 'FSM Not Ready To Read'

See original GitHub issue

Hello,

In my node-red project, I am relying on the state of a modbus client node to raise a disconnection alert. The modbus client node gets set to an error state very briefly but repeatedly. The error thrown is FSM Not Ready To Read, throw at this line

I did some debugging, and when that error is thrown the state of the FSM is ‘READING’ It is indeed not one of the allowed states: modbus.core.client.messagesAllowedStates = ['ACTIVATED', 'QUEUEING', 'EMPTY']

Is that the expected behavior?

Now, for more details: I am using node-red-contrib-modbus@1.1.0 I am polling 3 modbus programmable logic controllers at an interval of 1 second. I have only had this problem while running my node-red project inside a docker container; I suspect I may have some added latency while reading because of that, but after some testing have found the latency perfectly acceptable (in the order of a few milliseconds). The same project running outside of a container does not throw those errors.

If the error being thrown is the expected behaviour, I’ll have to look at either not relying on the state of the node, or trying to see what could cause a delay with the communication with the physical modbus element.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Somavaramcommented, Jul 10, 2018

@apanasara Hi, Even I am facing the same problem please let me know if you have found some solution for this. Thank you!

1reaction
biancodecommented, Apr 22, 2018

@apanasara Hi, I need some logs please or is it done

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with Node-red- Modbus / S7 node - General
Now, I am trying to read the holding registers using Modbus read. ... Error FSM not ready to read at state INIT
Read more >
raid.cksum events - Product documentation - NetApp
Severity. ERROR. Description. This event is issued when WAFL accesses a block that was zeroed because it could not be recovered correctly. Corrective...
Read more >
69751 - Xilinx PCI Express - FAQs and Debug Checklist
Check using AXI JTAG if the GT reset FSM has completed and is back to 00 state. If so, check if the phy_status_rst...
Read more >
FSM-3 Series SuperMag Manual - ONICON
This is NOT an electrical or plumbing trade manual. This guide is the basic reference tool for all ONICON FSM-3 Series SuperMag Insertion...
Read more >
Frequently Asked Questions - Instron
FAQ information is not intended to substitute for training and the ... I am getting this error on my model dx machine: ERROR:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found