Siemens SIMATIC CP 440 Manual page 108

Installation and parameter assignment
Table of Contents

Advertisement

Communication Using Function Blocks
Example of Indirect Parameterization
Call of the FB 10 corresponding to indirect parameterization:
STL
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
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
DB 20.DBW 0
CP_DB.SEND_DWNR
6-20
Explanation
//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
Explanation
Absolute fully qualified addressing
Symbolic fully qualified addressing
Point-to-point connection CP 440 Installation and Parameter Assignment
A5E00057742-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents