manmeetvirdi
Member
Hi there
Whats the difference between
L 1
and
L#1
??
Whats the difference between
L 1
and
L#1
??
manmeetvirdi said:Hi there
Whats the difference between
L 1
and
L#1
??
L 60000
L L#60000
L#60000
L -1
L L#-1
L D[AR2 said:If you enter
Code:L 60000
the editor will accept it and automatically convert it to the correct form.
Code:L L#60000
entering
Code:L#60000
will not work.
The real significant difference between these instructions comes when you need to enter negative numbers:
Code:L -1
and
Code:L L#-1
results in completely different values being loaded into the accumulator.
I never do something with Double Integers, I know DINT can be processed faster then Reals, but I don't care about that.
RMA said:Oops, that should, of course, be seven significant digits of the mantissa!
Combo said:I never had troubles with calculations
even for syncronisation of drives I do it with reals...
Banker said:Try in the PLC 1,000,000.00 + 0.1
Banker
By the way, depending on the values that you are working with, don't forget that you may be able to get (substantially) better resolution by working with DINTs instead of REALs, since your resolution with REALs is limited to six (or is it seven?) significant digits. The trade-off is that you have to pay close attention to the order in which you do the calculation so as to avoid over- or under-flow. You also need to check for these errors.
Banker said:Try in the PLC 1,000,000.00 + 0.1
Banker