CMP Function in GX developer Mitsubishi

hinddhindsa

Member
Join Date
Mar 2013
Location
www.plckart.com
Posts
193
Hi,from A/D module i am importing value using FROM and storing it in D10 register,Next i want to compare it with fix value of 400.But in CMP how can i make this.S1 i keep to D10 and what should be my S2.
 
Hi

Just remember that the cmp uses 3 m bits
1 for less than
1 for equal
1 for greater than

You may want to look at dcmp for double words

Donnchadh
 

Similar Topics

Dear Siemens Experts, Can somebody help me how to convert the ff. code written in S5; L MB 5 L KF +1 !=F = M 20.1 *** It's a compare...
Replies
4
Views
3,165
I need the CMP function that is standard in a 90-70, but I can not find anything comparable in Versapro for a 90-30. Is there another name for...
Replies
2
Views
2,118
Situation: Single [EQU] instruction with single [OTE] on a rung, nothing else/simple. [EQU] operand(A) is a real number data type...
Replies
16
Views
2,601
Hi All, I was wondering what your thoughts are on why Rockwell has this disabled by Default on Series B (Series A this is always enabled I...
Replies
4
Views
2,211
I've recently picked up AB again after spending 5 years on Siemens and noticed a frustration immediately with monitoring of CMP (Compare)...
Replies
6
Views
2,787
Back
Top Bottom