![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268743.webp)
704
Table Data Processing Instructions
Section 3-17
The following diagram shows the basic structure of a record table. Each
record in a table has the same number of words.
Index Registers (IR) can be used to indirectly reference table data. Address
calculation of the record can be easily made by using the SETR(635) (SET
RECORD NUMBER) instruction and GETR(636) (GET RECORD NUMBER).
Range Instructions
The range instructions included here act on a specified range of words to find
the maximum value (MAX(182)) or minimum value (MIN(183)), search for a
particular value (SRCH(181)), calculate the sum (SUM(184)) or FCS
(FCS(180)), or swap the contents of the leftmost and rightmost bytes in the
words (SWAP(637)).
3-17-1 SET STACK: SSET(630)
Purpose
Defines a stack of the specified length beginning at the specified word.
Ladder Symbol
Variations
Applicable Program Areas
Operands
TB through TB+3: Stack control words
The first four words of the stack contain the PLC memory address of the last
word in the stack and the stack pointer (the PLC memory address of the next
word to be overwritten by PUSH(632)).
Record
Record
Record
Table
Same number of words
in each record
Range
specified in
instruction
MAX or
MIN
search
SRCH
search
SWAP
operation
SUM
calculation or
FCS
calculation
SSET(630)
TB
N
TB
: First stack address
N
: Number of words
Variations
Executed Each Cycle for ON Condition
SSET(630)
Executed Once for Upward Differentiation
@SSET(630)
Executed Once for Downward Differentiation
Not supported.
Immediate Refreshing Specification
Not supported.
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...