How do you program jump distribution in S7-SCL?
If you have to conduct the same calculation at several points in your S7-SCL program, but you cannot use your own function for this purpose, we recommend programming using the jump functions.
Before jumping to your calculation routine, assign a value to the tag with which you mark the point from which you jumped to the calculation routine. A jump distributor at the end of the calculation routine takes you back to the position you were at before.
Fig. 01 below shows an example for a possible compilation.