S
MART
AXIS P
RO
/ L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
5-19
5: S
PECIAL
F
UNCTIONS
Comparison operation flow
The comparison operation flow is as follows.
1.
Start (run) the SmartAXIS.
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.
Note:
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.
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
Содержание SmartAXIS FT9Z-1A01
Страница 1: ...FT9Y B1378 7...
Страница 10: ...TABLE OF CONTENTS Preface 9 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Страница 212: ...7 DEVICE ADDRESSES 7 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Страница 230: ...8 INSTRUCTIONS FUNCTION BLOCKS REFERENCE 8 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Страница 344: ...13 SCRIPTS 13 36 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Страница 385: ...SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 Appendix 15 APPENDIX European Font ISO 8859 1 Cyrillic Font ANSI 1251...
Страница 386: ...APPENDIX Appendix 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 Japanese Font JIS X0201...
Страница 393: ......