Skip to content
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

Read Coil is causing adapter to disconnect from device #626

Open
turpler opened this issue Feb 4, 2025 · 1 comment
Open

Read Coil is causing adapter to disconnect from device #626

turpler opened this issue Feb 4, 2025 · 1 comment

Comments

@turpler
Copy link

turpler commented Feb 4, 2025

I want to control a multi channel relay card. I can connect to the device and control all channels via coil addresses (e.g. 0 to 8). I do not use Aliases. Switching the channels on and off is working well, but I do not get the status reported back. In order to receive the status information and to read the address after activation command, I ticked the box (Poll) in the Coil channel settings.
Activating the adapter it turns green but ends at a orange state after a few seconds.
Looking in the log the adapter reports : Relay1 - started polling -------------- for several lines - then the connection is being closed.

Does anyone know about this issue? What is the problem? How can it be solved?
What happens when the Poll box is ticked? Is it waiting for a response when the activate command is being sent (01 05) or is it a status query (01 01)?

Can anyone help?
Thanxx.

Modbus Adapter 6.3.2
Node.js V20.18.2
NPM 10.8.2
JS Controller ´70.6
IOBroker 7.4.10

@turpler
Copy link
Author

turpler commented Feb 4, 2025

Which command is send for reading one or more coils via (Poll)? For one Coil: 01 01 00 00 00 01 CRC? and for more than one coils: e.g. 01 01 00 00 00 08 CRC - or is the single command send for multiple coils/addresses for several times?

Which answer is expected?

The documentation of the board shows this information.
Image

I also checked the communication using "modbuspoll". For the relay switching command and the status command the relay board communicates as documented and expected.

Image

This behavior seems to be correct.
Can anyone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant