I have issue, but I am looking for help in solving.
I put the box on the line
I read number this box
I am reading and writes a elements value box into the object (may be different amount)
when box is full, I send this box next production line, and writes (sending) value to msg. payload to MQTT
and next the same
Maybe someone has an idea to do it?
What is your opinion,
Use object with table? When number box is null finish writes elements and send to msg.payload.
I think you need to explain yourself a bit more. What is a box in relation to node-red? What object? Is this an automatic system? How is data getting into node-red?
I am new user and , not have add picture.
I have in PLC s7 - number box , number element
I send to node-red
I would like prepate msg.payload and send to MQTT when box is full { box: 1, data: timestamp, {[element: 1, data: timestamp], [element: 2, data: timestamp], [element: 3, data: timestamp], [element: 4, data: timestamp]}
next, { box: 2, data: timestamp, {[element: 1, data: timestamp], [element: 2, data: timestamp], [element: 3, data: timestamp], [element: 4, data: timestamp]}
My issue is, what use while or for eatch or other solution.