riandanualdy

memory Compare data RS232

4 posts in this topic

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

 

 

 

Screenshot_24.png

PLC to ek-i.cxp

Edited by riandanualdy

Share this post


Link to post
Share on other sites

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
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

Use the FVAL instruction.

Please refer to manual W483.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now