Posted 4 Oct 2019 Hi Guys How do I enter a comparison instruction in GX Developer v8 thanks Share this post Link to post Share on other sites
Posted 4 Oct 2019 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
Posted 4 Oct 2019 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
Posted 4 Oct 2019 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
Posted 5 Oct 2019 (edited) Or DCMP Edited 5 Oct 2019 by Ron_S Share this post Link to post Share on other sites