Table Data Processing Instructions - Omron CS1G/H-CPUxxH Instructions Manual

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Table Data Processing Instructions

Precautions
Example
3-17 Table Data Processing Instructions
Name
Label
Not Equal Flag
=
Less Than Flag
<
Less Than or
< =
Equal Flag
Negative Flag
N
Input comparison instructions cannot be used as right-hand instructions, i.e.,
another instruction must be used between them and the right bus bar.
AND DOUBLE FLOATING LESS THAN: AND<D(331)
When CIO 000000 is ON in the following example, the floating point data in
words D00100 to D00103 is compared to the floating point data in words
D00200 to D00203. If the content of D00100 to D00103 is less than that of
D00200 to D00203, execution proceeds to the next line and CIO 005000 is
turned ON. If the content of D00100 to D00103 is not less than that of D00200
to D00203, execution does not proceed to the next instruction line.
000000
DOUBLE FLOATING LESS THAN Comparison (<D)
15
S1 :D00100
1 0 0 0 1 0 1 1 0 1 0 0 0 1 0 0
S1+1:D00101
1 1 1 0 0 1 1 1 0 1 1 0 1 1 0 0
S1+2:D00102
1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 1
S1+3:D00103
0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1
Decimal value: 3.4580
15
S1 :D00100
1 1 0 1 1 1 1 0 1 0 0 1 0 0 0 1
S1+1:D00101
1 0 1 0 1 0 0 1 1 0 1 1 0 1 1 0
S1+2:D00102
1 1 1 0 1 1 0 1 1 0 1 1 0 0 0 0
S1+3:D00103
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. The 5 instructions at the bottom of the table (marked
with an asterisk) are supported by the CS1-H, CJ1-H, CJ1M, and CS1D CPU
Units only.
Instruction
SET STACK
PUSH ONTO STACK
FIRST IN FIRST OUT
Operation
ON if C1 ≠ C2.
OFF in all other cases.
ON if C1 < C2.
OFF in all other cases.
ON if C1 ≤ C2.
OFF in all other cases.
Unchanged
<D
D00100
D00200
0
S1 :D00100
S2+1:D00101
S2+2:D00102
S2+3:D00103
34580>14876
Does not yield an ON condition.
0
S1 :D00100
S2+1:D00101
S2+2:D00102
S2+3:D00103
−3.4580E+48<1.4876E+48
Yields an ON condition.
Mnemonic
SSET
630
PUSH
632
FIFO
633
Section 3-17
005000
15
0
0 1 1 1 1 0 0 1 0 0 1 1 1 1 1 0
1 0 1 0 1 0 0 0 0 1 0 1 1 0 0 0
1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 1
0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1
Decimal value: -1.4876
15
0
0 1 0 1 0 1 0 0 0 1 0 1 0 0 1 1
1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1
0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0
0 1 0 0 1 0 0 1 1 1 1 1 0 0 0 0
Decimal value: 1.4876E+48
Function code
Page
623
626
629
617

Advertisement

Table of Contents
loading

Table of Contents