550
7 APPLICATION INSTRUCTION
7.17 Data operation instruction
• The following table shows example of search result table.
• Comparison is executed algebraically. (-10<2)
• When there are two or more maximum or minimum values in the searched data, the last position of the max/min is stored
respectively.
• When these instructions are driven, five devices ([(d)+1,(d)], [(d)+3, (d)+2], [(d)+5, (d)+4], [(d)+7, (d)+6], and [(d)+9, (d)+8])
are occupied for storing the these result (d). Make sure that these devices are not used in other controls for the machine.
Device number Description Search result item
(d)+1, (d) 3 Number of same data
(d)+3, (d)+2 0 Same data position (first position)
(d)+5, (d)+4 6 Same data position (last position)
(d)+7, (d)+6 5 Minimum value position (last position)
(d)+9, (d)+8 9 Maximum value position (last position)
Error code
(SD0/SD8067)
Description
2820 The device range specified by (s1) or (d) exceeds the corresponding device range.
3405 The value stored in a device specified by (n) is 0.