Omron SYSMAC CV Series Operation Manual page 556

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Instruction Set
Name, mnemonic, variations,
and symbol
SET STACK
SSET, jSSET
(160)
SSET TB
PUSH ONTO STACK
PUSH, jPUSH
(161)
PUSH TB
LAST IN FIRST OUT
LIFO, jLIFO
(162)
LIFO
TB
FIRST IN FIRST OUT
FIFO, jFIFO
(163)
FIFO
TB
DATA SEARCH
SRCH, jSRCH
(164)
SRCH
N
FIND MAXIMUM
MAX, jMAX
(165)
MAX
C
546
Defines a stack from TB to TB+N–1 and
resets to zero all words from TB+2 to TB+N–1.
TB contains the memory address for TB+N–1,
and TB+1 contains the memory address of
TB+2. TB+1 is called the stack pointer, and
N
contains the memory address for TB+2 after
SSET(160) is executed. N must be BCD
between #0003 and #9999.
Copies the data from the source word (S) to
the word indicated by the stack pointer (TB+1).
The memory address in the stack pointer is
then incremented by one.
TB must be the first address of a stack defined
S
using SSET(160).
Decrements the memory address in the stack
pointer (TB+1) by one and then copies the
data from the word indicated by the stack
pointer (the last written to the table) to the
destination word (D). The stack pointer is the
D
only word changed in the stack.
TB must be the first address of a stack defined
using SSET(160).
Writes zero into the last word of the stack and
shifts the contents of each word within the
stack down by one address, finally shifting the
data from TB+2 (the first written to the stack)
to the destination word (D). The memory
D
address in the stack pointer (TB+1) is then
decremented by one.
TB must be the first address of a stack defined
using SSET(160).
Searches the range of memory from St to
St+N–1 for addresses that contain the
comparison data (Cd). If the content of an
address within the range matches the
comparison data, the EQ Flag (A50006) is
St
Cd
turned ON and the address is written to Index
Register IR0. If more than one address
contains the comparison data, only the lowest
address containing the comparison data is
written to IR0. If none of the addresses within
the range contains the comparison data, the
EQ Flag (A50006) is turned OFF and IR0 is
left unchanged.
Searches the range of memory from St to
St+N–1 for the address that contains the
maximum value and outputs that value to the
destination word (D). The number of words
within the range (N) is contained in the 3
St
D
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 maximum value will
not be output to IR0; when it is ON, the value
will be output to IR0.
Function
Appendix A
Operand data
Page
areas
TB:
N:
389
CIO
CIO
G
G
A
A
DM
T/C
#
DM
DR
IR
TB:
S:
390
CIO
CIO
G
G
A
A
DM
T/C
#
DM
DR
IR
TB:
D:
391
CIO
CIO
G
G
A
A
DM
DM
DR
IR
TB:
D:
392
CIO
CIO
G
G
A
A
DM
DM
DR
IR
N:
St:
Cd:
365
CIO
CIO
CIO
G
G
G
A
A
A
T/C
T/C
T/C
#
DM
#
DM
DM
DR
DR
IR
IR
C:
St:
D:
319
CIO
CIO
CIO
G
G
G
A
A
A
#
T/C
DM
DM
DM
DR
DR
IR
IR

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents