Omron CS1G/H-CPUxxH Instructions Manual page 670

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

Advertisement

Table Data Processing Instructions
Flags
Precautions
Examples
R1
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
When bit 15 of C+1 has been set to 1, the data within the range is treated as
signed binary data and hexadecimal values 8000 to FFFF are considered
negative. Thus, the results of the search will differ depending on the data-type
setting.
When CIO 000000 turns ON in the following example, MAX(182) searches
the 10-word range beginning at D00200 for the maximum value. The maxi-
mum value is written to D00300 and the PLC memory address of the word
containing the maximum value is written to IR00.
C: D00100
C+1: D00101
1
R1:
PC memory
address
100CA
Operation
ON if the content of C isn't within the specified range of
0001 through FFFF.
OFF in all other cases.
ON if the maximum value is 0000.
OFF in all other cases.
ON if bit 15 is ON in the word containing the maximum
value.
OFF in all other cases.
0
0
0
A
Number of words
Always 0.
1: Outputs address to IR00.
1: Treats data as signed binary.
D: D00300
Section 3-17
10 words
Decimal
equivalent
Max. value
–2
–1
–3
000100CA
649

Advertisement

Table of Contents
loading

Table of Contents