Need help, Omron CPM1A connect to rotary encoder

Quiverz

Member
Join Date
Dec 2014
Location
eart
Posts
6
Dear all PLC's master,

I'm trying to connect CPM1A to rotary encoder (Omron E6B2) using PRV with this code (0 0 DM100), but i can't read the value in the memory location. Any suggestion? Help pls
Thanks a lot!🍻
 
1. Please verify your wiring for the inputs on 0,1, 2. You should see the LED lights on the PLC blink for the A, B and Z phases respectfully.
2. Check the PC Setup (DM6642) - High speed counter setting - Input mode (Differential phase input, Pulse and direction, up/down input or incremental) Reset Method - Phase Z, Software reset.
3. Ladder Software - CTBL (63) - Register comparison Table, start comparison
INI(61) - Change PV, start comparison
PRV(62) - read high-speed counter PV, read high-speed counter comparison status, read range comparison results.

Regards,
Garry
http://www.accautomation.ca
 
My LED blinking for phase A and B, but not blinking for the Z.
I'm using CX-programmer 9.5, how do I start the ladder diagram?

this is my email: [email protected]
Thanks Garry!appreciate it
 
CPM1A has been dead for years - use another PLC like a CP1W or CP1H. You cannot even replace the power supply these days. Old technology.
 
Do you need to reset on the z phase? If so this should be blinking. Please check your wiring to the encoder.

What is the value in DM6642 - This is the setup word of the high speed counter.
Example: DM6642 - 0110 - This means the following: High speed counter used (01), Software Reset Only - no Z phase (1), Up/Down Mode (0)

Here is a link for the programming manual:
http://www.scantime.co.uk/_docs/Om/CQM1.pdf
Here is a link for the cx one programmer:
http://www.proenergo.ru/doc_pdf/soft/CX-Programmer.pdf

Regards,
Garry
http://www.accautomation.ca
 
Similar Issue

Hello!

I am thinking about reviving this thread for a while.
I am new to PLC as well, and trying to test E6B2-CWZ6C on CPM1 PLC.
Apparently the LED on the PLC's input where I connect the phase lines (00.00, 00.01, and 00.02) are not blinking at all when I rotated the encoder.
The pulse reading did not appear as well on CX Programmer (there is also a possibility that I set mine wrong)

When I measured the phase output it only gave around 10mV of spike per pulse. Does this mean that the voltage is too low? What is the voltage supposed to be if it is too low?

Screenshot 2016-10-27 11.52.17.jpg
 
Problem Solved! I just realized the encoder uses NPN transistor inside.
I connected COM at the input to 0V, which was wrong. I connected it to 24V and it finally blinked!

Now my next problem is I don't know how to use INI(61), CTBL(63), and PRV(62) as high speed counter functions. Can anyone help explaining in a simple way what each function is for?

I am planning to make a PLC program that lights up a line of LEDs one by one for each encoder's revolution.

Thanks again!
 
Now lets take a look at the next steps:

2. Check the PC Setup (DM6642) - High speed counter setting - Input mode (Differential phase input, Pulse and direction, up/down input or incremental) Reset Method - Phase Z, Software reset.
Look up the following in the manual below: 1-1-3 CPM1/CPM1A PC Setup Settings - High-speed Counter Settings (DM 6640 to DM 6644)

3. Ladder Software - CTBL (63) - Register comparison Table, start comparison
INI(61) - Change PV, start comparison
PRV(62) - read high-speed counter PV, read high-speed counter comparison status, read range comparison results.
Look at section 1-6 CPM1/CPM1A Interrupt Functions of the manual below. The High-speed Counter Interrupts are listed with examples of programming.

http://www.techtrends.ru/docs/omron/sistemy_avtomatizatsii/programmiruemye_logicheskie_kontrollery/kompaktnye_plc/programmiruemyj_logicheskij_kontroller_cpm1a/W228-E1-08_CQM-CPM-SRM_ProgManual.pdf

Regards,
 

Similar Topics

I have a question about SET instruction in Cx-programmer. When condition goes true it is supposed to give value 1. But, my controller is giving 0...
Replies
24
Views
2,284
Hi, I don't have any formal education background with PLC. I am learning PLC by myself. I have CJ2M CPU34 unit and CJ1W-DA021 unit. I would...
Replies
1
Views
1,237
Hey all, I am working on this new project where i am devloping hmi in cx desiner , i have one question if i want a screen which only shows on...
Replies
2
Views
1,722
hello guys I'm having problem in pid in Omron cp1l plc I have program . I'm getting alarm when I execute pid
Replies
1
Views
2,809
Good day all, Newbie here so I'm practising my posting skills. I have a problem with one of the Omron C200HG PLC''s in our plant. This particular...
Replies
0
Views
1,467
Back
Top Bottom