riandanualdy Posted September 14, 2018 Report Posted September 14, 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 September 14, 2018 by riandanualdy
gtsuport Posted September 14, 2018 Report Posted September 14, 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.
riandanualdy Posted September 17, 2018 Author Report Posted September 17, 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?
gtsuport Posted September 18, 2018 Report Posted September 18, 2018 Use the FVAL instruction. Please refer to manual W483.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now