Jump to content
OMRON Forums

Move until trigger


hendraprimasyahputra

Recommended Posts

[/code]Hi,

 

I got a question about PMAC motion program.

This is mw program for moving X-axis back and forth with 1 second delay

between them.

 

OPEN PROG 1 CLEAR   					
INC						
LINEAR							
F 	10000						
X 	5000					
DWELL 1000						
X 	-5000						
CLOSE	

 

the position of the motor measured by linear encoder stored in the M262 variable.

now, suppose i want to have the same motion but the motor must stop by a measurement from another sensor in different motor. In this case a motor #4.

 

how can i do that ?

right now my idea to have this kind of program

 

OPEN PROG 1 CLEAR   					
INC						
LINEAR							
F 	10000
while(P20 < 5000)          ; 	P20 equal to m462/(I408*32)	
X 	1
EndWhile					
DWELL 1000
while(P20 > 0)						
X 	-1
EndWhile						
CLOSE

 

but i using this program, i found that the speed wasn't correct because the motion was build by the increment of X1.

 

any idea ?

 

Thanks

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Guest
This topic is now closed to further replies.

×
×
  • Create New...