Table Data Processing Instructions - Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Table Data Processing Instructions

3-16 Table Data Processing Instructions
3-16-1 SET STACK: SSET(630)
Purpose
Ladder Symbol
DOUBLE FLOATING LESS THAN Comparison (<D)
15
S1 :D100
1 0 0 0 1 0 1 1 0 1 0 0 0 1 0 0
S1+1:D101
1 1 1 0 0 1 1 1 0 1 1 0 1 1 0 0
S1+2:D102
1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 1
S1+3:D103
0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1
Decimal value: 3.4580
Does not yield an ON condition.
15
S1 :D100
1 1 0 1 1 1 1 0 1 0 0 1 0 0 0 1
S1+1:D101
1 0 1 0 1 0 0 1 1 0 1 1 0 1 1 0
S1+2:D102
1 1 1 0 1 1 0 1 1 0 1 1 0 0 0 0
S1+3:D103
1 1 0 0 1 0 1 0 0 0 0 0 0 0 1 0
Decimal value: 3.4580E+48
This section describes instructions used to handle table data, stacks, and
other ranges of data.
Instruction
SET STACK
PUSH ONTO STACK
FIRST IN FIRST OUT
LAST IN FIRST OUT
DIMENSION RECORD TABLE DIM
SET RECORD LOCATION
GET RECORD NUMBER
DATA SEARCH
SWAP BYTES
FIND MAXIMUM
FIND MINIMUM
SUM
FRAME CHECKSUM
STACK NUMBER OUTPUT
STACK DATA READ
STACK DATA OVERWRITE
STACK DATA INSERT
STACK DATA DELETE
Defines a stack of the specified length beginning at the specified word.
SSET(630)
TB
N
0
15
S1 :D200
0 1 1 1 1 0 0 1 0 0 1 1 1 1 1 0
S2+1:D201
1 0 1 0 1 0 0 0 0 1 0 1 1 0 0 0
S2+2:D202
1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 1
S2+3:D203
0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1
Decimal value: 1.4876
3.4580>1.4876
0
15
S1 :D200
0 1 0 1 0 1 0 0 0 1 0 1 0 0 1 1
S2+1:D201
1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1
S2+2:D202
0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0
S2+3:D203
0 1 0 0 1 0 0 1 1 1 1 1 0 0 0 0
Decimal value: 1.4876E+48
3.4580E+48<1.4876E+48
Yields an ON condition.
Mnemonic
SSET
PUSH
FIFO
LIFO
SETR
GETR
SRCH
SWAP
MAX
MIN
SUM
FCS
SNUM
SREAD
SWRIT
SINS
SDEL
TB: First stack address
N: Number of words
Section 3-16
0
0
Function code
Page
630
567
632
570
633
573
634
575
631
578
635
580
636
582
181
584
637
586
182
588
183
591
184
594
180
597
638
600
639
603
640
606
641
609
642
612
567

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents