4 Special Functions
3-60
SmartAXIS Touch User's Manual
Comparison operation flow
The comparison operation flow is as follows.
1
Start (Run) the Touch.
For the first scan,
Next Preset Value Number
is set to the number for preset value 1 with the initialize pulse.
For the second scan, an I/O refresh is performed in END processing and the value of
Next Preset Value Number
is
transferred to
Current Preset Value Number
.
The content of
Next Preset Value Number
becomes the preset value n + 1 ("2" in this example).
When the number of preset values is 1,
Next Preset Value Number
is always "1".
2
Start the high-speed counter count operation.
Turn on the gate input to start the count operation.
3
Compare the
Current Preset Value Number
preset value and the current value. When the current value and the
preset value match, the next number for the preset value becomes active and the high-speed counter continues
counting.
Execute
Comparison Output
or
Interrupt Program
. (
Comparison Output
in this example)
• Turn on the comparison (special internal relay) for only one scan.
• Overwrite
Current Preset Value Number
with
Next Preset Value Number
and start the count with the preset
value for
Current Preset Value Number
.
• Add 1 to
Next Preset Value Number
.
4
When the procedure is executed up to preset value 6, repeat again from the beginning with preset value 1.
Group
Group 1
(I0 to I1)
Read/Write
Preset Value
(Upper word)
D8052
R/W
Preset Value
(Lower word)
D8053
Example: For group 1
Storage destination for the preset value that became active.
Stored by group.
The outputs (external outputs) when the values match.
The data register that stores the preset value (target value).
Specify the starting address.
The preset value with the number that became active is
the comparison subject with the current value and is
stored in the special data registers.
Transfer
The
Current Preset Value Number
data register cannot be written to. It is read-only.
Next Preset Value Number
and
Preset Value 1
to
Preset Value 6
can be read and written to.
Содержание SmartAXIS Touch FT1A Series
Страница 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Страница 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Страница 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Страница 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Страница 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Страница 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Страница 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Страница 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Страница 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Страница 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Страница 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Страница 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Страница 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Страница 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Страница 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Страница 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...