Omron FQM1-CM001 Special Program Sections, Programming, Appendix A, Instruction Combinations

Models: FQM1-MMP21 FQM1-MMA21 FQM1-CM001

1 414
Download 414 pages 44.52 Kb
Page 309
Image 309
Special Program Sections

Programming

Appendix A

Special Program Sections

FQM1 programs have special program sections that will control instruction conditions.

The following special program sections are available.

Program section

Instructions

Instruction condition

Status

Subroutine

SBS(091), JSB(982),

Subroutine program

The subroutine program section

 

SBN(092), and RET(093)

being executed.

between SBN(092) and RET(093)

 

instructions

 

instructions is being executed.

 

 

 

 

IL(002) - ILC(003) section

IL(002) and ILC(003)

Section is interlocked

The output bits are turned OFF and

 

instructions

 

timers are reset. Other instructions will

 

 

 

not be executed and previous status

Step Ladder section

STEP(008) instruction

 

 

will be maintained.

 

 

 

 

 

 

 

Block program section

BPRG(096) instructions and

Block program being

The block program listed in mnemonics

 

BEND(801) instructions

executing.

between the BPRG(096) and

 

 

 

BEND(801) instructions is being exe-

 

 

 

cuted.

 

 

 

 

Instruction Combinations

The following table shows which of the special instructions can be used inside other program sections.

 

Subroutine

IL(002) -

Step ladder

Block program

 

 

ILC(003)

section

section

 

 

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.

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

Subroutine

Program

Subroutine

286

Page 309
Image 309
Omron FQM1-CM001, FQM1-MMA21 Special Program Sections, Programming, Appendix A, Instruction Combinations, Subroutines