Jump to content
OMRON Forums

PMAC Panel Pro 2 - Synchronization


vignesh90
 Share

Recommended Posts

I'm relatively new to LabVIEW and PMACPanelPro2 so pardon my ignorance. I move a motor with the "Jog To" button in the Motor Jog Control Cluster. The mechanical action of the button is set to Latch when Pressed.

 

I need to synchronize the motor movement with a data logging operation. I use a 'Save' button to start logging, which is set to Switch when Pressed. I want to start the motor movement 2 seconds after the logging starts. The flow I want is Run VI -> click Save -> wait for 2 seconds -> programmatically click "Jog To" -> Stop VI after motion is complete.

 

How do I go about programming the click action for the "Jog To" button?

 

Uploaded the code 'Force_triggered.vi' here: https://www.dropbox.com/s/qwxq7hdkvgnidfb/Force_triggered.vi?dl=0

 

To explain a little better:

I'm working with an NI DAQ and a Turbo PMAC. I need some sort of a trigger for the Jog. Currently, in the 'Force_triggered.vi' , I use the Motor Status Jog Cluster to trigger saving the data from DAQ.

 

What I want to do is to start logging the data and then automatically Jog the motor, a few seconds after "Save" is pushed.

 

I tried state machine. Uploaded the code 'Force_delay.vi' here: https://www.dropbox.com/s/d5hwzfzl651fb3k/Force_delay.vi?dl=0

 

The 2 second delay seems to generate a DAQ buffer error. Attached a screenshot of the error as well. I've never worked with state machine before, so again, pardon my ignorance.

 

Any help would be greatly appreciated! Thanks!

daq-error.PNG.3607fd3dedb652bfeca8de6c34d014b1.PNG

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...