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.

Schneider RMH modbus
#1
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

Attached Files
.pdf   Brukermanual RMH m modbus.pdf (Size: 999.09 KB / Downloads: 27)
Reply
#2
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.
Reply
#3
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"},
Reply
#4
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"}
Reply
#5
Hi,

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

Best regards
Christian
Reply


Forum Jump: