Product manual
IP 266 STEP 5 Programming
FB 23 - FORWARD/REVERSE
Two inputs are scanned in this FB to gather the information required to program
the auxiliary and edge flags. The inputs for FORWARD and REVERSE are ORed.
Process auxiliary and
edge flags as
function of the
FORWARD or
REVERSE input
Reverse?
Load bit 2 = 1
(QB 65) into FY 6
Load bit 3 = 1
(QB 65) into FY 6
END
yes
no
Edge flag = 0?
yes
no
Forward?
yes
no
START
FB 23 - NAME:FWDREV
Programming the auxiliary and edge flags
for the FWD/REV functions
Programming the edge and auxiliary flags
O I 3.3 FORWARD
O I 3.4 REVERSE
AN F 4.4
= F 4.5
O I 3.3 FORWARD
O I 3.4 REVERSE
= F 4.4
Edge flag not yet set abort
AN F 4.5
BEC
Jump in dependence on the keys for FWD
and REV
A I 3.3
JC =M001
A I 3.4
JC =M002
BEU
Load start command
M001 L KB 4 FWD command
TFY6
BEU
M002 L KB 8 REV command
TFY6
BE
EWA 4NEB 812 6057-02
9-29