ucdwino

MrPLC Member
  • Content count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ucdwino

  • Rank
    Sparky

Profile Information

  • Country United States
  1. Help with PLS2(887)

    HOLY CRAP! I just found the "transfer to PLC" button in the memory window! I transferred, power cycled, and it WORKS! YEEE HAW! Now I dont know if I should feel happy because it's working, or stupid because I had just assumed that "transfer all" included the transfer of memory settings... Thank you so much guys. And thanks for having patience with helping out a total noobcake. Now to actually get the whole program working as intended! - ill probably be back with some more questions. Thanks again!
  2. Help with PLS2(887)

    Ok, I have changed the startup mode to monitor. Is that a general safety thing, or something that impacts this? I was hopeful that the lack of the second word in D10 was the problem... but that didnt change anything. As for downloading, I have been using the "Transfer to PLC" button and then hitting the "transfer all" button when the transfer dialog appears. Is that not enough? In addition, I also further verified that the driver does work, I used this alternating code To send pulses to the drive at the CPU's clock speed, and it turns as it should! ( I was really happy to see that by the way ) But... then going back to the simple pulse command I get nothing again... no lights on the outputs, no motion. I feel like we are eliminating a lot of things though... Thanks again for the help!
  3. Help with PLS2(887)

    Ok - I have just done a single input button to call the @PLS2 Function. I also input the P_ER contact to switch on output 1000.05 which drives my external LED. The output lights do not come on with a button Press. I have tried it with Pulse port 0 and 1 both. After that, I tried just setting those outputs to true with the press of the same button, and that works for lighting up those outputs, and, in fact when I hit the button to trigger the output to my step pin which is on 100.00, the stepper motor does advance one step each time I hit the button. So hopefully that means that the problem is in getting my PLC to actually use the pulse output... - and not anything with hardware or wiring etc...
  4. Help with PLS2(887)

    Ok thanks. I will switch my button which I use to spoof the laser busy signal to trigger the PLS2 Command. (its closer to the PLC than the machine controls which I cant press AND watch the LED's at the same time) Is it possible that I have a defective PLC? - And I'm in Napa CA.
  5. Help with PLS2(887)

    1) Ok, I have done the P_ER thing. It doesnt trip when I run the code. 2) Yes, I have uploaded the code to the PLC and Power cycled it after the transfer. I have forgotten that in the past, but not every time... 3) Nothing is lighting up on the Output LED's on the pulse ports when I do this. I do get a lit Up LED for the output to fire the laser, and for testing I have that output tied to an external LED, and that also lights up appropriately. This IS a transistor output PLC and those outputs use the same power source as the pulse outs - so all of that is working. 4) I have attatched my code here. Thanks for your help looking at it. While you have it open, I have a feeling I have done a really rookie job setting up the counter. When I simulate the program or put it in run mode and fake the laser responses with a button, I see the "Cap Marked" flag toggle on and off like it is supposed to, but the value of the counter doesnt change... I continue to appreciate the help. As I said before, I have ordered an Omron Servo and Drive which should be here Friday, so if this is a hardware thing, that should resolve any questions there... Once I get the motor moving, the counter working fine, I have to do a jog mode to get the servo into it's initial position... Then this baby is off to the races.. just in time for a million unit order we are processing on the 21st and running 2 shifts a day for a week to get done! Laser Engraver Mk2.cxp
  6. Help with PLS2(887)

    Thanks for the help. I have done all of that, and still no dice. I'm starting to wonder if there is something wrong with my unit. Regardless, Insead of the gecko stepper driver, I have ordered a omron Servo and driver so that I can eliminate any further hardware problem possibilities and I can hopefully use sample programs they have to base my design off of. That's an unwanted thousand dollar upgrade, but thems the breaks. Again, thanks for the help, I sincerely appreciate it. I'll post back once I get the servo installed (and hopefully going)
  7. Help with PLS2(887)

    Correct. It takes one step each time I hit the button when I do that. Obviously, hitting the button 250 times isnt practical, but the point is, when I just set the outputs outside of a pulsetrain instruction, the stepper operates just as it should... (which means it not the hardware) So somehow my instruction is just not telling the pulse output to do it's thing... Thanks for your help. I really do appreciate it! -Tim
  8. Help with PLS2(887)

    Hmm.. I thought you were talking about how in that sample code, it was a "im holding down the button" instead of a run mode state. If that wasnt it, then I dont understand what you meant about differentiated. I might need a more plain-english description of the error. The motion however does not start at all when I invoke the PLS2. I can get it to work if I have an alternate program which merely says "set step output high when I hit this button) - the motor will move then. So the electrical connection works. It is just the instructions for pulse outputs. For the record I also tried PULSE and ACC combinations to similarly failed effects. When the ladders light up green in run mode or when I step trough it in simulation, the PLS2 function does not also light up green - if that indicates anything. Thanks.
  9. Help with PLS2(887)

    That program was just to try to keep things simple - eliminate other errors in the larger program and just trying to get the stepper moving. Perhaps taking it out of context isnt helpful however. Here is a screenshot of the auto-run cycle of the program. I tried to comment everything, but let me describe the function of the machine. This machine laser engraves the top of wine closures. The caps are fed in by gravity and a indexing wheel, driven by the stepper motor in question, grabs them and moves them into position so that the laser mark is centered. There is a manual / auto mode switch (RAS) which switches between positioning mode and auto-run mode. There is a cycle start button (STB) with a latching instruction that will then keep the machine going so long as there are caps available to process. The intent is that the machine will do nothing if there is no cap in the chamber, as detected by a proximity sensor P1, but if there is a cap in the pre-chamber as detected by another sensor P2, it will advance 250 steps to put the cap in position. That is the lower part of the OR conditions for invoking the PULS2 instruction When there is a cap in the chamber, it will send a signal to the laser controller to fire the laser. (FIR) That signal will persist until the laser responds with a signal that it is busy (LBS) The machine needs to not engrave the same cap twice, so I put in a SET function as a flag that the cap in the machine is marked, as soon as the laser says it's busy (has started the mark) When the laser busy signal (LBS) goes back to off, I want the cap ejected - so that is the upper part of the OR conditions for triggering the PULS2 instruction. Either way, if the PULS2 function is called, the flag is RSET to indicate that a new unmarked cap is in the chamber. I sincerely appreciate the help guys. Though I'm new here, I participate in a few other forums trying to help people with my hobby (multi-rotor helicopters) and I have found that if just a couple of suggestions doesn't solve the problems - then it is likely the guy isn't going to get a solution. If that is the case here, I would be interested in paying someone to consult on helping me get this set up properly. Please let me know if you are interested in that since I'm at the point where I'm pretty sure a couple of hours from someone who actually knows what they are doing will replace many many more hours of me banging my head against the wall. Again, thank you. -Tim
  10. Help with PLS2(887)

    Hi guys, I am scratching my head here - and I suspect Im missing something basic. For the record, I'm a business owner who builds his own production machinery - not a trained automation engineer - and while I'm pretty smart, I also accept that I'm a noob and am probably making a really basic mistake. I am using a Omron CP1L-L with 14 points on a pretty simple machine that laser engraves wine closures. Everything is working perfectly except the stepper motor I have a gecko stepper motor drive http://www.geckodrive.com/geckodrive-step-motor-drives/g203v.html wired to the outputs of the PLC. Output 00 goes to the STEP terminal, Output 01 goes do the DIR terminal. The common runs through the power supply (though I jumped the connection to the two COM connections) This is what I understand from the manual to be the wiring for pulse output #0 for my PLC model. If I write a ladder program that sets the state of the pins directly, I can get it to send a step pulse when I hit a button, and change the direction of those single pulses when I throw a switch. - So I'm pretty sure I have the drive wired correctly, and the motor works. (I have the prototype of this machine working with the same stepper drive and an arduino - so I'm pretty confident in the hardware part.) Here is a screenshot of a test program in run mode while I am holding down the button that is supposed to activate this function. The settings for the function in the D memory area took me some time to make sense of, so I'm suspicious that I have something entered wrong there. I have that window open too so you can see them. This is my first time with a "Real" automation platform. I have built a few machines using arduinos and programmed them with text. - but I wanted a more robust and industrial control system for this version of the machine so I am in uncharted territory here. Thanks in advance for your help. I really appreciate it, and I have to say, I have learned a lot on this forum already by reading the other posts and responses. Thanks again, Tim