OMRON c200hx command : @cmp, need your help .

machelec

Member
Join Date
Sep 2004
Location
Ningbo , Zhejiang
Posts
13
OMRON PLC C200HX or CS/CJ .
This PLC manual said that CMP(20) command don't support @CMP(20) type .
but I can use CXP3.0 edit @cmp(20) and transfer it to PLC .
PLC execute it normally.
Why ?
Is the manual wrong ?

Thank you .
 
Last edited:
The @ before the command mean that the command will work in one shot.
(raise on)
You should see after you transfer it to your PLC if it work that way.
My guess it will work.
I dont see any reason why it work with other PLCs and not with C200HX.
 
Did you tried if it work on your PLC?
Omron decomentaion is usually well edit.But maybe they have reason for that.I can not see any reason why not.
 
Omron official explanation:

Because of the nature of the common <,=,> flags, in certain situations, unexpected results could occur with the use of @CMP. Therefore to avoid these results we offer thwe folowing recommendations.

Recommendations:

1) Please do not use @CMP. Use only CMP.
2) If you use @CMP, please do not use @CMP after CMP.

Note for Equal flag 25506:
When MOV #0000 Source chanel is executed, this flag turns on. Equal flag of the ladder turns on, therefore, we have to inhibit the output of CMP, when condition is turned on at the moment. The combination and order of ladder program is to be also taken care by knowing the behavior of the flag.
 
Jay

What is the different between CJ1 to CQM1H in this case.
This recommendation is also for CQM1H?
Could you please wide about 25506
 
What is the different between CJ1 to CQM1H in this case.
CV, CS1 and CJ1 handle the @CMP correctly as expected.
C Series (CQM1H, C200HX, CPM, etc. do not handle the @CMP correctly if they immediately follow a CMP.
Could you please wide about 25506?
25506 or the Equal Flag in C-Series PLCs is affected by many instructions. Basically when the result word of an instruction becomes #0000, the equal flag (25506) will turn on.
 

Similar Topics

I can't figure out how CX-Programmer is connecting to this PLC. - C200HX PLC - in the field. - Laptop connected to a network via ethernet cable -...
Replies
3
Views
2,479
Hello, I have a problem with installing Omron DA004 card in the C200HX PLC. In CxProgammer it keeps giving me "Duplex / Special IO Unit...
Replies
2
Views
3,358
Hi..any expert can advise. I have a old or not very old Omron C200Hx-CPU85z series which I plan to upgrade. I know CS1 series is the recommended...
Replies
1
Views
2,324
Hi guys, do you know if Omron Sysmac C200HX peripheral port supports the FINS serial protocol? Thank you Regards Mike
Replies
3
Views
3,198
Hi guys, I have the following setup Omron Sysmac C200HX connected to a HMI panel using serial port. I need to access some data in the PLC...
Replies
12
Views
8,573
Back
Top Bottom