5-67
5 Understanding Programming
CJ2 CPU Unit Software User’s Manual
5-6 Instructions
5
5-6-1 Basic Understanding of Instructions
The following timing chart shows different operating timing for individual instructions using a program
comprised of only LD and OUT instructions.
z Differentiated Instructions
• A differentiated instruction has an internal flag that tells whether the previous value is ON or OFF.
At the start of operation, the previous value flags for upwardly differentiated instruction (DIFU and
@ instructions) are set to ON and the previous value flags for downwardly differentiated instruc-
tions (DIFD and % instructions) are set to OFF. This prevents differentiation outputs from being
output unexpectedly at the start of operation.
• An upwardly differentiated instruction (DIFU or @ instruction) will output ON only when the execu-
tion condition is ON and flag for the previous value is OFF.
I/O Instruction Timing
A
A
A
A
A
A
A
A
A
A
A
A
B1
B2
B3
B4
B5
B6
B7
B8
B9
B10
B11
B12
A
B1
B2
B3
B4
B5
B6
B7
B8
B9
B10
B11
B12
I/O refresh
Instruction
executed.
CPU
processing
Input read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read