Communication via Function Blocks
6.7 Parameter assignment of the Function Blocks
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
Manual, 09/2008, A5E02191071-01
173
Example of "Indirect Parameter Assignment"
Call of FB 8 in accordance with the rules for "indirect 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
:= MW21
//Start address in MW21
DB_NO
:= MW40
//DB no. in MW40
DBB_NO
:= MW42
//DBB No. in MW42
LEN
:= MW44
//Length in MW44
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