CALL

Top  Previous  Next

 

Call a block

 

Syntax:

CALL FB x, DB y

CALL FC x

 

With CALL you achieve the jump to the specified block that can be a function(FC) or a function block(FB). Calling a FB you have to specify the DB that shall be used as instance-DB by the FB.

If you program the instruction CALL the parameter of the called block appear automatically.

With FCs you have to specify an operand for each of the listed formal parameter. Calling a FB you do not have to do this: if you do not specify an operand the corresponding value of the instance DB will be used inside the FB.

 

The FB1 resp. the FC5 will only be called if the input I 0.2 is set to ‘1’. If the calling shall happen absolutely you will be able to leave the EN-input unused.

 

See also:

EN-input

ENO-output

OPN

CC

UC

SFB

 

List of operations