4 Understanding Programming
4-16
CP2E CPU Unit Software User’s Manual(W614)
The following variations are available for instructions to differentiate executing conditions and to refresh
data when the instruction is executed (immediate refreshing).
Example:
The following two types of basic and special instructions can be used.
• Non-differentiated instructions: Executed every cycle
• Differentiated instructions: Executed only once
z Output Instructions (Instructions That Require Input Conditions)
These instructions are executed once every cycle while the execution condition is satisfied (ON or
OFF).
z 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).
4-4-3 Instruction Variations
Variation Symbol Description
No variation used. − These instructions are executed once every cycle while
the execution condition is satisfied.
Differentiation
variations
ON @ These instructions are executed only once when the exe-
cution condition turns ON.
OFF % These instructions are executed only once when the exe-
cution condition turns OFF.
Immediate refreshing ! Data in the built-in I/O area specified by the operands is
refreshed when the instruction is executed.
4-4-4 Execution Conditions
Non-differentiated Instructions
MOV
Instruction (mnemonic)
Differentiation variation
Immediate refresh variation
@
!
Example:
MOV
Non-differentiated
Output instructions
executed every cycle
Input instruction executed every cycle
Example: