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
175
Example of an "Actual operand with absolute addressing"
Call of FB 8 with actual operands with absolute addressing:
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
:= DB10.DBW0
//DB no. in DBW0 of DB10
DBB_NO
:= DB10.DBW2
//From DBB no., located in DBW2 of DB10
LEN
:= DB10.DBW4
//Length located in DBW4 of DB10
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