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

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

Advertisement

Data Shift Instructions
Flags
Precautions
Examples
402
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Negative Flag
N
For any bits which are shifted outside the specified word, the contents of the
last bit is shifted to the Carry Flag (CY), and all other data is lost.
When the number of bits to shift (specified in C) is "0," the data will not be
shifted. The appropriate flags will turn ON and OFF, however, according to
data in the specified word.
When the contents of the control word C are out of range, an error will be gen-
erated and the Error Flag will turn ON.
If as a result of the shift the contents of D is 0000, the Equals Flag will turn
ON.
If as a result of the shift the contents of the leftmost bit of D, D +1 is 1, the
Negative Flag will turn ON.
When CIO 000000 is ON, CIO 0100 and CIO 0101 will be shifted to the left
(from the rightmost bit to the leftmost bit) by 10 bits. The number of bits to shift
is specified in bits 0 to 7 of word CIO 0300 (control data). The contents of bit 0
of CIO 0100 is copied into bits from which data was shifted and the contents
of the rightmost bit which was shifted out of range is shifted into the Carry
Flag (CY). All other data is lost.
15
12
11
C
8
0
Data shifted into register
8 Hex: Contents of right-
most bit shifted in
Operation
ON when the control word C (the number of bits to shift) is
not within range.
OFF in all other cases.
ON when the shift result is 0.
OFF in all other cases.
ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
ON when the leftmost bit is 1 as a result of the shift.
OFF in all other cases.
8
7
4
3
0
0
A
No. of bits to shift: 10 bits (0A Hex)
Always 0.
Section 3-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents