Coming from an Allen Bradley background. I have a value that is 0.0006789 I would like to only display 0.00067. Stripping off any digits after the 5 place past the decimal. How can this be done using DirectSoft with a D0-06DR?
You could try this (assuming you are using floating point):
STR SP1
LDD V2000 (Where the float is stored)
MULR R100000 (Move the decimal out to where we won't lose what we want)
RTOB (Convert to Integer to drop off extra decimal places)
BTOR (Back to Float)
DIVR R100000 (Reverse the multiplication earlier)
OUTD V2002
Note: Floating point is inherently inaccurate and there is no guarantee that the above will work with every number. Trying to represent an infinite series of numbers as floating point is impossible and certain combinations will always show up as more or less digits than you really want.
With that said, you might want to just move it to an integer and have the HMI use implied decimal places to get it to display as you want.
In the numeric display object under 'Number of Digits' play with the 'total' and 'fractional' settings. If your number will frequently get very close to zero then under 'Panal Manager' check 'Disable Exponent Notation' to prevent the switchover.
Don't even bother with trying to process in the PLC if this is only for display.