Siemens SIMATIC S7-400 Equipment Manual page 86

Hide thumbs Also See for SIMATIC S7-400:
Table of Contents

Advertisement

Communication via Function Blocks
6.4 Programming the Function Blocks
Example of "Direct Parameter assignment"
Call of the FB 10 corresponding to "direct parameter assignment":
STL
Network 1:
Example of "Indirect Parameter assignment"
Call of the FB 10 corresponding to indirect parameter assignment:
STL
Network 1:
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.
86
CALL
FB 10, DB10
REQ
R
LADDR
DB_NO
DBB_NO
LEN
DONE
ERROR
STATUS
CALL
FB 10, DB10
REQ
R
LADDR
DB_NO
DBB_NO
LEN
DONE
ERROR
STATUS
:= M 0.6
//Activates SEND
:= M 5.0
//Activates RESET
:= +336
//Basic address, PB336
:= +11
//Data block DB11
:= +0
//As of data word DBB 0
:= +15
//Length 15 bytes
:= M 26.0
//Terminated without error
:= M 26.1
//Terminated with error
:= MW 27
//Status word
:= M 0.6
//Activates SEND
:= M 5.0
//Activates RESET
:= MW21
//Basic address in MW21
:= MW40
//DB no. in MW40
:= MW42
//DBB No. in MW42
:= MW44
//Length in MW44
:= M 26.0
//Terminated without error
:= M 26.1
//Terminated with error
:= MW 27
//Status word
Point-to-point connection CP 440 Installation and Parameter Assignment
Equipment Manual, 03/2022, A5E00057742-AE

Advertisement

Table of Contents
loading

Table of Contents