EasyManua.ls Logo

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

Omron SYSMAC CV Series
636 pages
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...
(155)
jMSKR 4 1500
(155)
MSKR 2 D00100
0000
00
0000
01
389
Example 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.
Address Instruction Operands
00000 LD 000000
00001 MSKR(155)
2
D00100
00002 MSKR(155)
4
1500
76543210
11110111
Interrupt inputs for Unit #2
Interrupt mask data
1: Interrupt masked
0: Interrupt unmasked
00F7
D00100
Maintain previous status
Unit is 10 ms
The unit is set at
system setting.
0010
0010 x 10 ms = 100 ms
CIO 1500
5-32 Stack Instructions
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.
5-32-1 SET STACK: SSET(160)
(160)
SSET TB1 N
N: Number of words CIO, G, A, T, C, #, DM, DR, IR
TB1: 1
st
stack address CIO, G, A, DM
Operand Data AreasLadder Symbol
Variations
j SSET(160)
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.
Description
Precautions
Stack Instructions Section 5-32

Table of Contents

Related product manuals