Replies: 1 comment 2 replies
-
Hi,
not sure what you want to accomplish but to activate/deactivate the relays
it seems you have to use function 5.
So in artisan it would be
wcoil(slaveId,register,<bool>)
I think the default slave add is 255 and rly1 register is 0 for your board.
To read the status use
read(slaveID,register)
Best
Frank
El dom, 20 jun 2021 a las 23:37, kagnadin ***@***.***>)
escribió:
… I got a modbus rtu realy 2ch from aliexpress.
http://www.chinalctech.com/m/view.php?aid=455
it has 2 optocouler input then modbus func2 is possible. but it supports
only 1 byte, 08
if send 04 or 10(2bytes) it doesn't relay.
11, Read optocoupler input status
send : FF 02 00 00 00 08 6C 12
return : FF 02 01 01 51 A0
remarks:The 4th byte of the Return frame, Bit0--Bit7 of 0x01 represent
optocoupler1- optocoupler 8 input signal ,0 represent low level ,1
represent high level
In Artisan, modbus 1-2 for temperature, modbus 3-4 for optocouler.
Is there any way to send only 1byte throught func2?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#634>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANSEK4ZOHLEDORQODLDGID3TT262BANCNFSM47AZXTQA>
.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I got a modbus rtu realy 2ch from aliexpress.
http://www.chinalctech.com/m/view.php?aid=455
2ch output relay works very well using modbus rtu command, Drum & Cooler works well.
it has 2 optocouler input then modbus func2 is possible. but it supports only 1 byte, 08
if send 04 or 10(2bytes) it doesn't relay.
11, Read optocoupler input status
send : FF 02 00 00 00 08 6C 12 <- 08 means 1 byte. it works only at 08 ( coils request )
return : FF 02 01 01 51 A0
remarks:The 4th byte of the Return frame, Bit0--Bit7 of 0x01 represent optocoupler1- optocoupler 8 input signal ,0 represent low level ,1 represent high level
In Artisan, modbus 1-2 for temperature( Autonics Tx4s, func4) , modbus 3-4 for optocouler.
Is there any way to send only 1byte( coils request : 08) throught func2?
Beta Was this translation helpful? Give feedback.
All reactions