Bit mask |
Home Back Next |
With a bit mask several bits of a data type can be read or written, by combining them to one decimal value. Bit maskign of arrays is possible as well. Syntax8 bits of data word 0 of data block 5 shall be read beginning with bit 2. Therefore the following syntax is used: - db5.w0#2.8 or - db5.w0#2,8 or - db5.w0#2#8 ExamplesDB10.W03.4 DB10.DWord2#20.10 DB10.DWord6#20.10KF DB10.DInt10#20#10
Note:
Note:
|