S5-95U, SINEC L2
FB202 for PLC 1 (ZP Master)
SEGMENT 1
NAME
:
ZP-ST-LI
DES
:
SL40
DES
:
SL41
DES
:
SL42
DES
:
FEHL
0008
: A
000A
: BEC
000C
:
000E
: A
0010
: JC
0012
:
0014
: RB
0016
: RB
0018
: RB
001A
: RB
001C
: BEU
001E
READ :
0020
: JU
0022
NAME : L2-REC
0024
A-NR : KY 0,202
0026
ZTYP : KS DB
0028
DBNR : KY 0,202
002A
ZANF : KF + 0
002C
ZLAE : KF - 1
002E
: O
0030
: O
0032
: =
0034
: BEC
0036
:
0038
: C
003A
:
003C
: TB
003E
: =
0040
:
0042
: TB
0044
: =
0046
:
0048
: TB
004A
: =
004C
:
004E
: BE
EWA 4NEB 812 6112-02
0000
I/Q/D/B/T/Z: Q BI/BY/W/D: BI
I/Q/D/B/T/Z: Q BI/BY/W/D: BI
I/Q/D/B/T/Z: Q BI/BY/W/D: BI
I/Q/D/B/T/Z: Q BI/BY/W/D: BI
F 100.4
F 101.0
=READ
=SL40
=SL41
=SL42
=FEHL
FB 253
F 101.3
F 255.0
=FEHL
DB 202
D 2.7
=SL40
D 2.6
=SL41
D 2.5
=SL42
Data Transmission Using Cyclic I/O
Explanation
If ZP data in ZP DB and ZP slave life list are
temporarily invalid, end here.
If STB bit 'Receive viable' is set for ZP slave
life list, jump to 'Read ZP slave life list'.
Reset error bits of ZP stations
Call up L2-RECEIVE FB
Read job number for ZP slave life list
ZP slave life list is located in a data block,
DB number is 202,
starting with data word DW0.
"Wildcard length"
If STB bit 'Job completed with error' is set ,
or if there is a parameter assignment error
message,
set error bit.
Evaluate ZP slave life list entry.
ZP slave life list bit for station 40; if list entry
was updated, set station error bit.
ZP slave life list bit for station 41; if list entry
was updated, set station error bit.
ZP slave life list bit for station 42; if list entry
was updated, set station error bit.
7-13