Reading the box number, writing to the box of components

I have issue, but I am looking for help in solving.

  1. I put the box on the line
  2. I read number this box
  3. I am reading and writes a elements value box into the object (may be different amount)
  4. 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 have no idea what you have tried to explain

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.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.