Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-213
Ver. 1
2) DMAX (Double Maximum)
(1) Searches from double word data S up to N range for the maximum value to save in D.
(2) Comparison in size will be performed by signed operation.
(3) If operation result is Zero, Zero Flag will be set.
(4) If N=0, the instruction will not be executed.
3) Program Example
(1) When D01000=1111, D01001=3333, D01002=2222, if Input Signal P00000 is changed from Off to On
status, it saves D01100=3333.
P00000
MAXP D01000 D01100 D01200
Searching range
( n )
Head No. of object to search
26594823
Maximum value
D
S
S + 2
S + 4
S + 6
S + (2n-8)
S + (2n-6)
S + (2n-4)
S + (2n-2)
-12345
25894
256
588479
145
26594823
-258
-365412
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...