Example of "Direct Parameter assignment"
Call of the FB 10 corresponding to "direct parameter assignment":
STL
Network 1:
CALL
FB 10, DB10
REQ := M 0.6 //Activates SEND
R := M 5.0 //Activates RESET
LADDR := +336 //Basic address, PB336
DB_NO := +11 //Data block DB11
DBB_NO := +0 //As of data word DBB 0
LEN := +15 //Length 15 bytes
DONE := M 26.0 //Terminated without error
ERROR := M 26.1 //Terminated with error
STATUS := MW 27 //Status word
Example of "Indirect Parameter assignment"
Call of the FB 10 corresponding to indirect parameter assignment:
STL
Network 1:
CALL
FB 10, DB10
REQ := M 0.6 //Activates SEND
R := M 5.0 //Activates RESET
LADDR := MW21 //Basic address in MW21
DB_NO := MW40 //DB no. in MW40
DBB_NO := MW42 //DBB No. in MW42
LEN := MW44 //Length in MW44
DONE := M 26.0 //Terminated without error
ERROR := M 26.1 //Terminated with error
STATUS := MW 27 //Status word
Parameter assignment of Data Words
The specication of data words (partially qualied specication) is not allowed because
(depending on the actual operands) the currently selected data block can no longer be
determined in the standard function. If a data operand is specied as an actual parameter, the
fully qualied specication must always be used.
A fully qualied specication can be either absolute or symbolic. Mixed addressing with fully
qualied data operands is rejected by the compiler.
Communication via Function Blocks
6.4 Programming the Function Blocks
Point-to-point connection CP 440 Installation and Parameter Assignment
86 Equipment Manual, 03/2022, A5E00057742-AE