Instruction 98- maximum value – Maple Systems MAPware-7000 User Manual
Page 167

159
MAPware-7000 Ladder Logic Guide
1010-1041 rev. 00
Instruction 98- Maximum Value
Expression:
Space Requirement: 1 line x 5 column Location Requirement: Middle, Right rail
Function:
When the input is ON, this instruction searches for the maximum value from the table of size n
words starting with A, and stores the maximum value in B and the pointer indicating the
position of the maximum value in B+1. The allowable range of the table size n is 1 to 64.
Execution Condition:
Input
Operation
Output
OFF
No execution
OFF
ON
Execution
ON
Operand:
Coil or Bit
Register
Constant
Index
Name
X
Y B
S
T.
C.
M
X
W
Y
W
B
W
S
W
T C
D
I
J
K
M
W
A
Start of table
√
√
√
√
√ √
√
√
√
√
N
Table size
1-64
B
Result
√
√
√
√ √
√
√
√
√
Example:
When B010 is ON, the maximum value is found from the register table D0200 to D0209 (10
words), and the maximum value is stored in D0500 and the pointer is stored in D0501.