FieldbusEcatStartupConfig Sample

This sample demonstrates how to configure startup parameters and how to launch and shut down a MainDevice.

Source Files

File Description

FieldbusEcatStartupConfig.h

The header file generated when creating the project using the wRTOS Application Template.

FieldbusEcatStartupConfig.cpp

The source file contains the startup parameter configuration and the MainDevice start/stop processes.

Building the Sample

Build the sample in any of the four available configurations: Debug, Release (to build FieldbusEcatStartupConfig.exe), RTSSDebug, or RTSSRelease (to build FieldbusEcatStartupConfig.rtss).

Running the Sample

Run the compiled binary without any arguments.

Expected Results

The MainDevice is launched and then shut down.

Remarks

If no physical hardware device is connected, the system generates a simulated axis after startup.