EasyManua.ls Logo

Siemens SIMATIC S7-400 CP 440 - Supplying the Block Parameters

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
Manual, 09/2007, A5E00057742-03
103
6.4.2 Supplying the block parameters
Direct/Indirect Parameter Assignment
With STEP 7 the data blocks cannot be indirectly assigned parameters (parameters
transferred in the currently selected data block) as they can with STEP 5.
All block parameters accept both constants and variables, so the distinction between direct
and indirect parameter assignment is no longer necessary in STEP 7.
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
该文档极速PDF编辑器生成
如果想去掉该提示,请访问并下载
http://www.jisupdfeditor.com/
长沙工控帮教育科技有限公司
www.gkbpx.com

Table of Contents

Related product manuals