node-red-contrib-iotdataformater 1.2.0
Node-RED custom nodes for formatting PLC data into continuous and discrete events, with event-name subscribers.
node-red-contrib-iotdataformater
Two Node-RED custom nodes:
- iotDataFormater
- Input PLL style message
- Output 1: continuous formatted tags
- Output 2: one or more discrete event messages
- triggerSubscriber
- Subscribe by event name from the formatter's discrete output
iotDataFormater
Global config
- MDS
- Line ID
- Machine ID
Continuous tags
Each row has:
- enabled
- tag name
- source path/expression (example:
payload.goodCount) - type (
raw,number,string,boolean)
Discrete rules
Each row has:
- enabled
- event name
- mode (
Expr,Rising,Falling,Change,When True) - source field or expression
- optional payload template
Notes:
- For
Expr, source is a JavaScript expression likemsg.payload.fault_code > 0 - For other modes, source is a field path like
payload.fault - A single input can emit multiple discrete events
triggerSubscriber
- Filters incoming discrete messages by event name
- Optional pass-through mode or compact output
Restart Node-RED after install.