Class EnumToD
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_arithm.c
 Identify an enumeration value.

 The inputvalue is compared to values in an intern array, which
 by default, has the values 0, 1, 2, ..., 31. If the input is equal
 to a values in the array, the corresponding output is set to true,
 otherwise it is set to false.

See Also



RtBody attributes pwr_sClass_EnumToD
Int32 Enum Enum Enumeration input value.
Array of Int32 EnumValues   Enumeration values.
This array contains the enumeration values, that the
input value is compared with. If the input value is equal
to a value in the array, the corresponding digital output
is set to true, otherwise it is set to false.
Boolean od0 od0 Digital output representing enumeration value at index 0 in EnumValues.
Boolean od1 od1 Digital input representing enumeration value at index 1 in EnumValues.
Boolean od2 od2 Digital output representing enumeration value at index 2 in EnumValues.
Boolean od3 od3 Digital output representing enumeration value at index 3 in EnumValues.
Boolean od4 od4 Digital output representing enumeration value at index 4 in EnumValues.
Boolean od5 od5 Digital output representing enumeration value at index 5 in EnumValues.
Boolean od6 od6 Digital output representing enumeration value at index 6 in EnumValues.
Boolean od7 od7 Digital output representing enumeration value at index 7 in EnumValues.
Boolean od8 od8 Digital output representing enumeration value at index 8 in EnumValues.
Boolean od9 od9 Digital output representing enumeration value at index 9 in EnumValues.
Boolean od10 od10 Digital output representing enumeration value at index 10 in EnumValues.
Boolean od11 od11 Digital output representing enumeration value at index 11 in EnumValues.
Boolean od12 od12 Digital output representing enumeration value at index 12 in EnumValues.
Boolean od13 od13 Digital output representing enumeration value at index 13 in EnumValues.
Boolean od14 od14 Digital output representing enumeration value at index 14 in EnumValues.
Boolean od15 od15 Digital output representing enumeration value at index 15 in EnumValues.
Boolean od16 od16 Digital output representing enumeration value at index 16 in EnumValues.
Boolean od17 od17 Digital output representing enumeration value at index 17 in EnumValues.
Boolean od18 od18 Digital output representing enumeration value at index 18 in EnumValues.
Boolean od19 od19 Digital output representing enumeration value at index 19 in EnumValues.
Boolean od20 od20 Digital output representing enumeration value at index 20 in EnumValues.
Boolean od21 od21 Digital output representing enumeration value at index 21 in EnumValues.
Boolean od22 od22 Digital output representing enumeration value at index 22 in EnumValues.
Boolean od23 od23 Digital output representing enumeration value at index 23 in EnumValues.
Boolean od24 od24 Digital output representing enumeration value at index 24 in EnumValues.
Boolean od25 od25 Digital output representing enumeration value at index 25 in EnumValues.
Boolean od26 od26 Digital output representing enumeration value at index 26 in EnumValues.
Boolean od27 od27 Digital output representing enumeration value at index 27 in EnumValues.
Boolean od28 od28 Digital output representing enumeration value at index 28 in EnumValues.
Boolean od29 od29 Digital output representing enumeration value at index 29 in EnumValues.
Boolean od30 od30 Digital output representing enumeration value at index 30 in EnumValues.
Boolean od31 od31 Digital output representing enumeration value at index 31 in EnumValues.

DevBody attributes 
PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 1
parameters[1] 1
parameters[2] 32
parameters[3] 0
subwindows 0
graphmethod 0 (standard, individual attributes)
graphindex 0
default_mask[0] 1
default_mask[1] 255
segname_annotation 1
compmethod 4
compindex 0
tracemethod 0
traceindex 0
executeordermethod 2
objname EnumToD
graphname EnumToD
debugpar


