Stack Instructions; Set Stack: Sset(160) - Omron SYSMAC CV Series Operation Manual

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

Advertisement

Stack Instructions

Example
0000
00
0000
01

5-32 Stack Instructions

5-32-1 SET STACK: SSET(160)

Ladder Symbol
(160)
SSET TB1
Variations
j SSET(160)
Description
Precautions
In the following example, MSKR(155) writes the current mask status of Interrupt
Input Unit number 2 into D00100 when CIO 000000 is ON. jMSKR(155) writes
the time interval for scheduled interrupt 0 into CIO 1500 the next execution after
CIO 000001 turns ON.
(155)
MSKR
2 D00100
(155)
jMSKR
4
1500
Interrupt inputs for Unit #2
Interrupt mask data
1: Interrupt masked
0: Interrupt unmasked
CIO 1500
0010 x 10 ms = 100 ms
Stack Instructions are used to create and manipulate data tables in memory into
which data can be placed and retrieved. Different instructions allow you take
data out of the stack in the same order or in the opposite order from which it was
placed into the stack. SSET(160) must be used to create a stack before any of
the other stack instructions can be used.
Operand Data Areas
TB1: 1
N
N: Number of words
When the execution condition is OFF, SSET(160) is not executed. When the ex-
ecution condition is ON, SSET(160) defines a stack from TB1 to TB1+N–1, and
writes zeros to all words from TB+2 to TB1+N–1. TB1 contains the memory ad-
dress of TB1+N–1, and TB1+1 contains the memory address of the word that will
be accessed by the next stack instruction. TB1+1 is called the stack pointer, and
contains the memory address for TB1+2 after SSET(160) is executed.
SSET(160) must be used to create one or more stacks before any of the other
stack instructions can be used.
N must be BCD between 0003 and 9999.
Address
00000
00001
00002
7
6
5
4
3
2
1
1
1
1
1
0
1
1
0
0
F
7
D00100
Maintain previous status
0
0
1
0
st
stack address CIO, G, A, DM
CIO, G, A, T, C, #, DM, DR, IR
Section 5-32
Instruction
Operands
LD
000000
MSKR(155)
D00100
"MSKR(155)
1500
0
Unit is 10 ms
1
The unit is set at
system setting.
389
2
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents