TEWS TECHNOLOGIES TDRV003-SW-42 Industrial I/O Device Drivers User Manual

Below you will find brief information for TDRV003-SW-42. This document details the TDRV003-SW-42 VxWorks Device Driver, enabling operation of digital I/O modules like the TPMC670 and TPMC671. It covers driver installation, API functions for input/output operations, event handling, debouncing, and watchdog control. The driver supports VxWorks 6.x, including SMP and 64-bit systems, ensuring robust performance for industrial applications.

PDF
Document
TEWS TDRV003-SW-42 Driver Manual | AI Chat & PDF Download | Manualzz

Advertisement

Advertisement

/

Advertisement

Key features

  • Read actual digital input values

  • Write new digital output values

  • Wait for selectable input events (match, high-, low-, any transition)

  • Enable and disable output watchdog timer

  • Acknowledge and reset watchdog errors

  • Configure, enable, and disable input debouncing

  • Supports VxWorks 6.x, including SMP and 64-bit systems

  • Compatible with TPMC670 and TPMC671 modules

Frequently asked questions

To open a device, use the tdrv003Open function, providing the device name as a null-terminated string, for example, "/tdrv003/0" for the first device.

You can read the current state of input lines by calling the tdrv003InputRead function, passing the device handle and a pointer to an unsigned short buffer where the input value will be returned.

To write a new value to the output port, use the tdrv003OutputWrite function, specifying the device handle and the unsigned short outputValue you wish to set. Bit 0 corresponds to output line 1, bit 1 to output line 2, and so on.

The output watchdog timer, when enabled, will set all outputs to an inactive (0) state if no write access occurs within 120 ms. To unlock the output register and restore the active state, you must execute the tdrv003WatchdogReset function.

You can configure and enable the input debouncer circuit using the tdrv003DebouncerEnable function. You'll need to provide the device handle and a debounceTimer value, which is specified in approximately 7µs steps.

If the output register is locked by a watchdog failure, indicated by the TDRV003_ERR_IO error code, you must execute the tdrv003WatchdogReset function to reset the watchdog error and unlock the register.

Preparing document for printing…
0%