eduardo.viana
Hi everyone, 
Working along PSM I noticed only integers variables are able to be interchanged between PSM and OpenPLC environment.
I wonder whether is there a way to use floating point variables or should I just make it times 10 on PSM and divide repectively on OpenPLC, if I need one decimal place, for instance.
Reply 0 0
thiagoralves
Yes, PSM only supports 16-bit integers. That's how the OpenPLC drivers are setup. This is similar to having a 16-bit precision analog sensor reading. You will have to come up with your scaling formula to make your number fit in the 16-bit reading, just like any other analog sensor, which in your case could be simply multiplying/dividing by 10 or 100
Reply 0 0
eduardo.viana
Thanks Thiago.....It was so helpful, gotta guide my conversion taking these considerations.
Cheers!
Reply 0 0
Reply