Word Shift: Wsft(053) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Shift Instructions

5-14-4 WORD SHIFT: WSFT(053)

Ladder Symbol
(053)
WSFT
S
Variations
j WSFT(053)
Description
Precautions
Flags
Example
0000
00
St
E
When the execution condition is OFF, WSFT(053) is not executed. When the ex-
ecution condition is ON, WSFT(053) shifts data between St and E in word units.
The data in S is copied into St and the content of E is lost.
E
F
0
C
Lost
E
3
4
5
St must be less than or equal to E. St and E must be in the same data area.
The shift operation might not be completed if a power interruption occurs during
execution of the instruction.
Note Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
The St and E words are in different areas, or St is greater
than E.
When CIO 000000 is ON in the following example, FF00 is shifted into D00010,
the word data in D00010 is shifted to D00011, the word data in D00011 is shifted
to D00012, and the word data in D00012 is lost.
(053)
WSFT
#FF00
D00010
Lost data
Operand Data Areas
S: Source word
CIO, G, A, T, C, #, DM, DR, IR
St: Starting word
CIO, G, A, DM
E: End word
CIO, G, A, DM
St + 1
2
3
4
5
2
1
St + 1
2
1
0
2
9
4
D00012
E: D00012
St+1: D00011
5 6 7 8
1 2 3 4
E: D00012
St+1: D00011
5 6 7 8
9 A B C
Section 5-14
St
0
2
9
S
4
B
St
B
C
0
Address Instruction
00000
LD
00001
WSFT(053)
St: D00010
9 A B C
S : #FF00
St: D00010
F F 0 0
C
0
Operands
000000
#FF00
D00010
D00012
153

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents