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

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Instruction Variations

The following variations are available for instructions to differentiate executing conditions and to refresh
data when the instruction is executed (immediate refresh).
Variation
Differentiation
Immediate refreshing
@
MOV

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 conditions are 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, power flow is output (i.e., the execution condition is turned ON).
Non-differentiated input instruction
Input-differentiated Instructions
Upwardly Differentiated Instructions (Instruction Preceded by @)
Output Instructions:
The instruction is executed only during the cycle in which the execution condition changed from OFF
to ON and are not executed in the following cycles.
CJ2 CPU Unit Software User's Manual
Symbol
ON
@
Instruction that differentiates when the execution condition turns ON.
OFF
%
Instruction that differentiates when the execution condition turns OFF.
!
Refreshes data in the I/O area specified by the operands or the Special
I/O Unit words when the instruction is executed.
Instruction (mnemonic)
Differentiation variation
Immediate refresh variation
Example
Non-differentiated
output instruction
Example
Example
(@) Upwardly differ-
entiated instruction
5 Understanding Programming
Description
MOV
1.02
@MOV
Executes the MOV instruction once when
CIO 1.02 goes OFF → ON.
5
5-65

Advertisement

Table of Contents
loading

Table of Contents