Oncloud9
MrPLC Member-
Content count
7 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Oncloud9
-
Rank
Newbie
Profile Information
- Country Canada
-
UREKA !!! - I got program to work. Thank you very much for your help. Realized I needed to turn off only timer 1 by using force and program advanced to next cycle. Used timer 4 to energize a LOAD NOT stopping bit for timer 1. Used my start bit to SET-RSET the stopping bit.
-
Doing the foxtrot: two steps forward - one step backwards...lol. Used SFT to create a separate start bit for each cycle with push button start as i wanted. Now realize I have to turn off timers 1through 4 and still working on it. I am interested in the solution you have as simpler is always better.
-
Thanks for picking up the transposing of the counter number; sometimes can't see the tree when looking at the forest. Correcting this issue made the counter to do what I wanted. I also agree with the statement about the last use of bit 20.02. I am still trying to figure out how to allow the 4 light sequence to repeat without triggering the 20.02bit. I have tried DIFU and SET-RESET but was unable to solve the problem. I have repeatedly been going back to the manual after each failed attempt. It dawned on me this morning that the solution might involve using MOVE to relocate the start bit for each subsequent cycle one bit address to avoid duplicate start address and permit the push button start. Wish me luck.
-
I have attached the file. motorsimulate.cxp
-
I am a high school teacher and I am working to learn how to program using CX Programmer. I have CMP2C 20cdr-d PLCs. I am writing a program to use a sequence of 4 flashing lights to simulate energizing the fields in a stepper motor and using a counter to stop the sequence after 9 cycles. I programmed a start switch with a hold-over latch to begin the sequence and have programmed the CNT output to energize a LOAD NOT stop bit in each run. The counter counts down correctly to 0 but doesn't change the status of the stops. The start work bit turns on the first light and initiate the first timer. The timer correctly changes the LOAD NOT bit to turn off the first light and turns on the next rung. I have placed the sequence stop LOAD NOT bit in the start rung and in series with the timers on each rung. My final rung(excluding the end) uses the final timer output to cycle back to the first light in sequence. It does have the LOAD NOT bit addressed to the counter to turn off the start bit. There are two clues that I believe are significant but I have been unable to figure out a solution. The program starts immediately upon the RUN without the push button input and the counter doesn't stop the when O is reached. This tells me I have a loop. I tried removing the latch in the start bit rung but then needed to hold the push button for the program to work. How else might I initiate and stop the light sequence? Thank you for your help.
-
CX Programmer. Button for turning on and off one light
Oncloud9 replied to theshadowscome2's topic in CX-Programmer
That did exactly what I wanted. I will be reading up on differentiate function to better understand why this worked. Thankyou. -
CX Programmer. Button for turning on and off one light
Oncloud9 replied to theshadowscome2's topic in CX-Programmer
I am new to programming PLCs and have been working through different scenarios to develop problem solving and programming skills. I have tried the different options shown here and they do not work as I would expect: I must depress the limit switch 1-3 times to get the light to turn on or off. I am looking for a solution that would reset the light on or off and hold it in that condition with each push of the limit switch. I am using cx programmer ver 9 and a cpm2c PLC. What am I missing?