When using SendRecipe to write a group of only internal variables it takes only 2ms, to call SendRecipeCompleted.
But when a group contains even only one external (equipment) variable then the process takes 800ms to call SendRecipeCompleted.
This is 400 times longer. Why?
Can this delay be adjusted or removed?
What is causing the delay?
Hello,
The SvMgr SendRecipe function works like the standard PcVue recipes.
The function has first to check if the devices are ok, then, it sends the corresponding frames to the devices and it waits to receive an ack from.
With the internal variables, everything is local, especially, if the function is executed on the station which is producing the variables. With a PLC, if it needs 800ms to answer, you'll have a delay of 800ms.
Depending on the variables in your recipe, you may need to send more than one frame, and for each frame there is a delay, because we need the ack from the device for each frame.
How to reduce this delay ?
- Write only variables that are adjacent in the frame.
- Use optic fiber between the SCADA and the PLC...
- optimize the treatment speed of the device
- ...
Hi Naggen
I did reply to Shaun about it.
The SendRecipe return in 2ms for internal variable because the Ack of the send recipe is nearly instantaneous since the variable take no time to be update.
But if within the recipe there is an external variable (OPC or Equipment etc)then you have to wait for this variable to be written and receive an Ack.
So that is why it takes longer if you have some “external” variable.


