This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus RTU to TCP bridging
#9
Hi Erwin,

Thanks for getting back to me! Big Grin

The IFM interface is in the unlocked position. I've just tried with your password 0000, as I don't think or know if there's been set any other user password on these devices.
Could that be changed og checked with some software tools?

(25.05.2021, 08:57)Erwin van der Zwart Wrote: Did you unlock the locking pad on the IFM interface? 

• protected by password where a password is required in the command
• protected by configuration: ◦ with the IFM interface, the remote control commands are enabled when the locking pad on the IFM interface is in the open position.

In sample below the used password is 0000 (ASCII 00 = 00110000 00110000 => 12336 in Decimal) 

Code:
require('luamodbus')
mb = luamodbus.rtu()
mb:open('/dev/RS485', 19200, 'E', 8, 1, 'H')
mb:connect()
mb:setslave(1)
if event.getvalue() == true then
  mb:writeregisters(7999, 904, 10, 4353,1,12336,12336,0,0,0,0,0,0,0,0,0,0,0,8019,8020,8021) -- Open command
else
  mb:writeregisters(7999, 905, 10, 4353,1,12336,12336,0,0,0,0,0,0,0,0,0,0,0,8019,8020,8021) -- Close command
end
mb:close()

Hi Erwin,

Since I can't fiqure out how to send an attachment in PM, i'll just try here.

Attached Files Thumbnail(s)
   
.json   Compact_NSX-Compact_NSX_E.json (Size: 24.04 KB / Downloads: 5)
Best regards
Christian
Reply


Messages In This Thread
RE: Modbus RTU to TCP bridging - by Daniel - 20.05.2021, 07:37
RE: Modbus RTU to TCP bridging - by Daniel - 21.05.2021, 07:42
RE: Modbus RTU to TCP bridging - by admin - 21.05.2021, 13:06
RE: Modbus RTU to TCP bridging - by christian.hegland@caverion.com - 25.05.2021, 12:15
RE: Modbus RTU to TCP bridging - by cekca - 27.05.2021, 07:27

Forum Jump: