Hurricane (Customer) asked a question.

Disclaimer, I do not know much about PLC’s, and am completely stuck on how to proceed, so any help is appreciated! Please see the details below for the task on hand.

I have an Allen Bradley control logix PLC connected to a Keyence IV2 sensor. The ladder logic should automate the following steps:

1.     Tell the sensor to run

2.     pull the trigger to take the image.

3.     If the overall position of the image is equal to or greater than 80

a.     Continue or

b.     Send a fail message or retake the image if less than 80

4.     Once the image is => 80, the sensor should stop running.

5.     the program number (what number of image we are on) should increase by one

6.     Now that we are on the next image, the same steps should be taken.

 

These steps should be able to repeat about 15 times. It did not seem that the ladder logic needs to be that complex, but I guess I was wrong. The only way I can get the steps to execute is when I use the controller tags and change the value of the corresponding tags from 0 to 1. I also cannot figure out how to increase the program number by one each time, since they are all DINTs.


  • adccommunitymod (AutomationDirect)

    This community is for Automationdirect.com related products. Therefore, to get your question answered more quickly I suggest post your question over at www.plcs.net/

     

    They have a more broad based forum that includes Allen Bradley related questions.

  • Durallymax (Customer)

    I don't have RS5k handy, but it should be pretty simple. I don't like latches personally but you could use an ONS on the rung to enable sensor with an OTL , ONS on the rung after trigger with an OR if image is LES than 80, to take Pic. Image GEQ 80, UNL sensor, CTU to increment DINT for image number. To avoid the latch just use a seal and break it with some sort of success bit or when image is GEQ 80.

    Few things that are unclear, is the DINT where 80 ends up reset to 0 elsewhere or do you need to MOV 0 into it each time the image is taken? If you need to, add that as a last rung that when that DINT is GRT 0, MOV 0 into itself.

    Does this continue automatically taking each picture or is the trigger required each time?

    I'd second the other forum rec also, lots of RA folks there.

    Expand Post
  • z28z34man (Customer)

    Would it be possible to share your program? I have quit a bit of experience with logix 5000 but made the switch to productivity some time back and prefer the productivity series now.

    • Hurricane (Customer)

      I think I could share it with you. Can I have an email to send it to?

      • ADC Community_02 (Automationdirect.com)

        You can send him a private message by going to the drop down by your nickname and selecting "my messages", then put in their username.

        messages