5: S
PECIAL
F
UNCTIONS
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
5-17
Special Internal Relays for Single-phase High-speed Counters (Slim Type CPU Modules)
Description
High-speed Counter No.
ON
Read/Write
HSC1
HSC2
HSC3
HSC4
Comparison Output Reset
M8030
M8034
M8040
M8044
Turns off comparison output
R/W
Gate Input
M8031
M8035
M8041
M8045
Enables counting
R/W
Reset Input
M8032
M8036
M8042
M8046
Resets the current value
R/W
Reset Status
M8130
—
—
M8135
Current value reset by I2 or I5
Read only
Comparison 1 ON Status
M8131
M8133
M8134
M8136
Preset value 1 reached
Read only
Comparison 2 ON Status
M8132
—
—
M8137
Preset value 2 reached
Read only
Current Value Overflow
M8161
—
—
M8163
Overflow occurred
Read only
Current Value Underflow
M8162
—
—
M8164
Underflow occurred
Read only
Note:
Special internal relays M8130 through M8137 and M8161 through M8164 go on for only one scan.
Special Data Registers for Single-phase High-speed Counters (Slim Type CPU Modules)
Description
High-speed Counter No.
Updated
Read/Write
HSC1
HSC2
HSC3
HSC4
Current Value (High Word)
D8210
D8218
D8222
D8226
Every scan
Read only
Current Value (Low Word)
D8211
D8219
D8223
D8227
Every scan
Read only
Preset Value 1 (High Word)
D8212
D8220
D8224
D8228
—
R/W
Preset Value 1 (Low Word)
D8213
D8221
D8225
D8229
—
R/W
Preset Value 2 (High Word)
D8214
—
—
D8230
—
R/W
Preset Value 2 (Low Word)
D8215
—
—
D8231
—
R/W
Reset Value (High Word)
D8216
—
—
D8232
—
R/W
Reset Value (Low Word)
D8217
—
—
D8233
—
R/W
Note:
When using the current value, preset value 1, preset value 2, and reset value in advanced instructions, select the data type of
double word (D).
Single-phase High-speed Counter Functions (Slim Type CPU Modules)
Counting
Mode
HSC1 to HSC4
Adding counter
HSC1
HSC4
Dual-pulse reversible counter
Up/down selection reversible counter
Maximum Counting Frequency
100 kHz
Counting Range
0 to 4,294,967,295 (32 bits)
Gate Control
Enable/disable counting
Current Value
Reset
HSC1
HSC4
Current value is reset to the reset value when reset input I2 (HSC1) or I5 (HSC4) is turned on
or when a reset input special internal relay M8032 (HSC1) or M8046 (HSC4) is turned on.
In addition, when any of current value comparison (preset value 1, preset value 2, overflow,
or underflow) is true, the current value can be reset to the reset value. The current value
comparison is designated in the Function Area Settings.
HSC2
HSC3
Current value is reset to 0 when a reset input special internal relay M8036 (HSC2) or M8042
(HSC3) is turned on.
In addition, when the current value reaches the preset value, the current value is reset to 0.
Current Value
Keep
HSC1
HSC4
When current value comparison for preset value 1 or preset value 2 is true, the current
value can also be kept to count subsequent input pulses, without resetting the current value
to the reset value.
Status Relays
Special internal relays for indicating high-speed counter statuses.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]