USB-Counter 026 / USB-Counter 048 1.2 Purpose The USB Counter is used to connect incremental rotary encoders, linear encoders and scanning probes directly to a computer's USB port. TTL or voltage signal (~ 1 V The USB-counter 026 analyzes a TTL signal or a voltage signal.
USB-Counter 026 / USB-Counter 048 1.3 Delivery schedule and system requirements Delivery schedule The following is included in the package: Item Amount Name Notes USB-Counter 026 USB Counter USB-Counter 026-2 optional for item 1 USB-Counter 026-3 optional for item 1 USB-Counter 048 optional for item 1 USB cable, A/B, 1.0 m...
USB-Counter 026 / USB-Counter 048 2 Installation It is also assumed that before installing the USB Counter you will have read this user manual and observed the relevant safety and operating instructions. The USB Counter can quickly be integrated into your application using the driver software for the various Windows operating systems that is included in the package.
USB-Counter 026 / USB-Counter 048 2.2 Connecting the USB Counter The USB Counter is connected to a free USB port on a PC or notebook using the USB A-B cable. The cable can be connected while the PC or notebook is running (hot plugging).
USB-Counter 026 / USB-Counter 048 3 Configuration 3.1 The DLL “HS_UC.DLL” library functions DLL function call Meaning HS_UC_Init Loads the driver and checks whether the USB Counter is available. Initialises the USB Counter. Defines den counter type (TTL / ~ 1 V / ~ 11 µA HS_UC_GetVersion Reads out DLL versions and firmware.
USB-Counter 026 / USB-Counter 048 Initialising the USB Counter Function name: HS_UC_Init long HS_UC_Init (long CounterNo, Syntax: long Type); Loads the driver and checks whether the USB Counter is available. Description: Initialises the USB Counter and sets the reference parameters to the default setting.
USB-Counter 026 / USB-Counter 048 Reading out versions Function name: HS_UC_GetVersion long HS_UC_GetVersion (long CounterNo, Syntax: char* DllVersion, char* FirmwareVersion); Reads out DLL versions and firmware. Description: Device number (1…15) Parameter value: CounterNo Pointer to the string where the DLL version is DllVersion entered.
USB-Counter 026 / USB-Counter 048 Reading out the counter value Function name: HS_UC_GetCounterVal long HS_UC_GetCounterVal (long CounterNo, Syntax: long *CountVal, long *CountStat); Reads out the counter value and status of the USB Counter. Description: Device number (1…15) Parameter value: CounterNo Pointer to the counter value variable.
USB-Counter 026 / USB-Counter 048 Reading out the offset counter value Function name: HS_UC_GetCounter long HS_UC_GetCounter (long CounterNo, Syntax: long *Count, long *Status); Reads out the counter value and status of the USB Counter. Description: The counter value is included with the reference value and the multi- plier.
USB-Counter 026 / USB-Counter 048 Setting the counter value multiplier Function name: HS_UC_SetMultiplier long HS_UC_SetMultiplier (long CounterNo, Syntax: long Multiplier); Sets the multiplier. Description: Note: The counter direction can be reversed easily using the multiplier. The multiplier must then be set to -1. Device number (1…15) Parameter value: CounterNo...
USB-Counter 026 / USB-Counter 048 Configuring distance coding Function name: HS_UC_SetDistCode long HS_UC_SetCistCode (long CounterNo, Syntax: long Distance, long Pitch, long Interpolation long Offset, long Direction); Configures the parameters for distance-coded rulers. Description: Device number (1…15) Parameter value: CounterNo Basic reference mark spacing in mm Distance (Default = 20 mm) Signal period in µm (Default = 20 µm)
USB-Counter 026 / USB-Counter 048 Setting reference mode Function name: HS_UC_SetRefMode long HS_UC_SetMode (long CounterNo, Syntax: long RefMode); Sets the reference and latch mode of the USB Counter. Description: Device number (1…15) Parameter value: CounterNo Reference mode RefMode 00h: No reference detection (Default) 01h: Single reference detection 02h: Cyclical reference detection 03h: Distance-coded reference...
USB-Counter 026 / USB-Counter 048 Resetting the USB port Function name: HS_UC_ResetUSBPort long HS_UC_ResetUSBPort (long CounterNo) Syntax: Resets the USB port. Description: The effect is the same as disconnecting then reconnecting the device from USB. After this, the USB Counter has to be initialised. Device number (1…15) Parameter value: CounterNo...
USB-Counter 026 / USB-Counter 048 Reading out the serial number Function name: HS_UC_GetSerialnumber long HS_UC_GetSerialnumber (long CounterNo, Syntax: char* Serialnumber); Reads out the serial number. Description: Device number (1…15) Parameter value: CounterNo Pointer to the string where the serial number Serialnumber is entered.
USB-Counter 026 / USB-Counter 048 Setting the reference direction Function name: HS_UC_SetRefDir long HS_UC_SetRefDir (long CounterNo, Syntax: long RefDir); Sets the reference direction of the USB Counter. Description: Device number (1…15) Parameter value: CounterNo Reference direction RefDir 00h: Both directions (Default) 01h: Positive direction 02h: Negative direction Return value:...
USB-Counter 026 / USB-Counter 048 4 Counter status 4.1 LED display USB Counter 026 A red LED indicates the operating mode. Red LED: → The identification of the USB counter is ok. Red LED: → Error in connection. USB Counter 026-2 A yellow LED indicates the operating mode.
USB-Counter 026 / USB-Counter 048 5 Technical Data 5.1 USB 2.0 USB-B socket Signal Notes + 5 V Data – Data + USB-B socket With USB devices the maximum cable length is 5 metres. The USB repeater cable is an “active extension cable” used to ex- tend a USB connection.
USB-Counter 026 / USB-Counter 048 5.2 Signal input TTL input Signal Notes Shield (Reference + 5 V 9 pin sub D socket connector Reference) • Signal: ≥ 2 V, U ≤ 0.8 V (EIA Standard RS 422) • Signal division: Interpolation by factor 4 •...
USB-Counter 026 / USB-Counter 048 Voltage input (~ 1 V Signal Notes Shield + 5 V 9 pin sub D socket connector • Signal: 0.8 – 1.2 V , typ. 1 V (sinusoidal) • Signal division: Interpolation by factor 256 •...
USB-Counter 026 / USB-Counter 048 ACU-RITE TTL input Signal Notes n. c. (A+) (A-) (B+) (B-) + 5 V 9 pin sub D socket connector (R+) (Reference (R-) Reference) • Signal: ≥ 2 V, U ≤ 0.8 V (EIA Standard RS 422) •...
USB-Counter 026 / USB-Counter 048 Unipolar TTL input Signal Notes n. c. n. c. Shield n. c. + 5 V 9 pin sub D socket connector Reference) The unipolar TTL signal is a matter of two 90° staggered TTL signals (U ).
USB-Counter 026 / USB-Counter 048 5.3 Mechanical and physical specifications Notes Housing Two-piece plastic housing Material ABS, black Dimensions Length: 72 mm Width: 52 mm Height: 24 mm Weight 41 g (without cable) Storage temperature - 30° to + 70° C Operating temperature 0°...
USB-Counter 026 / USB-Counter 048 6 Guarantee terms The manufacturer guarantees his hardware and software products for a period of two years from delivery date. During this guarantee period the manufacturer will either repair in the manufacturing firm or replace products that prove to be faulty. The guarantee terms do not apply if: •...
Need help?
Do you have a question about the USB Counter 026 and is the answer not in the manual?
Questions and answers