286
Programming Appendix A
Special Program Sections
FQM1 programs have special program sections that will control instruction conditions.
The following special program sections are available.
Instruction Combinations
The following table shows which of the special instructions can be used inside other program sections.
Note Instructions that specify program areas cannot be used between two different tasks.
Subroutines
Place all the subroutines together just before the END(001) instruction in all programs but after programming
other than subroutines. A subroutine cannot be placed in a step ladder, block program, or other subroutine. If
instructions other than a subroutine program are placed after a subroutine program (SBN(092) to RET(093)),
those instructions will not be executed.
Program section Instructions Instruction condition Status
Subroutine SBS(091), JSB(982),
SBN(092), and RET(093)
instructions
Subroutine program
being executed.
The subroutine program section
between SBN(092) and RET(093)
instructions is being executed.
IL(002) - ILC(003) section IL(002) and ILC(003)
instructions
Section is interlocked The output bits are turned OFF and
timers are reset. Other instructions will
not be executed and previous status
will be maintained.
Step Ladder section STEP(008) instruction
Block program section BPRG(096) instructions and
BEND(801) instructions
Block program being
executing.
The block program listed in mnemonics
between the BPRG(096) and
BEND(801) instructions is being exe-
cuted.
Subroutine IL(002) -
ILC(003)
section
Step ladder
section
Block program
section
Subroutine Not possible. Not possible. Not possible. Not possible.
IL(002) - ILC(003) OK Not possible. Not possible. Not possible.
Step ladder section Not possible. OK Not possible. Not possible.
Block program section OK OK OK Not possible.
Subroutine
Subroutine
Program
Program