Skip to main content

Phase 3 - PLC Optimisation -

· 2 min read
Adrian Littlejohns
Industrial Process Control and Automation Enthusiast

Today's Tasks

  1. Optimising RECIPE_COPY
  2. Optimising _USR_COUNT01

Optimising RECIPE_COPY

Usageuse case
PIC420 :5Copy part of running viscoParams recipe to FIXED consecutive reals in "Real registers"
PIC420 :28transfer one parameter of Selected Recipe into RecipeRunning. PC420_Step115
PIC420 :28transfer one parameter of Selected Recipe into RecipeRunning. PC420_Step120
PIC420 :29transfer one parameter of Selected Recipe into RecipeRunning. PC420_Step40_45
PIC420 :35transfer RecipeEdit to Selected Recipe.

On reflection, the use cases of this function all can be achieved by use of Array indirect addressing, according to use case directly at point of need.

Making the RECIPE_COPY function redundant.

Changes in PIC420

PIC420 Network 5, Changes

The screenshot above show network 5 as it was, which was subsequently deleted, and the code in network 6 which replaces and becomes network 5.

PIC420 Network 28 Changes

The screenshot above show network 28. The MOVE instruction replaces the functionality of the RECIPE_COPY function, which was subsequently deleted. This was repeated to move parameter PC420_Step120 of the selected recipe to PC420_Step120 of the running recipe.

PIC420 Network 35, Changes

The screenshot above show network 35. The MOVE instruction replaces the functionality of the RECIPE_COPY function, which was subsequently deleted. In this case the selected recipe UDT data is moved to the running recipe.

Optimising _USR_Count01

See Section 2 of the following manual. SIMATIC ET200S Technological Functions