Communication via Function Blocks
6.7 Parameter assignment of the Function Blocks
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
172
Manual, 09/2008, A5E02191071-01
6.7.2
Supplying the block parameters
Direct/indirect parameter assignment
Unlike in STEP 5, indirect parameter assignment of the blocks for STEP 7 (parameters
transferred in the currently selected data block) is not possible.
All block parameters accept both constants and variables, so the distinction between direct
and indirect parameter assignment is no longer necessary with STEP 7.
Example of "Direct parameter assignment"
Call of FB 8 in accordance with the rules for "direct parameter assignment":
STL
Network 1:
CALL
FB 8, DB8
SF
:= S
//Send request
REQ
:= M 0.6
//Activates SEND
R
:= M 5.0
//Activates RESET
LADDR
:= +336
//Start address, PB336
DB_NO
:= +11
//Data block DB11
DBB_NO
:= +0
//As of data word DBB O
LEN
:= +15
//Length 15 bytes
R_CPU_NO
:=
//
R_TYP
:=
//
R_NO
:=
//
R_OFFSET
:=
//
R_CF_BYT
:=
//
R_CF_BIT
:=
//
DONE
:= M 26.0
//Completed without error
ERROR
:= M 26.1
//Terminated with error
STATUS
:= MW 27
//Status word
长沙工控帮教育科技有限公司
www.gkbpx.com