Supported platforms: CODESYS 3.5, CODESYS 3.5 SAFETY

 

List of Library's Data Types

 

ErrorIDs (BYTE ENUM)

Name

Numeric value

Description

NO_ERROR

0

No error diagnosed

INPUT_TOO_HIGH

1

Signal is over calibrated maximum + tolerance

INPUT_TOO_LOW

2

Signal is under calibrated minimum - tolerance

OUTPUT_TOO_HIGH

3

Return value is too high

OUTPUT_TOO_LOW

4

Return value is too low

PARAMETER_ERROR

5

Error in input parameters (INIT)

DATA_MISMATCH

6

Data do not match/out of tolerance

STARTUP_ERROR

7

Control already requested at rising edge of i_Enable

CALIBRATION_ERROR

8

Error in device calibration values

CALIBRATION_READY

9

Device calibration finished successfully

EXTERNAL_VOLTAGE

10

Measured voltage high when controlled off

VOLTAGE_SHORTCUT

11

Measured voltage low when controlled on

HIGH_WARNING

12

Value over high warning limit

HIGH_ALARM

13

Value over high alarm limit

LOW_WARNING

14

Value below low warning limit

LOW_ALARM

15

Value below low alarm limit

SRV_TIMEOUT

16

SRDO protocol validation timeout

SC_TIMEOUT

17

SRDO protocol safety cycle timeout

OVER_CURRENT

18

Current controller: Overcurrent/short to GND

WIRE_BROKEN

19

Current controller: Current below min limit

PI_I_TERM_ERROR

20

Current controller: I-term has reached its limits

PVG_VALVE_ERROR

21

PVG valve has detected error

POSDIR_SWITCH_STATUS_MISSING

22

Positive direction switch not active when supposed to be

POSDIR_SWITCH_STATUS_ON_FAULT

23

Positive direction switch active when not supposed to be

MIDPOS_SWITCH_STATUS_MISSING

24

Middle position switch not active when supposed to be

MIDPOS_SWITCH_STATUS_ON_FAULT

25

Middle position switch active when not supposed to be

NEGDIR_SWITCH_STATUS_MISSING

26

Negative direction switch not active when supposed to be

NEGDIR_SWITCH_STATUS_ON_FAULT

27

Negative direction switch active when not supposed to be

 

 

FunctionIDs (BYTE ENUM)

Name

Numeric value

Description

NO_FUNC

0

No function ID

LINEAR_SENSOR

1

EPEC_SSC.S_LinearSensor

KTY_SENSOR

2

EPEC_SSC.S_KTYSensor

VOLTAGE_TO_DI_CONVERSION

3

EPEC_SC.S_VoltageToDI
VOLTAGE_TO_RESISTANCE

4

EPEC_SC.S_VoltageToResistance
ADC_TO_VOLTAGE_OR_CURRENT

5

EPEC_SC.S_ADCToVoltageOrCurrent
PEDAL

6

EPEC_SJCD.S_Pedal
JOYSTICK

7

EPEC_SJCD.S_Joystick
LINEAR_RAMP

8

EPEC_SPVC.S_LinearRamp
END_ATTENUATION

9

EPEC_SPVC.S_EndAttenuation
CURRENT_REQUEST

10

EPEC_SPVC.S_CurrentRequest
ADAPTIVE_CURRENT_CONTROLLER

11

EPEC_SPVC.S_AdaptiveController
PVG_CONTROLLER

12

EPEC_SPVC.S_PVGController
VALIDATE_AI

13

EPEC_SDV.S_ValidateAI
VALIDATE_DI

14

EPEC_SDV.S_ValidateDI
VALIDATE_DIRSW_JOYSTICK

15

EPEC_SDV.S_ValidateJoystickWithDirSwitches
CALCULATE_CRC

16

EPEC_SDV.Calculate16bitCRC
CALCULATE_ACCESS_CODE

17

EPEC_SDV.CalculateAccessCode
CALCULATE_PARINDEX_CRC

18

EPEC_SDV.CalculateParameterIndexCRC
CALCULATE_SRDO_SIGNATURE

19

EPEC_SDV.CalculateSRDOSignature
VALIDATE_ACCESS_CODE

20

EPEC_SDV.S_ValidateAccessCode
VALIDATE_SAFETY_PARINDEX

21

EPEC_SDV.S_ValidateSafetyParameterIndex
VALIDATE_SRDO_SIGNATURE

22

EPEC_SDV.S_ValidateSRDOSignature
VALUE_DIAGNOSTIC

23

EPEC_SDV.S_ValueDiagnostic
DO_CONTROL

24

EPEC_SHWD.S_DOControlAndDiagnostic
DO_CONTROL_ECO

25

EPEC_SHWD.S_DOValveEcoControlAndDiagnostic
AI_OC_PROTECTION

26

EPEC_SHWD.S_AIOverCurrentProtection
OVP_DIAGNOSTIC

27

EPEC_SHWD.S_SupplyVoltageDiagnostics
GROUP_CONTROL

28

EPEC_SHWD.S_OutputGroupControlAndDiagnostic
REF_CONTROL

29

EPEC_SHWD.S_RefControlAndDiagnostic
INTERNAL_TEMP

30

EPEC_SHWD.S_InternalTempMonitoring
VALIDATE_SRDO

31

EPEC_SRDO.S_ValidateSRDO<type>

 

EventCode (STRUCT)

Name of the Member

Data Type

Default value

Description

DeviceID

BYTE

0

Event device number. e.g. the number of sensor or actuator thet generated error

ChannelID

BYTE

0

Channel ID number

FunctionID

FunctionIDs

FunctionIDs.NO_FUNC

ID of the function (source) that generated error

EventID

ErrorIDs

ErrorIDs.NO_ERROR

ID of the error occurred

 

See also

 

 

 

Source file topic100419.htm

Last updated 13-Jun-2024