Communication Using Function Blocks
6-20
Point-to-point connection CP 440 Installation and Parameter Assignment
A5E00057742-02
Example of Indirect Parameterization
Call of the FB 10 corresponding to indirect parameterization:
STL
Explanation
Network 1:
CALL FB 10, DB10
REQ
:= M 0.6
R
:= M 5.0
LADDR
:= MW21
DB_NO
:= MW40
DBB_NO
:= MW42
LEN
:= MW44
DONE
:= M 26.0
ERROR
:= M 26.1
STATUS
:= MW 27
//SEND initiation
//RESET initiation
//Basic address in MW21
//DB no. in MW40
//DBB no. in MW42
//Length in MW44
//Terminated without errors
//Terminated with errors
//Status word
Parameterization of Data Words
The specification of data words (partially qualified specification) is not permitted
because (depending on the actual parameters) the currently selected data block
can no longer be determined in the standard function. If a data operand is specified
as an actual parameter, fully qualified specification must always be used.
Fully qualified specification can be either absolute or symbolic. Mixed addressing
with fully qualified data operands is rejected by the compiler.
Example 1
The symbol name for the data block is entered in the symbol table, while the
symbol name for the data operand is declared in the corresponding data block.
STL
Explanation
DB 20.DBW 0
Absolute fully qualified addressing
CP_DB.SEND_DWNR
Symbolic fully qualified addressing
Содержание SIMATIC CP 440
Страница 10: ...Contents x Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...
Страница 134: ...Diagnostics with the CP 440 8 16 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...
Страница 164: ...Accessories and Order Numbers D 2 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...