Ken Roach
Lifetime Supporting Member + Moderator
Is there any evidence that your recipe handling problems are related to your fieldbus at all ?
If not, then set that discussion aside.
Investigate and diagnose how the various Clients interact with the batching logic.
That trigger is the first thing I would experiment with. Maybe add a couple seconds delay after the "not 0xFFFF" condition before that data is copied into a buffer, to be sure that any queued writes from the recipe logic in the HMI have completed.
I have spent about 12 years fine-tuning a similarly VBA-driven recipe system, on a machine overseas. I have some experience in un-doing other people's bandages.
If not, then set that discussion aside.
Investigate and diagnose how the various Clients interact with the batching logic.
The logic in the PLC essentially waits to see all the quantities to change from -32767 to something different and if all of them are different and a start bit is made, it copies the addition data onto a buffer and then another part of the program deals with the requests in the buffer and routes the addition through.
That trigger is the first thing I would experiment with. Maybe add a couple seconds delay after the "not 0xFFFF" condition before that data is copied into a buffer, to be sure that any queued writes from the recipe logic in the HMI have completed.
I have spent about 12 years fine-tuning a similarly VBA-driven recipe system, on a machine overseas. I have some experience in un-doing other people's bandages.