-

Application example: Preventing competing accesses to recipe files

To prevent competing and thus faulty read/write access by several instances of FBs to a recipe file, you should prevent the simultaneous triggering of the FB execution in the safety application. The following illustration shows a simple possibility: The AND_S functions are used to ensure that the signals at the inputs CommandWrite (SF_RecipeWrite FB) and CommandRead (SF_RecipeRead FB) cannot switch to SAFETRUE at the same time.