High-Speed Counter Fb; R_Hsc High-Speed Counter Current Value Direct Read Fb - Fuji Electric MICREX-SX Series User Manual

Built-in high-speed counter
Hide thumbs Also See for MICREX-SX Series:
Table of Contents

Advertisement

Section 3 Programming

3-2 High-speed Counter FB

(1) R_HSC High-speed counter current value direct read FB

1) FB format
Expert
R_HSC
EN
HSC_POS
Parameter Name
EN
Read request
HSC_POS Counter selection UINT
Q
Read end
ERROR
Read error
CV
Current value
2) Memory to be used
User FB instance memory: 4 words
Program step: 2 steps
3) Operation specifications
• When "EN" is turned ON, the high-speed counter current value in the hardware register specified by "HSC_POS" is read to "CV"
and the high-speed counter current value register, and "Q" is turned ON. When "EN" is turned OFF, "Q" is turned OFF and the
output of "CV" is cleared to 0.
The high-speed counter current value register in the basic unit continues counting.
• The figure below shows the operation timing. (When using CH0)
Counter current value
CH0 Hardware register
EN (Read request)
CV (Current value)
CH0 Current value register
(%MD3.61546/DL61546)
Representation
Representation
in Expert
in Standard
• When not using this instruction, the high-speed counter (hardware register) is reflected to the counter current value register
(special register) at the end of the scan.
• If the setting of "HSC_POS" is out of the range or a channel that is not set in the parameter is specified, "ERROR" is turned
ON and "Q" is turned OFF.
Standard
R_HSC
Q
V1 (EN)
ERROR
WV2 (HSC_POS)
CV
Data type
I/O
BOOL
VAR_INPUT
VAR_INPUT
VAR_OUTPUT Turned ON when the reading is successfully done.
BOOL
BOOL
VAR_OUTPUT Turned ON when an error occurs during the reading.
DINT
VAR_OUTPUT Outputs the current value while "EN" is ON.
103
100
100
100
When R_HSC
is executed
At the scan end
(Q) V3
(ERROR) V4
(CV) DV5
Description
While this signal is ON, the high-speed counter current value of
the specified channel is read and outputted to "CV".
Specify the channel of the high-speed counter.
0: CH0 to 7: CH7
Returns to zero when "EN" is turned OFF.
105
101
105
103
105
101
When R_HSC
When R_HSC
is executed
is executed
At the scan end
3-4
When R_HSC
is executed
At the scan end

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micrex-sx spf

Table of Contents