Logic Machine Forum
Schneider RMH modbus - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Schneider RMH modbus (/showthread.php?tid=729)



Schneider RMH modbus - PassivPluss - 11.04.2017

Hi
I am triyng to make a Modbus profile for Schneider RMH.
Here is an modbus manual parameters that read different toroids and gives status of alarm og prealarm and so on.

How can this be made into a profile?
I have many other Modbus slaves and earlier we've been instructed not to mix both scripting modbus and profile modbus so therefore a profile is best.
The profile is to be loaded on SpacelynkSmile

Also Attached Modbus manual

Channel StatusAddress
Register
RW
Units
Type
Range
Factory
Saved
Bit
Description
0x00C8
201
R
NA
BITMAP
NA
0x0FFF
No

Validity of each bit of alarm status:
0 = invalid
1 = valid
0x00C9
202
R
NA
BITMAP
NA
0x0000
No
Alarm status
0–11
0 = no alarm on channel x
1 = alarm channel x
12–15
Reserved
0x00CA
203
R
NA
BITMAP
NA
0x0FFF
No

Validity of each bit of pre-alarm status:
0 = invalid
1 = valid
0x00CB
204
R
NA
BITMAP
NA
0x0000
No

Pre-alarm status
0–11
0 = no pre-alarm on channel x
1 = pre-alarm on channel x
12–15
Reserved
0x00CC
205
R
NA
BITMAP
NA
0x0FFF
No

Validity of each bit of alarm memorized:
0 = invalid


RE: Schneider RMH modbus - admin - 11.04.2017

You should use value_bitmask field to get each bit from a register separately: 0x01 will give you the first bit, then 0x02, 0x04, 0x08, 0x10 and so on.


RE: Schneider RMH modbus - PassivPluss - 11.04.2017

Ok. So then i use 12 different lines for the 12 toroids. Like my example underneath

{"bus_datatype":9,"bus_address":27654,"address":200,"Value_bitmask":0x01,"value_nan":[65472,0],"type":"register","units":"","name":"Channel 1","datatype":"int32"},
{"bus_datatype":9,"bus_address":27655,"address":200,"Value_bitmask":0x02,"value_nan":[65472,0],"type":"register","units":"","name":"Channel 2","datatype":"int32"},
{"bus_datatype":9,"bus_address":27656,"address":200,"Value_bitmask":0x04,"value_nan":[65472,0],"type":"register","units":"","name":"Channel 3","datatype":"int32"},


RE: Schneider RMH modbus - admin - 11.04.2017

First, make sure that all properties are in lower case or it will not work (you have Value_bitmask).
Correct address for Alarm status is 201 (202 - 1 = 0xC9), there's no NaN value there. It's a single register, so datatype is not needed, bus datatype must be Boolean.
{"bus_datatype":"bool","bus_address":27654,"address":201,"value_bitmask":0x01,"type":"register","name":"Channel 1"}


RE: Schneider RMH modbus - christian.hegland@caverion.com - 07.05.2021

Hi,

Would it be possible to ask for the modbus template for this RMH device?

Best regards
Christian