Omron SYSMAC CP Series Instruction & Reference Manual page 164

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Precautions
• Do not use more than one SFT(010) instructions with overlapping shift words. The results will not be
dependable.
• St and E must be in the same data area.
• The bit data shifted out of the shift register is discarded.
• When the reset input turns ON, all bits in the shift register from the rightmost designated word (St) to
the leftmost designated word (E) will be reset (i.e., set to 0). The reset input takes priority over other
inputs.
• St must be less than or equal to E, but even when St is set to greater than E an error will not occur
and one word of data in St will be shifted.
Sample program
Shift Register Exceeding 16 Bits
The following example shows a 48-bit shift register using words CIO 128 to CIO 130. A 1-s clock pulse
is used so that the execution condition produced by CIO 0.05 is shifted into a 3-word register between
CIO 128.00 and CIO 130.15 every second.
0.05
Data input
1s (1-s clock)
Shift input
0.06
Reset
2-128
SFT
E: 130CH
128
15
14
Lost
130
i
St+1:
129CH
St:
128CH
1
0
15
14
1
0
15
14
1
CP1E CPU Unit Instructions Reference Manual(W483)
Contents of
0.05
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents