Save Flags: Ccs(173); Load Register: Regl(175); Flag/Register Instructions - Omron CVM1D Operation Manual

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Flag/Register Instructions

5-28-2 SAVE FLAGS: CCS(173)

Ladder Symbol
Description
Precautions
Flags
Example
0000
00

5-28-3 LOAD REGISTER: REGL(175)

Ladder Symbol
Variations
j REGL(175)
Description
Precautions
Flags
Example
0000
00
Variations
j CCS(173)
(173)
CCS
When the execution condition is OFF, CCS(173) is not executed. When the ex-
ecution condition is ON, CCS(173) records the current status of the Arithmetic
Flags in the CPU for later retrieval by the CCL(172) instruction.
Refer to the table in 5-28-1 LOAD FLAGS: CCL(172) for the Arithmetic Flags
recorded by CCS(173).
When CCS(173) is executed, it records over the data recorded by the previous
CCS(173) instruction.
No flags are affected by CCS(173).
When CIO 000000 is ON in the following example, the status of all the arithmetic
flags is stored in memory for possible later retrieval.
(173)
CCS
Operand Data Area
(175)
S: 1
REGL
S
When the execution condition is OFF, REGL(175) is not executed. When the ex-
ecution condition is ON, REGL(175) copies the data from S, S+1, and S+2 to
data registers DR0, DR1, and DR2, and copies the data from S+3, S+4, and S+5
to index registers IR0, IR1, and IR2.
Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
When CIO 000000 is ON in the following example, the contents of words
D10000 through D10005 is copied to the data and index registers.
(175)
REGL D10000
st
source word
CIO, G, A, DM
3 5 2 A
D10000
3 5 2 A
C 7 3 9
D10001
C 7 3 9
1 D A 2
D10002
1 D A 2
D10003
E 5 2 A
E 5 2 A
D10004
0 E 7 3
0 E 7 3
D10005
5 1 B 0
5 1 B 0
Section 5-28
Address Instruction
Operands
00000
LD
000000
00001
CCS(173)
Address Instruction
Operands
00000
LD
000000
00001
REGL(175)
D10000
DR0
DR1
DR2
IR0
IR1
IR2
355

Advertisement

Table of Contents
loading

Table of Contents