Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 623

Table of Contents

Advertisement

Flags
Name
Error Flag
Equals Flag
Negative Flag
Related Auxiliary Area Words and Bits
Name
IR0 Output for Background
Execution
ER/AER Flag for Background
Execution
Function
MAX
MAX(182) searches the range of memory
from R1 to R1+(W-1) for the maximum value
in the range and outputs that maximum value
to D.
When bit 14 of C+1 has been set to 1,
MAX(182) writes the PLC memory address of
the word containing the maximum value to
IR0. (If two or more words within the range
contain the maximum value, the address of
the first word containing the maximum value
is written to IR0.)
When bit 15 of C+1 has been set to 1,
MAX(182) treats the data within the range as
signed binary data.
MIN
MIN(183) searches the range of memory
from R1 to R1+(W-1) for the minimum value
in the range and outputs that minimum value
to D.
When bit 14 of C+1 has been set to 1,
MIN(183) writes the PLC memory address of
the word containing the minimum value to
IR0. (If two or more words within the range
contain the minimum value, the address of
the first word containing the minimum value is
written to IR0.)
When bit 15 of C+1 has been set to 1,
MIN(183) treats the data within the range as
signed binary data.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
ER
• ON if the content of C is not within the specified range of 0001 through FFFF.
• ON if the Communications Port Enabled Flag for the communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
=
• ON if the maximum value is 0.
• OFF in all other cases.
N
• ON if bit 15 is ON in the word containing the
maximum value.
• OFF in all other cases.
Address
A595 and A596
When an index register is specified as the output for an instruction processed in the background, A595
and A596 receive the output instead of IR0.
(A595 contains the rightmost digits, and A596 contains the leftmost digits.)
A395.10
This flag is turned ON if an error or illegal access occurs during background execution.
Operation
MAX
• ON if the minimum value is 0.
• OFF in all other cases.
• ON if bit 15 is ON in the word containing the
minimum value.
• OFF in all other cases.
Operation
R1+(W–1)
R1
R1+(W–1)
3. Instructions
MIN
PC memory
address
C
W
W words
Max.
value
PC memory
address
W
C
W words
Min. value
587
3

Advertisement

Table of Contents
loading

Table of Contents