Siemens SIMATIC CP 440 Manual page 110

Installation and parameter assignment
Table of Contents

Advertisement

Communication Using Function Blocks
Example of a "Symbolically Addressed Actual Parameter"
Call of the FB 10 with symbolically addressed actual parameters:
STL
Network 1:
CALL FB 10, DB10
REQ
:= SEND_REQ
R
:= SEND_R
LADDR
:= BGADR
DB_NO
:= CP_DB.SEND_DBNO
DBB_NO
:= CP_DB.SEND_DWNO
LEN
:= CP_DB.SEND_LEN
DONE
:= SEND_DONE
ERROR
:= SEND_ERROR
STATUS
:= SEND_STATUS
EN/ENO Mechanism
The parameters EN and ENO are only present in the graphical representation
(LAD or FBD). The block is started with EN = TRUE. If the function is completed
without errors, ENO = TRUE is set. To process these parameters, the compiler
uses the binary result (BR).
The binary result is set to the signal state "1" if the block was terminated without
errors. If there was an error, the BR is set to "0".
6-22
Explanation
//SEND initiation
//RESET initiation
//Basic address
//Send DB no.
//Frame as of data word
//Frame length
//Terminated without errors
//Terminated with errors
//Status word
Point-to-point connection CP 440 Installation and Parameter Assignment
A5E00057742-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents