Instruction Variations; Execution Conditions - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

4 Understanding Programming
4-3-3

Instruction Variations

The following variations are available for instructions to differentiate executing conditions and to refresh
data when the instruction is executed (immediate refreshing).
Variation
No variation used.
Differentiation
variations
Immediate refreshing
Example:
!
@
MOV
4-3-4

Execution Conditions

The following two types of basic and special instructions can be used.
• Non-differentiated instructions: Executed every cycle
• Differentiated instructions: Executed only once
Non-differentiated Instructions
Output Instructions (Instructions That Require Input Conditions)
These instructions are executed once every cycle while the execution condition is satisfied (ON or
OFF).
Input Instructions (Logical Starts and Intermediate Instructions)
These instructions read bit status, make comparisons, test bits, or perform other types of processing
every cycle. If the results are ON, the input condition is output (i.e., the execution condition is turned
ON).
Input instruction executed every cycle
4-10
Symbol
ON
@
OFF
%
!
Instruction (mnemonic)
Differentiation variation
Immediate refresh variation
Example:
Non-differentiated
Output instructions
executed every cycle
Example:
Description
These instructions are executed once every cycle while
the execution condition is satisfied.
These instructions are executed only once when the exe-
cution condition turns ON.
These instructions are executed only once when the exe-
cution condition turns OFF.
Data in the built-in I/O area specified by the operands is
refreshed when the instruction is executed.
MOV
CP1E CPU Unit Software User's Manual(W480)

Advertisement

Table of Contents
loading

Table of Contents