Announcement

Collapse
No announcement yet.

Confused

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by Ion View Post
    Can I get a bit of a breakdown?
    Lets view your machine as being 20 stations long.
    We will assign a bit (C coil) for the status of each station.
    (I am also making the assumption that the book and cover come together at B61)

    Code:
    --Empty Registers--
    
    B52>  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    --Here is what happens when B52 turns on when B31 is on--
    (B60 is not on, so we know there is no cover at position 13)
    (C18 is not on, so we dont put the book together)
    
    B52>  1   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    --Here is what happens when B52 turns on when B31 is on again--
    (B60 is not on, so we know there is no cover at position 13)
    (C18 is not on, so we dont put the book together)
    
    B52>  1   1   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    --Here is what happens when B52 turns on when B31 was NOT on--
    (B60 is not on, so we know there is no cover at position 13)
    (C18 is not on, so we dont put the book together)
    
    B52>  0   1   1   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    --Here is what happens when B52 turns on for the 12th time when B31 is on--
    (B60 is not on, so we know there is no cover at position 13)
    (C18 is not on, so we dont put the book together)
    
    B52>  1   0   1   1   1   1   1   1   1   1   1   1   0   0   0   0   0   0   0   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    --Here is what happens when B52 turns on for the 13th time when B31 is on--
    (B60 is on, so we know there is a cover at position 13) So we leave C12 ON
    (C18 is not on, so we dont put the book together)
    
    
    B52>  1   1   0   1   1   1   1   1   1   1   1   1   1   0   0   0   0   0   0   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    --Here is what happens when B52 turns on for the 14th time when B31 is on--
    (B60 is NOT on, so we know there is no cover at position 13) So we RST C12
    (C18 is not on, so we dont put the book together)
    
    B52>  1   1   1   0   1   1   1   1   1   1   1   1   0   1   0   0   0   0   0   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    
    --Here is what happens when B52 turns on for the 15th time when B31 is on--
    (B60 is on, so we know there is a cover at position 13) So we leave C12 ON
    (C18 is not on, so we dont put the book together)
    
    B52>  1   1   1   1   0   1   1   1   1   1   1   1   1   0   1   0   0   0   0   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    Now we Fast Forward for 4 more normal cycles 
    --Here is what happens when B52 turns on for the 19th time when B31 is on--
    (B60 is on, so we know there is a cover at position 13) So we leave C12 on
    (C18 is on, so we can put the book together)
    
    B52>  1   1   1   1   1   1   1   1   0   1   1   1   1   1   1   1   1   0   1   0
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    --Here is what happens when B52 turns on for the 20th time when B31 is on--
    (B60 is on, so we know there is a cover at position 13) So we leave C12 on
    (C18 is NOT on, so we don't put the book together)
    
    B52>  1   1   1   1   1   1   1   1   1   0   1   1   1   1   1   1   1   1   0   1
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    
    --Here is what happens when B52 turns on for the 21st time when B31 is on--
    (B60 is on, so we know there is a cover at position 13) So we leave C12 on
    (C18 is on, so we can put the book together)
    
    B52>  1   1   1   1   1   1   1   1   1   1   0   1   1   1   1   1   1   1   1   0 
         C0  C1  C2  C3  C4  C5  C6  C7  C8  C9  C10 C11 C12 C13 C14 C15 C16 C17 C18 C19
         /\                                               /\                      /\
         B31                                              B60                     B61
    So we see that all you need to monitor, is C12 so you can RST it if there is no cover, and monitor C18 to know if there is a book AND a cover ready.
    Does this help?
    Circumstances don't determine who we are, they only reveal it.
    Jason Wolthuis

    Comment


    • #32
      I am getting the idea. I tried the shift register program but the machine did not turn off when it missed a cover.

      Comment


      • #33
        Ion,

        Can you open a data view, turn all status on, type in the first bit in the shift register, enter, click your cursor where you just typed, then ctrl/enter untill all of the bits in the shift register are entered.

        This should show the status of the bits in the shift register. Now we need to test run the machine (slow if possible).

        Report back what you find.
        PERCUSSIVE MAINTENANCE: The fine art of whacking the devil out of an electronic device to get it to work again.

        Vaughn

        Comment


        • #34
          Also, a short video of the machine in action can go a long way. If you can do it, just get a shot of each of the three sensors so we can get an idea of the flow/timing.
          Circumstances don't determine who we are, they only reveal it.
          Jason Wolthuis

          Comment


          • #35
            Ok, I rewrote the program with the SR and followed Milldrone's example. I also took some videos, 3 in all. The first shows how the books go under a cover where B31 (BOOK PRESENT) is and then the books go down the line.

            The next video shows the books coming down from B31 and meeting up with the book covers, At the end of the video you will see a vacuum assembly sending covers down the line. The coil for that vacuum is NC and when B31 is flagged it opens up the coil since vacuum is on all the time.

            The last video starts with the cover feeder moving covers along and on the path. About 5 feet from where the covers leave is B60 then i follow the covers along and you should see a photo eye that says B61 after a glue station.

            Below is a screen shot of the program and the three aforementioned videos.







            Comment


            • #36
              Originally posted by Ion View Post
              Ok, I rewrote the program with the SR .
              All of the C bits appear to be off, do they change state when a book and cover are feed into the machine?

              Presuming the machine is working correctly, does C114 turn on at the moment that the cover arrives at X4?

              I'm curious about the pulses per minute and the duration (on time) of the cam prox.
              PERCUSSIVE MAINTENANCE: The fine art of whacking the devil out of an electronic device to get it to work again.

              Vaughn

              Comment


              • #37
                Register

                I too noticed the register in the data is not moving. What am I doing wrong?

                Comment


                • #38
                  Could you please zip and post your entire program that is currently running, so that we can see what is going on?
                  I have spent a while looking through screenshots and attempting to piece it all together, and I cannot even get an I/O list to match up.

                  To zip your program:
                  From DSoft click File>>Save Project As.
                  You then need to browse to your desktop (or somewhere you know you can navigate back to), and Create a new folder there.
                  You can save the project in the new folder.
                  Using Windows Explorer navigate to the folder you just placed the project in and right click it.
                  Click Send to>>Compressed (zipped) folder.
                  You can then post that folder here on the forum.
                  Circumstances don't determine who we are, they only reveal it.
                  Jason Wolthuis

                  Comment

                  Working...
                  X