Template Object
EnumValues[0] 0
EnumValues[1] 1
EnumValues[2] 2
EnumValues[3] 3
EnumValues[4] 4
EnumValues[5] 5
EnumValues[6] 6
EnumValues[7] 7
EnumValues[8] 8
EnumValues[9] 9
EnumValues[10] 10
EnumValues[11] 11
EnumValues[12] 12
EnumValues[13] 13
EnumValues[14] 14
EnumValues[15] 15
EnumValues[16] 16
EnumValues[17] 17
EnumValues[18] 18
EnumValues[19] 19
EnumValues[20] 20
EnumValues[21] 21
EnumValues[22] 22
EnumValues[23] 23
EnumValues[24] 24
EnumValues[25] 52
EnumValues[26] 26
EnumValues[27] 27
EnumValues[28] 28
EnumValues[29] 29
EnumValues[30] 30
EnumValues[31] 31


Attributes detail


Enum Input
Class Input
Type Int32
Flags REDUTRANSFER
GraphName Enum
Body RtBody
 Enumeration input value.

EnumValues Intern
Class Intern
Type Array of Int32
Flags ARRAY
Elements 32
Body RtBody
 Enumeration values.
 This array contains the enumeration values, that the
 input value is compared with. If the input value is equal
 to a value in the array, the corresponding digital output
 is set to true, otherwise it is set to false.

od0 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od0
Body RtBody
 Digital output representing enumeration value at index 0 in EnumValues.

od1 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od1
Body RtBody
 Digital input representing enumeration value at index 1 in EnumValues.

od2 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od2
Body RtBody
 Digital output representing enumeration value at index 2 in EnumValues.

od3 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od3
Body RtBody
 Digital output representing enumeration value at index 3 in EnumValues.

od4 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od4
Body RtBody
 Digital output representing enumeration value at index 4 in EnumValues.

od5 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od5
Body RtBody
 Digital output representing enumeration value at index 5 in EnumValues.

od6 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od6
Body RtBody
 Digital output representing enumeration value at index 6 in EnumValues.

od7 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od7
Body RtBody
 Digital output representing enumeration value at index 7 in EnumValues.

od8 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od8
Body RtBody
 Digital output representing enumeration value at index 8 in EnumValues.

od9 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od9
Body RtBody
 Digital output representing enumeration value at index 9 in EnumValues.

od10 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od10
Body RtBody
 Digital output representing enumeration value at index 10 in EnumValues.

od11 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od11
Body RtBody
 Digital output representing enumeration value at index 11 in EnumValues.

od12 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od12
Body RtBody
 Digital output representing enumeration value at index 12 in EnumValues.

od13 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od13
Body RtBody
 Digital output representing enumeration value at index 13 in EnumValues.

od14 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od14
Body RtBody
 Digital output representing enumeration value at index 14 in EnumValues.

od15 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od15
Body RtBody
 Digital output representing enumeration value at index 15 in EnumValues.

od16 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od16
Body RtBody
 Digital output representing enumeration value at index 16 in EnumValues.

od17 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od17
Body RtBody
 Digital output representing enumeration value at index 17 in EnumValues.

od18 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od18
Body RtBody
 Digital output representing enumeration value at index 18 in EnumValues.

od19 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od19
Body RtBody
 Digital output representing enumeration value at index 19 in EnumValues.

od20 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od20
Body RtBody
 Digital output representing enumeration value at index 20 in EnumValues.

od21 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od21
Body RtBody
 Digital output representing enumeration value at index 21 in EnumValues.

od22 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od22
Body RtBody
 Digital output representing enumeration value at index 22 in EnumValues.

od23 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od23
Body RtBody
 Digital output representing enumeration value at index 23 in EnumValues.

od24 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od24
Body RtBody
 Digital output representing enumeration value at index 24 in EnumValues.

od25 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od25
Body RtBody
 Digital output representing enumeration value at index 25 in EnumValues.

od26 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od26
Body RtBody
 Digital output representing enumeration value at index 26 in EnumValues.

od27 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od27
Body RtBody
 Digital output representing enumeration value at index 27 in EnumValues.

od28 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od28
Body RtBody
 Digital output representing enumeration value at index 28 in EnumValues.

od29 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od29
Body RtBody
 Digital output representing enumeration value at index 29 in EnumValues.

od30 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od30
Body RtBody
 Digital output representing enumeration value at index 30 in EnumValues.

od31 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od31
Body RtBody
 Digital output representing enumeration value at index 31 in EnumValues.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody