kerong
Member
Hello all,
I'm using a Omron CP1H-XA40DT-D programmed with CX-Programmer V9.3.
I have programmed the Plc to move a camera on two axis on top of trays of pieces (disposed on rows and columns). I am able to move along the rows and take pictures of every piece at a fast pace, i also can read the results sent from camera and store the position of bad pieces.
However I'm having problem with outputting pulses in the following ways:
- When moving from Origin to first piece of tray, I have to send the camera on the Y axis first (port 1 pulse + direction method, absolute positioning) and once it's on position issue the comand for X axis (port 0, same method).
- When moving from the end of one row to the beginning of the next one I also have to output pulses on Port 1 first and when done output pulses on port 2.
- If camera is called to return to origin i will also need to send Port 1 first the Port 2
-I am using puls + acc to output pulses.
On the other hand, I have a function block to control the camera manually; and using sped instruction in relative pulse output I have no problem on outputting pulses on both ports at the same time. Neither do I have a problem when defining the origin, both pulse outputs move at the same time looking for the origin.
I would apreciate any insight on how to solve this have been stuck with it for quite a while now, thanks a lot!
I'm using a Omron CP1H-XA40DT-D programmed with CX-Programmer V9.3.
I have programmed the Plc to move a camera on two axis on top of trays of pieces (disposed on rows and columns). I am able to move along the rows and take pictures of every piece at a fast pace, i also can read the results sent from camera and store the position of bad pieces.
However I'm having problem with outputting pulses in the following ways:
- When moving from Origin to first piece of tray, I have to send the camera on the Y axis first (port 1 pulse + direction method, absolute positioning) and once it's on position issue the comand for X axis (port 0, same method).
- When moving from the end of one row to the beginning of the next one I also have to output pulses on Port 1 first and when done output pulses on port 2.
- If camera is called to return to origin i will also need to send Port 1 first the Port 2
-I am using puls + acc to output pulses.
On the other hand, I have a function block to control the camera manually; and using sped instruction in relative pulse output I have no problem on outputting pulses on both ports at the same time. Neither do I have a problem when defining the origin, both pulse outputs move at the same time looking for the origin.
I would apreciate any insight on how to solve this have been stuck with it for quite a while now, thanks a lot!