FC6A S
ERIES
MICROS
MART
U
SER
’
S
M
ANUAL
FC9Y-B1722 5-21
5: F
UNCTIONS
AND
S
ETTINGS
Comparison Actions
The operating condition when comparing values is configured in the WindLDR High-speed Counter Settings, under
Comparison Action.
The action when comparing values is Comparison Output or Interrupt Program, so specify an external output number or
label number when comparing.
Operation
When the preset value and the current value are compared and the values match, the specified output is turned on or the interrupt
program is executed.
A maximum of six high-speed counter preset values can be configured. For one preset value, the current value is compared with
the same preset value each time.
When multiple preset values are configured, the preset value is changed each time the current value and preset value match.
For example, if four preset values are configured, when preset value 1 matches the current value, the comparison subject changes
to preset value 2 3 4 in order.
When the final preset value 4 matches the current value, the preset value returns to preset value 1 and the values are compared.
■ Preset value storage locations
The preset values during high-speed counter operation are stored as 2 words in special data registers.
Single-phase high-speed counter (Adding counter)
Single-phase high-speed counter (Up/down selection reversible counter, dual-pulse reversible counter),
two-phase high-speed counter
All-in-One CPU module
Plus CPU module
Note: In the WindLDR Function Area Settings, when 32-bit Data Storage Setting is set to From Lower Word, the lower word is stored in
the first device.
Specify the data registers to store the preset values in WindLDR and store those preset values in the user program. Specify the
start address of the data registers to allocate the data registers to the individual settings in the comparison settings. When the
high-speed counter is executed, the preset value with the number stored in Current Comparison Number is active. The active
preset value number for each comparison is stored in Current Comparison Number and the next active preset value number is
automatically stored in Next Comparison Number. By changing the value of Next Comparison Number in the user program,
the next active preset value number can be changed. The active preset value is stored for each group in the special data registers
shown in the table above.
Group 1 23456Read/Write
Preset Value
Upper Word D8212 D8194 D8220 D8224 D8228 D8200
R
Lower Word D8213 D8195 D8221 D8225 D8229 D8201
Group 1 23456Read/Write
Preset Value
Upper Word D8212 — D8228
R
Lower Word D8213 — D8229
Group 1 23456Read/Write
Preset Value
Upper Word D8212 D8220 D8228
R
Lower Word D8213 D8221 D8229