Ametek DN VR-608 Series User Manual page 52

8-channel variable reluctance sensor interface for the powerdna cube and rack series chassis
Table of Contents

Advertisement

Table 5-2 Low-level API Configuration Parameters (Cont.)
Parameter
ov_speed
5.4.1.1
VR Sensor
Configuration
//Use Dual VR IC for zero crossing detection and adaptive peak threshold.
front_cfg = DQ_VR608_ZC_ONCHIP|DQ_VR608_APT_ONCHIP;
//Measure velocity every N teeth.
mode = DQ_VR608_MODE_COUNTER|DQ_VR608_MODE_NPULSE;
//Toothed wheel has N = 36 teeth (including the Z-tooth).
//Z-tooth is one missing tooth.
extcfg.cfg_flags |=
DQ_VR608_CFGVLD_NUM_TEETH |
DQ_VR608_CFGVLD_Z_TOOTH_SZ;
extcfg.num_teeth = 36;
extcfg.z_tooth_sz = 1;
//Program configuration for Channel 0.
DqAdv608SetCfg(hd, DEVN, 0, front_cfg, mode, &extcfg);
© Copyright 2024
United Electronic Industries, Inc.
C/P/L
Rev.1
Rev.2
C
Note that cfg_flags defines what other parts of the configuration structure are
valid. For example, the DQ_VR608_CFGVLD_ZC_LEVEL flag is required to set
zc_level. If DQ_VR608_CFGVLD_ZC_LEVEL is not included in cfg_flags,
then the zero crossing value is ignored and remains unchanged. Parameters
that have not been configured are configured with default values.
By using this strategy, configuration calls can be additive, so each following call
adds or changes a parameter to the card's configuration (or uses the default
value if not configured). To reset the entire configuration back to the default
state, call DqAdv608SetCfg() or DqAdv608SetCfgExt() with only the
DQ_VR608_CFGFLG_CLEAR bit set in cfg_flags.
The examples in the following sections use the |= operator in order to update
the existing configuration with the new values shown in the examples.
The following example shows a typical configuration for an analog VR sensor
wired to Channel 0.
Remember that front_cfg will be set for the channel pair, i.e., both Channels
0 and 1. Timed Mode is only set for Channel 0.
February 2024
DNx-VR-608 Variable Reluctance Interface
Programming with the Low-level API
Description
Set limit for overspeed alarm in RPM
Chapter 5
46
www.ueidaq.com
508.921.4600

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dna-vr-608Dnr-vr-608Dnf-vr-608

Table of Contents