adapnex::drivers::wago::cc100::CC100IODriver

Driver for all built‐in digital and analog I/O ports on the WAGO CC100.

Synopsis

Declared in <adapnex/drivers/wago_cc100/io_driver.h>

class CC100IODriver final
    : public core::Task

Base Classes

Name Description

core::Task

Task represents a base class to implement schedulable application components. Tasks are combined via TaskGroup and executed by the scheduler according to the given scheduling parameters. See Application::CreateCyclicTaskGroup() and Application::CreateFreewheelingTaskGroup().

Member Functions

Name

Description

CC100IODriver [constructor]

Default constructor

PostUpdate [virtual]

PreUpdate [virtual]

Update [virtual]

Data Members

Name

Description

AI1

Analog Input AI1 (values: 0..10V)

AI2

Analog Input AI2 (values: 0..10V)

AO1

Analog Output AO1 (values: 0..10V)

AO2

Analog Output AO2 (values: 0..10V)

DI1

Digital Input DI1

DI2

Digital Input DI2

DI3

Digital Input DI3

DI4

Digital Input DI4

DI5

Digital Input DI5

DI6

Digital Input DI6

DI7

Digital Input DI7

DI8

Digital Input DI8

DO1

Digital Output DO1

DO2

Digital Output DO2

DO3

Digital Output DO3

DO4

Digital Output DO4

PT1

PT1000 Input PT1 (values: 450..4400Ohm)

PT2

PT1000 Input PT2 (values: 450..4400Ohm)

Protected Member Functions

Name

Description

PostUpdate [virtual]

The PostUpdate method provides an opportunity to do some processing after all Update() methods have been invoked each cycle. Drivers generally use this to update any outputs that might have been written to by other tasks.

PreUpdate [virtual]

The PreUpdate method provides an opportunity to do some processing before any Update() methods are invoked each cycle. Drivers generally use this step to update any inputs that might be consumed by other tasks.

Setup [virtual]

The Setup method is called once during the setup phase of the application after the setup() function has returned. Any remaining configuration or memory allocation that could not be handled in the constructor should occur here. The order in the Setup methods for each Task are called is dependent on the order in which the containing task groups are created followed by the order in which the tasks are added to their respective task groups. Drivers generally use this step to initialize any peripherals or devices, based on the previously defined configuration.

Update [virtual]

The Update method is called repeatedly after the setup phase and should contain the main processing step for most tasks. Therefore, the method has no default implementation and must be overridden by every derived class.

Created with MrDocs