markn

CMP instruction

5 posts in this topic

Hi Guys

How do I enter a comparison instruction in GX Developer v8 

thanks

Share this post


Link to post
Share on other sites

CMP D0 D1 M0

unless you're using an System Q than you schould use the and= 

What's the problem you couldn't find the instruction or how to use the instruction?

Share this post


Link to post
Share on other sites

Gambit,

Thanks for the reply. I have found and studied the instruction and understand how it works.

I enter [ CMP C235 K500 M0] and i get an error.

 

I'll try again. maybe a typo

Share this post


Link to post
Share on other sites

C235 is a Highspeed counter so 32 bits.

You should use the highspeed instructions DHSC .... etc

Share this post


Link to post
Share on other sites

Or DCMP

 

Edited by Ron_S

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