CP1L MSKS for counter mode

Resurgance

Member
Join Date
Aug 2015
Location
South Island
Posts
32
Hi, have come up with some code for a high speed optisaw using a CP1L and flourescence detection.
In a previous project I attempted to use multiple CBTL's but never got it working, then used a simpler method to get running at the time.
So I have not been successful yet with interrupts.
- I know power cycle necessary
- have set up PLC correctly, and assigned right inputs as quick for execution condition, encoder for counter mode according to MSKS operands (input interrput 0 for example pertains to interrupt task 140, and input for encoder is 0.04, SV is A532, PV is A536 etc etc)
- I have programmed code according to section 8-1-3 of W516-E1-03.

I am NOT using any MSKS on first cycle, only as example when execution condition is met. Said condition is a physical input, assigned as quick (no overlaps with encoder inputs etc I have double checked - software only so no designated z-phase input)
I have also as per example not included the first MSKS, as the CP1L defaults to diff-UP for counter mode.
Hooked an encoder up to test but no joy.
Tried input intterupt numbers in brackets and cycled power (where it says 100 (or 6))
Any ideas?
Thanks, Stew
 
Got it. Woke up this morning with a hunch. I had actually not assigned the relevant inputs as interrupts in setup (input interrupt 0, 2 and 3 in this case). I assumed that in counter mode it used a standard input. Then I had to remask interrupt after interrupt program had run.
Hopefully in practice this equates to cutting on the mark! Having to rely on VFD rather than servo so not ideal....
 

Similar Topics

Hi everyone! I have an issue with some Omron CP1L-E PLC's. They're connected to get the info from production machines, but I've noticed that...
Replies
2
Views
1,147
Hi! Omron CP1L. CX Programmer. How do I fix so that a CNTRX(548) remembers the count it had before a power failure? I need to know how many...
Replies
3
Views
1,386
Hi! Newbie here... Cx-programmer CP1L PLC NB7 HMI I want to multiply something i by 1,5 in CX-Programmer to get a higher number to use in HMI...
Replies
7
Views
2,197
Hi all I'm currently trying to do some communication between 2 cp1l-EM40dt1-d plcs over ethernet/fins, i have made a routing table and i think...
Replies
2
Views
1,213
Hi all, I've been upgrading some machines recently which involves installing a 10" NB HMI, HUB and a CP1L-E to avail of the built-in ethernet...
Replies
0
Views
1,696
Back
Top Bottom