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.

SE Powertag alarm messages
#1
Hi, I use PAS400 and powertag devices to measure energy consumption and other values.

Unfortunately default profile did not provide alarms.

From powertag ModBus description I found I can add some more parameters to read additional info.

Questions:

1. How to add to modbus json profile for reading BITMAP and ASCII data types?
2. How to decode BITMAP info?

Info I have from Modbus  document:

Load Monitoring - Alarm:
address: 0x0CE1
Register: 3298
N: 2 (length=??)
R/W: R
TYPE: BITMAP
Invalid value: 0x00000000
Function: 3, 100-4

Description:

Validity of the alarm bitmap (0 = Invalid / 1 = Valid) – refer to register 3300
• Bit 0 = Validity of Voltage phase loss alarm(1)
• Bit 1 = Validity of Current overload when voltage loss alarm(1)
• Bit 2 = Validity of Current short-circuit alarm
• Bit 3 = Validity of Current alarm 45% alarm(1)
• Bit 4 = Validity of Load current loss alarm(1)
• Bit 5 = Validity of Overvoltage 120% alarm(1)
• Bit 6 = Validity of Undervoltage 80% alarm(1)
• Bit 7 = Validity of Battery low pre-alarm(2)
• Bit 8 = Validity of Heat alarm status alarm(3)
• Bit 9 = Validity of Battery low alarm(4)
• Bit 10 = Validity of Preventive maintenance on the device alarm(5)
• Bit 11 = Validity of Device Replacement alarm(6)
• Bit 12 = Validity of Current Alarm 50%(1)
• Bit 13 = Validity of Current Alarm 80%(1)
• Bit 15 =  Validity of Ground Fault Alarm (7)
• Bit 16–31 = Reserved

Regarding ASCII type:

address:0x7970
register:31089
N: 10 (length=??)
R
-
-
type: ASCII

Invalid value: 0x0000000000000000000000000000000000000000
3, 100-4
Description: Serial number

BR,

Alex
Reply
#2
Bitmap is an unsigned integer. Here's a similar example: https://forum.logicmachine.net/showthrea...4#pid36454
In your case use uint32 instead of uint16

To read the serial number use string data type and add "read_count": 10 to the mapping field.
Reply


Forum Jump: