Product manual

STEP 5 Programming IP 266
In FB 11, flag 3.0 is set in dependence on the Job Terminated bit. If this flag is not
set, FB 11 is simply exited. If it is set, and if the "Job Terminated" bit is also set in
the input byte, FB 11 invokes the function block used to invert the TOGGLE bit.
no
Set F 3.0
yes
Job
terminated?
START
FB 11 - NAME:CONTROL
no
yes
F 3.0
set ?
Job
terminated?
yes
no
Call FB 13
(to invert TOGGLE
bit)
END
Program the input frame for mode 7,
including the mode, the override factor and
the distance:
JU FB 12
NAME LOAD
Check to see whether a new job is allowed
and, if so, invoke FB 13:
AN I 66.7
S F 3.0
AN F 3.0
JC =END
A I 66.7
JC FB 13
NAME TOGGLE
END BE
Program frame
9-34
EWA 4NEB 812 6057-02