Cj2m

Don Kennedy

Member
Join Date
Oct 2016
Location
Mooroopna
Posts
3
Hi
I am trying to convert a program from a Omron CQM1H that uses the STIM(69) - interval timer instruction and the @INT(89) instruction as this PLC is no longer available I am changing it to a Omron CJ2M and these instructions are not available. My aim is to monitor the time 0.00 0.01 0.02 0.03 beams have been broken for and post them to a DM area then do a compare. I am counting day old chickens at 60,000 per hour. The CJ2M only has the MSKS instruction and Omron are not sure how the original software was written as they can not believe we can have those times and still scan the program. With CQM1H we can scan at 0.5ms that was unheard of. if someone can help it would be appreciated. Just some info on the MSKS instruction and samples of use utilizing the internal timer.
Thanks Don
 
Thanks for that
But how can I do this, Omron say I can only use the msks instruction and due to it being so quick it is very hard to monitor the interrupts I wish to set up the internal timer and scan this
Thanks Don
 
Use a scheduled interrupt tasks set for 5mSec.
1. Configure the Scheduled Interrupt Interval in the PLC settings for 1.0 mSec.
2. Add a new task to your program and set its properties as Interrupt Task 02.
3. In your main program enable the scheduled interrupt and set its value to 5 using MSKS.

Now any logic contained in the Int 02 task will be evaluated every 5 mSec.

Scheduled Interrupt Time Base.JPG Create Interrupt Task.jpg Enable Scheduled Interrupt.jpg
 
Then simply change the PLC settings from 1.0 mSec to 0.1mSec.
Remember to download the settings to the PLC AND be sure to cycle power for settings to be accepted.
 

Similar Topics

I have PLC Omron CJ2M with OD211 module. I want to use the pulse output and PWM output and this module. But i confuse how to activated this, i...
Replies
0
Views
93
I have a project to control the speed of motor DC using PWM Output on PLC and when im on working i have a several trouble and of of them is the...
Replies
6
Views
195
Hi Everyone, i am modifying an OMRON Cj2M program and have run into an issue. How do you find the timer, counter, registers that have already...
Replies
11
Views
711
Hello all, I am trying to set PLC clock using DATE function. When DATE function is enabled, I can see A351 to A354 change to the register...
Replies
3
Views
376
Hi all, i have a hot water tank (500 gallon best guess) that uses a valve controlled by the plc to fill it. there is an analog 4-20 ma sensor...
Replies
26
Views
2,231
Back
Top Bottom