Supported platforms: CODESYS 3.5 SAFETY

 

List of Library's Data Types

 

IoDrvStates (INT ENUM)

Name of the Member

Default value

Description

IODRV_STATE_INIT

0

Init state

- State after reset

- Waits HW recognition to make hw-configuration

IODRV_STATE_HW_INIT_READY

1

Init state for io driver

- HW configuration ready

- Waiting command to move to configuration state

IODRV_STATE_CONFIGURATION

2

Configuration state for io-driver

- In this state user can set IO-channel configuration as wanted

- IO variables are not updated in this state

- All IOs are set to off state

IODRV_STATE_RUN

3

Run state for io-driver

- All configuration functions are blocked

- IO variables are updated

IODRV_STATE_DISABLED

4

Disabled state

- All IOs are set off state

IODRV_STATE_SAFETY

5

Safe state

- All IOs are set off state

- Recovered only by power boot up

IoDrvModes (INT ENUM)

Name of the Member

Default value

Description

IODRV_MODE_DISABLED

0

Pin disabled

IODRV_MODE_PWM_DO

1

Pin uses PWM driver

IODRV_MODE_PWM_DIRECT

2

Pin uses PWM driver

IODRV_MODE_PI_1CH

26

Pin uses PI driver

IODRV_MODE_PI_2CH

27

Pin uses PI driver

IODRV_MODE_PI_RESET

28

Pin uses PI driver

IODRV_MODE_AI_ENABLED

51

Pin uses AI driver

IODRV_MODE_DI_ENABLED

76

Pin uses DI driver

IODRV_MODE_DO_ENABLED

101

Pin uses DO driver

IoDrvDiagnostic (STRUCT)

Name of the Member

Data Type

Default value

Description

state

IoDrvStates

-

Status of the IO-driver

tag

DWORD

16#AA55BB44

Constant value for validation.

IoDrvTrigModes (INT ENUM)

Name of the Member

Default value

Description

IODRV_TRIG_METHODS_RISING_EDGE

1

PI counter triggers on rising edge.

IODRV_TRIG_METHODS_FALLING_EDGE

2

PI counter triggers on falling edge.

IODRV_TRIG_METHODS_BOTH_EDGES

3

PI counter triggers on both edges.

 

DIAGNOSTIC_TASK_STATUS (ENUM)

Name of the Member

Data Type

Default value

Description

EDiagnosticStatusNone

INT

0

Diagnostic NOT yet started/NOT set.

EDiagnosticStatusUninitialized

INT

1

Diagnostic running initialization on-going.

EDiagnosticStatusOk

INT

2

Diagnostic is executing normally and no present errors detected.

EDiagnosticStatusError

INT

3

Diagnostic is executing and error(s) detected.

EDiagnosticStatusUndervoltage

INT

4

Diagnostic has detected undervoltage condition.

EDiagnosticStatusUndervoltageShutdown

INT

5

Diagnostic has detected undervoltage condition that leads into shutdown.

 

 

Source file topic100482.htm

Last updated 19-Dec-2024