19
Programming Concepts Section 1-1
• Input Instructions (Logical Starts and Intermediate Instructions): The
instruction reads bit status, makes comparisons, tests bits, or perform
other types of processing every cycle and will output an OFF execution
condition (power flow stops) when results switch from ON to OFF. The
execution condition will turn ON the next cycle.
1-1-9 I/O Instruction Timing
The following timing chart shows different operating timing for individual
instructions using a program comprised of only LD and OUT instructions.
Differentiated Instructions • A differentiated instruction has an internal flag that tells whether the previ-
ous 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 instructions
(DIFD and % instructions) are set to OFF. This prevents differentiation
outputs from being output unexpectedly at the start of operation.
Downwardly differentiated input instruction
Example
1.03
OFF execution condition created for one
cycle only when CIO 1.03 goes from ON
to OFF.
A
A
A
A
A
A
A
A
A
B1
B2
B3
B4
B5
B6
B7
B8
B9
B10
A
A
B11
B12
!
!
!
!
A
!
!
!
!
!
!
I/O refresh
Instruction
executed.
CPU pro-
cessing
Input read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read
Input
read