Class DtoMask
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_arithm.c
 Assambles digital signals to an integer bit-mask.

 The object has 32 digital inputs, and one 32-bit integer output.
 Each input represents a bit in the output. When the input is true
 the corresponding bit is set to 1, and when the input is false the
 bit is set to 0.

See Also



RtBody attributes pwr_sClass_DtoMask
Boolean d1 d1 Digital input representing bit number 1.
Boolean d2 d2 Digital input representing bit number 2.
Boolean d3 d3 Digital input representing bit number 3.
Boolean d4 d4 Digital input representing bit number 4.
Boolean d5 d5 Digital input representing bit number 5.
Boolean d6 d6 Digital input representing bit number 6.
Boolean d7 d7 Digital input representing bit number 7.
Boolean d8 d8 Digital input representing bit number 8.
Boolean d9 d9 Digital input representing bit number 9.
Boolean d10 d10 Digital input representing bit number 10.
Boolean d11 d11 Digital input representing bit number 11.
Boolean d12 d12 Digital input representing bit number 12.
Boolean d13 d13 Digital input representing bit number 13.
Boolean d14 d14 Digital input representing bit number 14.
Boolean d15 d15 Digital input representing bit number 15.
Boolean d16 d16 Digital input representing bit number 16.
Boolean d17 d17 Digital input representing bit number 17.
Boolean d18 d18 Digital input representing bit number 18.
Boolean d19 d19 Digital input representing bit number 19.
Boolean d20 d20 Digital input representing bit number 20.
Boolean d21 d21 Digital input representing bit number 21.
Boolean d22 d22 Digital input representing bit number 22.
Boolean d23 d23 Digital input representing bit number 23.
Boolean d24 d24 Digital input representing bit number 24.
Boolean d25 d25 Digital input representing bit number 25.
Boolean d26 d26 Digital input representing bit number 26.
Boolean d27 d27 Digital input representing bit number 27.
Boolean d28 d28 Digital input representing bit number 28.
Boolean d29 d29 Digital input representing bit number 29.
Boolean d30 d30 Digital input representing bit number 30.
Boolean d31 d31 Digital input representing bit number 31.
Boolean d32 d32 Digital input representing bit number 32.
Int32 Mask Mask Bit mask.

DevBody attributes 
PlcNode PlcNode  


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


Attributes detail


d1 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d1
Body RtBody
 Digital input representing bit number 1.

d2 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d2
Body RtBody
 Digital input representing bit number 2.

d3 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d3
Body RtBody
 Digital input representing bit number 3.

d4 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d4
Body RtBody
 Digital input representing bit number 4.

d5 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d5
Body RtBody
 Digital input representing bit number 5.

d6 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d6
Body RtBody
 Digital input representing bit number 6.

d7 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d7
Body RtBody
 Digital input representing bit number 7.

d8 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d8
Body RtBody
 Digital input representing bit number 8.

d9 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d9
Body RtBody
 Digital input representing bit number 9.

d10 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d10
Body RtBody
 Digital input representing bit number 10.

d11 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d11
Body RtBody
 Digital input representing bit number 11.

d12 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d12
Body RtBody
 Digital input representing bit number 12.

d13 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d13
Body RtBody
 Digital input representing bit number 13.

d14 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d14
Body RtBody
 Digital input representing bit number 14.

d15 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d15
Body RtBody
 Digital input representing bit number 15.

d16 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d16
Body RtBody
 Digital input representing bit number 16.

d17 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d17
Body RtBody
 Digital input representing bit number 17.

d18 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d18
Body RtBody
 Digital input representing bit number 18.

d19 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d19
Body RtBody
 Digital input representing bit number 19.

d20 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d20
Body RtBody
 Digital input representing bit number 20.

d21 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d21
Body RtBody
 Digital input representing bit number 21.

d22 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d22
Body RtBody
 Digital input representing bit number 22.

d23 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d23
Body RtBody
 Digital input representing bit number 23.

d24 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d24
Body RtBody
 Digital input representing bit number 24.

d25 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d25
Body RtBody
 Digital input representing bit number 25.

d26 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d26
Body RtBody
 Digital input representing bit number 26.

d27 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d27
Body RtBody
 Digital input representing bit number 27.

d28 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d28
Body RtBody
 Digital input representing bit number 28.

d29 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d29
Body RtBody
 Digital input representing bit number 29.

d30 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d30
Body RtBody
 Digital input representing bit number 30.

d31 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d31
Body RtBody
 Digital input representing bit number 31.

d32 Input
Class Input
Type Boolean
Flags NOINVERT | REDUTRANSFER
GraphName d32
Body RtBody
 Digital input representing bit number 32.

Mask Output
Class Output
Type Int32
Flags STATE | NOEDIT | REDUTRANSFER
GraphName Mask
Body RtBody
 Bit mask.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody