Ametek DN VR-608 Series User Manual page 53

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

Advertisement

5.4.1.2
Torque Sensor
Configuration
(Rev. 2)
//Use Dual VR IC zero crossing detection and adaptive peak threshold.
front_cfg = DQ_VR608_ZC_ONCHIP|DQ_VR608_APT_ONCHIP;
//Channel 3 reports torque and Channel 2 reports rpm.
mode[3] = DQ_VR608_MODE_COUNTER|DQ_VR608_MODE_TORQUE;
mode[2] = DQ_VR608_MODE_COUNTER|DQ_VR608_MODE_NPULSE;
//Even channel leads odd channel
//Store data after 36 teeth have been counted.
extcfg.cfg_flags |=
DQ_VR608_CFGVLD_TORQUE_CFG |
DQ_VR608_CFGVLD_NUM_TEETH;
extcfg.torque_cfg = 0;
extcfg.num_teeth = 36;
//Program VR-608 Rev.2 Channels 2 and 3.
DqAdv608SetCfgExt(hd, DEVN, 2, front_cfg, mode[2], &extcfg);
DqAdv608SetCfgExt(hd, DEVN, 3, front_cfg, mode[3], &extcfg);
5.4.1.3
Digital Input
Configuration
(Rev. 1)
//Use a fixed zero crossing level and peak threshold.
front_cfg = DQ_VR608_ZC_FIXED | DQ_VR608_APT_LOGIC;
//Count teeth over a specific time interval.
mode = DQ_VR608_MODE_COUNTER|DQ_VR608_MODE_TIMED;
//Store data at a rate of 10 Hz. Always set to less than input_freq/2.
//Set the zero crossing level to a positive value, e.g. 0.8 V.
//Set the apt divider (exponent) to 1 - divides by 2^1
extcfg.cfg_flags |=
DQ_VR608_CFGVLD_TMODE_RATE |
DQ_VR608_CFGVLD_ZC_LEVEL |
DQ_VR608_CFGVLD_APT_DIV;
extcfg.tmode_rate = 10;
extcfg.zc_level = 0.8;
extcfg.apt_div = 1;
//Program configuration for Channel 4.
DqAdv608SetCfg(hd, DEVN, 4, front_cfg, mode, &extcfg);
© Copyright 2024
United Electronic Industries, Inc.
The following example configures a dual VR torque sensor wired to Channels 2
and 3. For torque sensor configuration, always set the odd channel in a channel
pair to Torque Mode and the even channel to N-Pulse Mode.
You can read TTL-level digital pulses through the VR front-end by configuring
the board for ADC-based zero crossing detection (i.e., either ZC_FIXED or
ZC_LOGIC mode). The following example uses ZC_FIXED mode to read a
digital sensor wired to In4+/-:
February 2024
DNx-VR-608 Variable Reluctance Interface
Programming with the Low-level API
Chapter 5
47
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