Ok,look!I have got an input to the plc,as an integer between 27648 and 0.Then I convert this number into an integer,in a way that at the end shows me the weight of something I measure!Till now everything is ok.But from th plc I can read only integers,lets say 20 ,21!I am trying to find a way to represent the weight not as an integer but as a real!I have found DTR!Does it work?I am writing the code that converts the number between 27648 and 0 to an integer.
L PIW 756
T MD 10
L 100
L MD 10
*D
L 27648
/D
T MD 50
Thanks