Plotting Bits

Bits can not be plotted directly in RMCTools plots at this time. However, the bits can be converted to a DINT in a user program and plotted. This is done by using the SEL or select function.

     nBit11:=SEL(bits.11,1,0);

Where:
nBit11 is a user-defined DINT variable with the value of the bit to be plotted
bits.11 is any bit but in this case it is bit 11 of the DWORD bits.
1 is the value assigned to nBit if true
0 is the value assigned to nBit if false
It may be necessary to use different values when ploting more than one bit. For instance

nBit0:=SEL(bits.0,1,0);
nBit1:=SEL(bits.1,3,2);
nBit2:=SEL(bits.2,5,4);

This way the bits don’t over write each other and it is easy to see the three distinct traces.