Class MaskToD
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_arithm.c
 Deassambles integer bitmask to digital signals.

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

See Also



RtBody attributes pwr_sClass_MaskToD
Int32 Mask Mask Bit mask.
Boolean od1 od1 Digital output representing bit number 1.
Boolean od2 od2 Digital output representing bit number 2.
Boolean od3 od3 Digital output representing bit number 3.
Boolean od4 od4 Digital output representing bit number 4.
Boolean od5 od5 Digital output representing bit number 5.
Boolean od6 od6 Digital output representing bit number 6.
Boolean od7 od7 Digital output representing bit number 7.
Boolean od8 od8 Digital output representing bit number 8.
Boolean od9 od9 Digital output representing bit number 9.
Boolean od10 od10 Digital output representing bit number 10.
Boolean od11 od11 Digital output representing bit number 11.
Boolean od12 od12 Digital output representing bit number 12.
Boolean od13 od13 Digital output representing bit number 13.
Boolean od14 od14 Digital output representing bit number 14.
Boolean od15 od15 Digital output representing bit number 15.
Boolean od16 od16 Digital output representing bit number 16.
Boolean od17 od17 Digital output representing bit number 17.
Boolean od18 od18 Digital output representing bit number 18.
Boolean od19 od19 Digital output representing bit number 19.
Boolean od20 od20 Digital output representing bit number 20.
Boolean od21 od21 Digital output representing bit number 21.
Boolean od22 od22 Digital output representing bit number 22.
Boolean od23 od23 Digital output representing bit number 23.
Boolean od24 od24 Digital output representing bit number 24.
Boolean od25 od25 Digital output representing bit number 25.
Boolean od26 od26 Digital output representing bit number 26.
Boolean od27 od27 Digital output representing bit number 27.
Boolean od28 od28 Digital output representing bit number 28.
Boolean od29 od29 Digital output representing bit number 29.
Boolean od30 od30 Digital output representing bit number 30.
Boolean od31 od31 Digital output representing bit number 31.
Boolean od32 od32 Digital output representing bit number 32.

DevBody attributes 
PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 1
parameters[1] 0
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 MaskToD
graphname MaskToD
debugpar


Attributes detail


Mask Input
Class Input
Type Int32
Flags REDUTRANSFER
GraphName Mask
Body RtBody
 Bit mask.

od1 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od1
Body RtBody
 Digital output representing bit number 1.

od2 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od2
Body RtBody
 Digital output representing bit number 2.

od3 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od3
Body RtBody
 Digital output representing bit number 3.

od4 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od4
Body RtBody
 Digital output representing bit number 4.

od5 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od5
Body RtBody
 Digital output representing bit number 5.

od6 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od6
Body RtBody
 Digital output representing bit number 6.

od7 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od7
Body RtBody
 Digital output representing bit number 7.

od8 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od8
Body RtBody
 Digital output representing bit number 8.

od9 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od9
Body RtBody
 Digital output representing bit number 9.

od10 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od10
Body RtBody
 Digital output representing bit number 10.

od11 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od11
Body RtBody
 Digital output representing bit number 11.

od12 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od12
Body RtBody
 Digital output representing bit number 12.

od13 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od13
Body RtBody
 Digital output representing bit number 13.

od14 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od14
Body RtBody
 Digital output representing bit number 14.

od15 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od15
Body RtBody
 Digital output representing bit number 15.

od16 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od16
Body RtBody
 Digital output representing bit number 16.

od17 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od17
Body RtBody
 Digital output representing bit number 17.

od18 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od18
Body RtBody
 Digital output representing bit number 18.

od19 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od19
Body RtBody
 Digital output representing bit number 19.

od20 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od20
Body RtBody
 Digital output representing bit number 20.

od21 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od21
Body RtBody
 Digital output representing bit number 21.

od22 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od22
Body RtBody
 Digital output representing bit number 22.

od23 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od23
Body RtBody
 Digital output representing bit number 23.

od24 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od24
Body RtBody
 Digital output representing bit number 24.

od25 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od25
Body RtBody
 Digital output representing bit number 25.

od26 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od26
Body RtBody
 Digital output representing bit number 26.

od27 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od27
Body RtBody
 Digital output representing bit number 27.

od28 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od28
Body RtBody
 Digital output representing bit number 28.

od29 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od29
Body RtBody
 Digital output representing bit number 29.

od30 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od30
Body RtBody
 Digital output representing bit number 30.

od31 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od31
Body RtBody
 Digital output representing bit number 31.

od32 Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName od32
Body RtBody
 Digital output representing bit number 32.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody