7 Applied Instructions
7.7 Handy Instruction
337
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
2) Operation examples
a) Examples of composition of search result table and data
b) Search result table
Cautions
1. Comparison of magnitude
To be calculated algebraically. (-10 < 2)
2. When minimum value and maximum value are present in a plurality
If there are a plurality of minimum value and maximum value in the data, the latter position is stored
individually.
3. Number of bits occupied
The search result occupies the following number of devices when this command is driven.
Please be careful not to overlap with the devices used in the control of the machine.
1) In the case of 16-bit operation
A total of five points will be occupied, that is, , +1, +2, +3, +4.
2) In the case of 32-bit operation
A total of ten points will be occupied, that is, ( +1, ), ( +3, +2), ( +5, +4),
(+7, +6), (+9, +8).
4. Designation of input and output variables
When handling array data or 32-bit data in structured program, you cannot designate the 16-bit device directly
unlike simple project. Please use the label when handling array data or 32-bit data.
However, with the 32-bit counter, you can designate the 32-bit data directly because it is a device of 32 bits
long.
When designating a device, use the global label.
5. FXU PLC supports the command by V3.07 or higher.
6. Object devices are limited.
S1: FX3U, FX3UC, FX3G PLCs only are applicable.
S2: FX
3U, FX3UC PLCs only are applicable.
Searched device
+1
Value of of
searched data
(ex.)
Comparative
data
Position
of data
Search result
Maximum
value +4
Coincide Minimum
value +3
[+1,]
K100000
K100000
0 3(Initial)
[ +3, +2]
K110100 1
[ +5, +4]
K100000 2 3
[ +7, +6]
K 98000 3
[ +9, +8]
K123000 4
[+11,+10]
K 66000 5 3
[+13,+12]
K100000 6 3(Final)
[+15,+14]
K 95000 7
[+17,+16]
K910000 8 3
[+19,+18]
K910000 9 3
Device No. Content Search result item
[+1,]
3 Number of same data
[ +3, +2]
0 Position of same data (initial)
[ +5, +4]
6 Position of same data (final)
[ +7, +6]
5 Final position of minimum value
[ +9, +8]
9 Final position of maximum value