Instruction 99- minimum value – Maple Systems MAPware-7000 User Manual

Page 169

Advertising
background image

161

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 99- Minimum 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 minimum value from the table of size n
words starting with A, and stores the minimum value in B and the pointer indicating the position
of the minimum 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 B011 is ON, the minimum value is found from the register table D0200 to D0209 (10
words), and the minimum value is stored in D0510 and the pointer is stored in D0511.

Note

-

This instruction deals with the data as signed integer (-32768 to 32767).

-

If there is two or more minimum value in the table, the lowest pointer is stored.

-

If Index register K is used as operand B, the pointer data is discarded.

Advertising