Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 792

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Table Data Processing Instructions
Description
TB
TB+1
TB+2
TB+3
TB+4
Pointer
Offset value
Last word
in stack
C
Flags
Precautions
752
Area
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
SINS(641) inserts the source data at the desired address and shifts the exist-
ing data down one word. At the same time, SINS(641) increments the stack
pointer (TB+3 and TB+2) by 1. The location of the desired address is calcu-
lated by subtracting the offset value in C from the stack pointer.
Stack
PLC memory
address
n
m
Inserts the source data (A)
and increments the stack
pointer.
B
The address of the desired word is
C
calculated by subtracting the offset
D
value from the stack pointer address.
m
n
SINS(641) can be used to insert the data for an item that is inserted in the
midst of items already on a conveyor. The position of the insertion point is
simply the number of items back (the offset value) from the most recent item
added to the conveyor.
Name
Label
Error Flag
ER
The stack must be defined in advance with SSET(630).
SINS(641) inserts one word of data into the stack, so there must be at least
one available word at the end of the stack. If the stack is full, an error will
occur and the source data will not be inserted.
If the address indicated by the stack pointer (TB+3 and TB+2) is already
greater than the address of the last word in the stack (TB+1 and TB) when
SINS(641) is executed, a stack overflow error will occur and the source data
will not be inserted.
TB
---
#0001 to #FFFB
(Hexadecimal)
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
TB
TB+1
TB+2
TB+3
TB+4
A
Pointer
Last word
in stack
ON if the address indicated by the stack pointer (TB+3
and TB+2) is greater than the PLC memory address of
last word in the data region of the stack.
(This is a stack overflow error.)
ON if the offset value specified is greater than the maxi-
mum data region size - 1 (FFFA hex).
OFF in all other cases.
Section 3-17
C
S
#0000 to #FFFF
(Hexadecimal)
Stack
PLC
memory
n
m+1
The stack pointer is
incremented by +1.
A
B
C
m
D
m+1
Operation

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents