EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Special Program Sections

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
38
Precautions Section 1-2
As an example, consider the results of executing a block transfer with
XFER(070) if 20 words are specified for transfer beginning with W500. Here,
the Work Area, which ends at W511, will be exceeded, but the instruction will
be executed without turning ON the Error Flag. In the PLC memory
addresses, the present values for timers are held in memory after the Work
Area, and thus for the following instruction, W500 to W511 will be transferred
to D0 to D11 and the present values for T0 to T7 will be transferred to D12 to
D19.
Note For specific PLC memory addresses in CP1H CPU Units, refer to Appendix E:
Memory Map in the CP Series CP1H CPU Units Operation Manual (W450).
For specific PLC memory addresses in CP1L CPU Units, refer to Appendix E:
Memory Map in the CP Series CP1L CPU Units Operation Manual (W462).
1-2-2 Special Program Sections
CP-series 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.
T0
W500
W511
&20
D0
T7
D0
D11
D12
D19
to
to
to
to
to
to
to
to
First destination word
First source word
Number of words
Trans-
ferred.
Program section Instructions Instruction condition Status
Subroutine SBS, SBN and RET instruc-
tions
Subroutine program is
executed.
The subroutine program section between
SBN and RET instructions is executed.
IL - ILC section IL and ILC instructions Section is interlocked The output bits are turned OFF and tim-
ers are reset. Other instructions will not
be executed and previous status will be
maintained.
Step Ladder section STEP S instructions and
STEP instructions
FOR-NEXT loop FOR instructions and NEXT
instructions
Break in progress. Looping
JMP0 - JME0 section JMP0 instructions and JME0
instructions
Jump
Block program section BPRG instructions and
BEND instructions
Block program is exe-
cuting.
The block program listed in mnemonics
between the BPRG and BEND instruc-
tions is executed.
Subroutine IL - ILC
section
Step ladder
section
FOR - NEXT
loop
JMP0 - JME0
section
Block program
section
Subroutine Not possible. Not possible. Not possible. Not possible. Not possible. Not possible.
IL - ILC OK Not possible. Not possible. OK OK Not possible.
Step ladder
section
Not possible. OK Not possible. Not possible. OK Not possible.
FOR - NEXT
loop
OK OK Not possible. OK OK Not possible.
JMP0 - JME0 OK OK Not possible. Not possible. Not possible. Not possible.
Block pro-
gram section
OK OK OK Not possible. OK Not possible.

Table of Contents

Related product manuals