SE Powertag alarm messages - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: SE Powertag alarm messages (/showthread.php?tid=5817) |
SE Powertag alarm messages - AlexLV - 05.01.2025 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 RE: SE Powertag alarm messages - admin - 06.01.2025 Bitmap is an unsigned integer. Here's a similar example: https://forum.logicmachine.net/showthread.php?tid=5653&pid=36454#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. |