Posted 14 Sep 2018 (edited) Halo, my name is Riandanu, I connect PLC Omron CP1E to weighing scale, and its done. i think i dont have problem between PLC and weighing scale. And i want to ask about, how to compare value from weighing scale ? example : from the picture you can see value of weighing scale is " ST,+00160.66 g", and i want to compare it with 180 or 150 to give output on to lamp. Thankyou Riandanu PLC to ek-i.cxp Edited 14 Sep 2018 by riandanualdy Share this post Link to post Share on other sites
Posted 14 Sep 2018 There are no ASCII string instructions in the CP1E. Looks like you will need to convert the ASCII string to a Floating Point value (FVAL) then perform a Floating Point Comparison. Hope this helps. Share this post Link to post Share on other sites
Posted 17 Sep 2018 On 9/14/2018 at 6:18 PM, gtsuport said: There are no ASCII string instructions in the CP1E. Looks like you will need to convert the ASCII string to a Floating Point value (FVAL) then perform a Floating Point Comparison. Hope this helps. so if i want to convert D1000 to ASCII string (data is "ST,+00152,03 g") to +00152,03 or 00152,03 what function can i use it? Share this post Link to post Share on other sites
Posted 18 Sep 2018 Use the FVAL instruction. Please refer to manual W483. Share this post Link to post Share on other sites