This parameter can be NULL if the dwIoControlCode parameter specifies an operation that does not produce output data.

nOutBufferSize

[in] Size, in bytes, of the buffer pointed to by lpOutBuffer.

lpBytesReturned

[out] Long pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by lpOutBuffer.

The lpBytesReturned parameter cannot be NULL. Even when an operation produces no output data, and lpOutBuffer can be NULL, the Device-IoControl function makes use of the variable pointed to by lpBytesReturned. After such an operation, the value of the variable is without meaning.

lpOverlapped

[in] Ignored; set to NULL.

- Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

WDT Control Codes

There are 8 control codes for the operation codes in the WDT1 driver:

1. IOCTL_ENABLE_WDT (0x1001):

Enables the Watchdog timer on your application. Your application must trigger to Watchdog timer by IOCTL_ACCESS_WDT interface during specified period, otherwise the device will reboot automatically

lpInBuffer : unsed.

nInBufferSize: unused.

lpOutBuffer: unused.

nOutBufferSize: unused.

2. IOCTL_DISABLE_WDT (0x1002):

Disable the Watchdog time on your application.

lpInBuffer : unsed.

76

Page 76
Image 76
Advantech SPC-57 user manual Return Values, WDT Control Codes

SPC-57 specifications

The Advantech SPC-57 is a versatile and robust industrial computer designed for a wide range of applications in demanding environments. This system integrates advanced technologies and features to ensure high performance and reliability, making it ideal for automation, control, and data processing tasks across various industries.

One of the standout characteristics of the SPC-57 is its compact form factor. Despite its small size, it is equipped with powerful processing capabilities, utilizing the latest Intel processors to deliver exceptional computing power. This enables users to handle complex tasks efficiently, making it suitable for real-time data acquisition and processing.

The SPC-57 features a modular design that allows for easy customization and expansion. Users can select various I/O modules to tailor the system to their specific needs, whether it involves adding additional communication ports, analog inputs, or other specialized interfaces. This flexibility ensures that the SPC-57 can adapt to changing requirements over time.

Connectivity is another key advantage of the SPC-57. It offers multiple communication options, including Ethernet, serial ports, and USB interfaces. This extensive range of connectivity options makes it easy to integrate the SPC-57 into existing industrial networks, facilitating seamless communication with other devices and systems.

For enhanced reliability, the SPC-57 is built to withstand harsh environmental conditions. It is designed with a wide operating temperature range, shock and vibration resistance, and protection against dust and moisture. This rugged construction ensures that the system can operate effectively in factories, outdoor locations, and other challenging settings.

In terms of power efficiency, the SPC-57 employs advanced power management technologies. This not only reduces energy consumption but also prolongs the system's operational lifespan, making it a cost-effective solution for long-term use in industrial applications.

The user-friendly design of the SPC-57, combined with its robust features, makes it an excellent choice for industries such as manufacturing, transportation, and energy. With its ability to function reliably in various scenarios, the Advantech SPC-57 is a forward-thinking solution that meets the demands of modern industrial automation and control systems.