Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 404

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Data Shift Instructions
Description
Flags
Precautions
Examples
C
St
E
364
Area
Index Registers
Indirect addressing
using Index Registers
When the execution condition of the shift input bit (bit 14 of C) changes to ON,
all the data from St to E is moved in the designated shift direction (designated
by bit 12 of C) by 1 bit, and the ON/OFF status of the data input is placed in
the rightmost or leftmost bit. The bit data shifted out of the shift register is
placed in the Carry Flag (CY).
E
E
Data input
Name
Label
Error Flag
ER
Carry Flag
CY
The above shift operations are applicable when the reset bit (bit 15 of C) is set
to OFF.
When reset (bit 15 of C) turns ON all bits in the shift register, from St to E will
be reset (i.e., set to 0).
When St is greater than E, an error will be generated and the Error Flag will
turn ON.
Shifting Data
If shift input CIO 030014 goes ON when CIO 000000 is ON, and the reset bit
CIO 030015 is OFF, words CIO 0100 through CIO 0102 will shift one bit in the
direction designated by CIO 030012 (e.g., 1: Right) and the contents of input
bit CIO 030013 will be shifted into the rightmost bit, CIO 010000. The con-
tents of CIO 010215 will be shifted to the Carry Flag (CY).
C: 0300
Shift input bit: 1
Reset input bit: 0
C
---
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
St
Data input
St
Operation
ON when St is greater than E.
OFF in all other cases.
ON when 1 is shifted into it.
OFF when 0 is shifted into it.
OFF when reset is set to 1.
Shift direction
Section 3-9
St
E
Shift direction
Data input:
CIO 030013

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents