Dear Experts,
What is the advantage if FC5 is transferred to FC6 as DATA TYPE BLOCK_FC IN Parameter? Where do I find its application?
Why do we need to transfer? We can call as well...I mean I can call FC5 from FC6, Why should I transfer FC5 as IN Parameter..
Below is the help and I may be provided with example and difference between call and transfer.
You can only assign this data type for variables which you declare as Formal Parameters.
Using BLOCK_FC, you determine that a Function (FC) is to be transferred to the declared formal parameter as an Actual Parameter when the logic block is called.
Data Type Length Format (n = Block Number) Information Provided
BLOCK_FC 16 bits FC n Number of the function
Example:
Call FB 10, DB110(
:
Input_Var_FCNR:= FC5, // FC5 is transferred to
// FB10 for processing
What is the advantage if FC5 is transferred to FC6 as DATA TYPE BLOCK_FC IN Parameter? Where do I find its application?
Why do we need to transfer? We can call as well...I mean I can call FC5 from FC6, Why should I transfer FC5 as IN Parameter..
Below is the help and I may be provided with example and difference between call and transfer.
You can only assign this data type for variables which you declare as Formal Parameters.
Using BLOCK_FC, you determine that a Function (FC) is to be transferred to the declared formal parameter as an Actual Parameter when the logic block is called.
Data Type Length Format (n = Block Number) Information Provided
BLOCK_FC 16 bits FC n Number of the function
Example:
Call FB 10, DB110(
:
Input_Var_FCNR:= FC5, // FC5 is transferred to
// FB10 for processing