Technical data

Application example continued:
4. Program calls for the function blocks in FB 1 of the CPUs:
The user program on each CPU is extended by the RECV-DAT and SEND-DAT
call. Function block FB 1 shown below is for CPU 1. For the other CPUs,
the input parameter CPUN (CPU number) must be modified.
FB 1 LAN=yy
SEGMENT 1 0000
NAME:EM-SE
0000
0000 :C DB100 Link list DB 100
0001 :JU FB101 Receive the input
0002 : data blocks
0003 NAME :RECV-DAT
0004 CPUN : KF+1
0005 ERWA : FY0
0006 :JC =ERWA Abort if error/warning
0007 :
0008 :
0009 : Here, the cyclic user program
000A : that reads data from the inpu
000B : data blocks and enters data in
000C : the output data blocks is
000D : inserted.
000E :
000F :
0010 :C DB 100 Link list DB 100
0011 :JU FB100 Send the output
0012 : data blocks
0012 NAME :SEND-DAT
0013 CPUN : KF+1
0014 ERWA : FY0
0015 :JC =ERWA Abort if error/warning
0016 :BEU
0017 :
0018 ERWA : Run an error handling routine
0019 : following an error/warning (here,
001A : the error handling routine is
001B : inserted, e.g. stop, output error
001C : message on printer or screen,
or ..)
00xx :BE
Applications
CPU 928B Programming Guide
10 - 78 C79000-B8576-C898-01