Product manual
IP 266 STEP 5 Programming
9.4.4 Selecting Modes via IB 4
All modes are selected in FB 26. In almost all cases, the number of the FB is iden-
tical to the mode number.
• FB 2 is for "Jog 2" mode
• FB 5 is for approach/set reference point mode
• FBs 6, 8 and 9 are for modes 6, 8 and 9
• The only exception is mode 99. Since not all CPUs allow FB numbers as high as
99, the FB number for this mode is 10. This mode is also the only mode that is
directly invoked in OB 1.
All FBs for selecting a mode have the same structure. First, the number of the
mode, in binary, is entered in output byte 64 (output byte 64 is byte 0 of the
output frame; see Section 7.1). For some modes, the mode parameters are also
preset in dependence on specific conditions, and entered in the relevant bytes.
FB 10: Synchronize IP 266
FB 10 is always invoked automatically in OB 1 when bit 0 in byte 2 of the input
frame is "0" (IB 66).
If the IP has not been synchronized, mode 99 must be started with the TOGGLE
bit = "1" and the START function.
Enter parameters
in the output
frame
END
START
Mode 99 is loaded into QB 64, START and
TOGGLE bit into QB 65
LKB99
TQB64
L KB 129
TQB65
BE
FB 10 - NAME:MO99
EWA 4NEB 812 6057-02
9-19