W_Hsc High-Speed Counter Current Value / Set Value Write 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

(2) W_HSC High-speed counter current value / set value write FB

1) FB format
Expert
W_HSC
EN
HSC_POS
REG_SEL
PV
Parameter Name
EN
Write request
HSC_POS Counter selection UINT
REG_SEL
Register selection BOOL
PV
Set value
Q
Write end
ERROR
Write error
2) Memory to be used
User FB instance memory: 4 words
Program step: 2 steps
3) Operation specifications
• While "EN" is ON, the value set in "PV" is written to the high-speed counter register that is specified by "HSC_POS" and
"REG_SEL". When you want to perform writing only at the rising edge of the input signal, connect the rising edge instruction
to the left of the "EN" terminal. The figure below shows the operation timing. (When using CH1)
Counter current value
CH1 Hardware register
Set value register selected
REG_SEL (Register selection)
EN (Write request)
PV (Set value)
CH1 Set value register
(%MD3.61564/DL61564)
CH1 Current value register
(%MD3.61548/DL61548)
Representation
Representation
in Expert
in Standard
• 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
W_HSC
Q
ERROR
WV2 (HSC_POS)
V3 (REG_SEL)
DV4 (PV)
Data type
I/O
BOOL
VAR_INPUT
VAR_INPUT
VAR_INPUT
DINT
VAR_INPUT
VAR_OUTPUT Turned ON when the writing is completed.
BOOL
VAR_OUTPUT Turned ON when an error occurs during the writing.
BOOL
108
100
Current value register selected
ON
for one scan
100
100
100
At the scan end
V1 (EN)
(Q) V5
(ERROR) V6
Description
While this signal is ON, the value set by "PV" is written to the
current value or the set value area in the high-speed counter
hardware register.
Specify the channel of the high-speed counter.
0: CH0 to 7: CH7
OFF: Counter set value register
ON: Counter current value register
Input the preset value.
Turned OFF when "EN" is turned OFF.
Turned OFF when "EN" is turned OFF.
110
ON
for one scan
110
108
110
At the scan end
3-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micrex-sx spf

Table of Contents