IEC function call
Command for calling an IEC function that can be programmed in the IEC Editor by the user. This command calls the IEC function during each cycle of the high-priority cyclical task (TaskHighPrio) until the IEC function returns the return value "TRUE". Only then is the next command executed.
The CallFunction can be used, for example, to create a consistent process image at a clearly defined point in the program sequence. For example, positions and MotionSets (using a method in the user interface) can be described that are to be used in the following SRL code:
[1] | Identifier for the IEC function call |
[2] | Selection whether the number of the function to be called should be entered directly or read from a variable. |
[3] | Transfer parameter for the function call so that various functions can be called using a case distinction in the IEC function. |
How the CallFunction is created in the IEC program and how it is connected to the robot is described in chapter IEC function call for the SRL program.