EasyManua.ls Logo

Siemens Simatic S7-400

Siemens Simatic S7-400
140 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...
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 speci󹪝cation of data words (partially quali󹪝ed speci󹪝cation) 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 speci󹪝ed as an actual parameter, the
fully quali󹪝ed speci󹪝cation must always be used.
A fully quali󹪝ed speci󹪝cation can be either absolute or symbolic. Mixed addressing with fully
quali󹪝ed 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

Table of Contents

Other manuals for Siemens Simatic S7-400

Related product manuals