EasyManua.ls Logo

Siemens SIMATIC S7-400 CP 440 - Page 104

Siemens SIMATIC S7-400 CP 440
156 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Communication via Function Blocks
6.4 Programming the Function Blocks
Point-to-point connection CP 440 Installation and Parameter Assignment
104 Manual, 09/2007, A5E00057742-03
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 specification of data words (partially qualified specification) 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 specified as an actual parameter,
the fully qualified specification must always be used.
A 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 Absolute fully qualified addressing
CP_DB.SEND_DWNR Symbolic fully qualified addressing
该文档极速PDF编辑器生成
如果想去掉该提示,请访问并下载
http://www.jisupdfeditor.com/
长沙工控帮教育科技有限公司
www.gkbpx.com

Table of Contents

Related product manuals