Calling POUs with output parameters in text editors¶
The output parameters of a called POU can be directly assigned upon being called in the text languages IL and ST.
Example:
Output parameter out1 of afbinst is assigned variable a.
IL:
CAL afbinst(in1:=1, out1=>a)
ST:
afbinst(in1:=1, out1=>a);
If the POU is inserted via input assistant (<F2>) with option ‘With arguments’ in the implementation window of a ST or IL POU, it will automatically be displayed with all parameters in this syntax. However you are not forced to assign these parameters.