
adccommunitymod (AutomationDirect) asked a question.
PL question
Created Date: February 18,2019
Created By: trimixdiver1
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I did a move of a real number (r) to a PL, it doesnt show the data after the decimal. What am I missing? Thanks
Created Date: February 18,2019
Created by: trimixdiver1
I did a move of a real number (r) to a PL, it doesnt show the data after the decimal. What am I missing?
Thanks
Created Date: February 18,2019
Created by: BobO
PL is integer. You can use it to move real values, but you either need to cast to real or use PUBLISH and SUBSCRIBE to move data in and out.
As a cast: COPY R0 to PL0:R will write the 32 bit real in R0 to PL0 and PL1 (which are 16 bit integers). Reverse at the other end.
Created Date: February 20,2019
Created by: trimixdiver1
Thank you!