![Omron CJ1G-CPUxx Instructions Manual Download Page 680](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491680.webp)
659
Table Data Processing Instructions
Section 3-17
Examples
When CIO 000000 is ON in the following example, FCS(180) calculates the
FCS value for the 10 bytes of data beginning with the rightmost byte of
D00100 and writes the result to D00200.
3-17-14 STACK SIZE READ: SNUM(638)
Purpose
Counts the amount of stack data (number of words) in the specified stack.
This instruction is supported by the CS1-H, CJ1-H, CJ1M, and CS1D CPU
Units only.
Ladder Symbol
Variations
Applicable Program Areas
Table length
Units
1: Bytes
Starting byte (Effective only if bit 13 is 1.)
1: Rightmost byte
10 bytes
Always 0.
The FCS value for the
shaded bytes is calculated
and converted to ASCII.
Always 0.
C: D00300
C+1: D00301
R1:
D: D00200
0 2
0 4
0 6
0 8
0 0
3 0
0 1
0 3
0 5
0 7
0 0
3 8
R1
SNUM(638)
TB
D
TB: First stack address
D: Destination word
Variations
Executed Each Cycle for ON Condition
SNUM(638)
Executed Once for Upward Differentiation
@SNUM(638)
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
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...