!
7-23
Section
Special Math Instructions
473
If bit 14 of C is ON and more than one address contains the same maximum val-
ue, the position of the lowest of the addresses will be output to D+1. The position
will be output as the DM address for the DM area, but as an absolute position
relative to the first word in the range for all other areas.
The number of words within the range (N) is contained in the 3 rightmost digits of
C, which must be BCD between 001 and 999.
When bit 15 of C is OFF, data within the range is treated as unsigned binary and
when it is ON the data is treated as signed binary.
15
14
13
12
11
00
Not used – set to zero.
Number of words
in range (N: 001 to 999 BCD)
Not used – set to zero.
Output address to D+1?
1 (ON):
Yes.
0 (OFF): No.
C:
Caution
If bit 14 of C is ON, values above #8000 are treated as negative numbers, so the
results will differ depending on the specified data type. Be sure that the correct
data type is specified.
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
R
1
and R
1
+N–1 are not in the same data area.
EQ:
ON when the maximum value is #0000.
When IR 00000 is ON, the control data in DM 0000 (4010) will cause a search for
the maximum value in the 10 words starting at IR 200. The largest unsigned val-
Example
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...