EasyManua.ls Logo

Omron SYSMAC CV Series - Page 557

Omron SYSMAC CV Series
636 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix AInstruction Set
547
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
FIND MINIMUM
MIN, jMIN
(166)
MIN C St D
Searches the range of memory from St to
St+N–1 for the address that contains the
minimum value and outputs that value to the
destination word (D). The number of words
within the range (N) is contained in the 3
rightmost digits of C, which must be BCD
between #001 and #999. When bit 15 of C is
OFF, data within the range is treated as
unsigned hexadecimal values, and when it is
ON the data is treated as signed hexadecimal
values. When bit 14 of C is OFF, the address
of the word containing the minimum value will
not be output to IR0; when it is ON, the value
will be output to IR0.
C:
CIO
G
A
#
DM
DR
IR
St:
CIO
G
A
T/C
DM
D:
CIO
G
A
DM
DR
IR
320
SUM
SUM, jSUM
(167)
SUM C St D
Computes the sum of the contents of words
from St to St+N–1 and outputs that value to
the destination words (D and D+1). The
number of words within the range (N) is
contained in the 3 rightmost digits of C, which
must be BCD between #001 and #999. When
bit 15 of C is OFF, data within the range is
treated as unsigned values, and when it is ON
the data is treated as signed values. When bit
14 of C is OFF, data within the range is treated
as BCD and when it is ON the data is treated
as hexadecimal.
C:
CIO
G
A
#
DM
DR
IR
St:
CIO
G
A
T/C
DM
D:
CIO
G
A
DM
322
TRACE MEMORY
TRSM
(170)
TRSM
Marks the start of tracing. This instruction is
effective only when tracing is being executed
from a Peripheral Device. Changes in status of
the bits and words specified from the
Peripheral Device are stored in trace memory.
None 393
SELECT EM BANK
EMBC, jEMBC
(171)
EMBC N
Changes the current EM bank to the one
indicated by the EM bank number (N). N must
be between #0000 and #0007. The current EM
bank number is recorded in the least
significant (rightmost) digit of A511. Bit A51115
is ON when an Expansion Data Memory Unit
is mounted to the CPU. EM is optional and
available with various numbers of banks.
N:
CIO
G
A
#
DM
DR
IR
364
LOAD FLAGS
CCL, jCCL
(172)
CCL
Changes the Arithmetic Flags to the status
recorded by the last CCS(173) instruction.
Arithmetic Flags include the following:
ER (A50003), CY (A50004), GR (A50005),
EQ (A50006), LE (A50007), and N (A50008).
None 366
SAVE FLAGS
CCS, jCCS
(173)
CCS
Records the current status of the Arithmetic
Flags in the CPU for later retrieval by the
CCS(173) instruction.
None 367
MARK TRACE
MARK
(174)
MARK N
Marks the location for sampling when
executing a mark trace from a Peripheral
Device or when measuring the execution time
between MARK(174) instructions. When
executing a mark trace, the status of the
words specified from the Peripheral Devices
are stored in trace memory.
N:
#
395
LOAD REGISTER
REGL, jREGL
(175)
REGL S
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. S to S+5 must be
in the same data area.
S:
CIO
G
A
DM
367

Table of Contents

Related product manuals