Jump to content
OMRON Forums

hendraprimasyahputra

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by hendraprimasyahputra

  1. I generate G-code from a CAM software post-processor, in the code there is a G73 which is a peck-drilling secuence for 3-axis milling but it didn't recognized by UMAC.

     

    In this case, is there any recommended G-code post-processor which is good for UMAC ?

  2. Hi,

     

    I tried to run the HMI but i got 2 errors :

     

    The type or namespace name 'PCOMMSERVERLib' could not be found (are you missing a using directive or an assembly reference?)

     

    How can i fix this ?

     

    Thanks

  3. Hi,

     

    Is it the same if i separate the motion program into several parts and upload it in different PROG ?

     

    I got about 225000 line of G-code right now, my plan is to separate them into 20000/PROG. is it possible ?

     

    Thanks

  4. Hi DeltaTau,

     

    I use UMAC for my machine now. Is there a limitation of G-code program size on UMAC ?. I got about 300000 line of G-Code, i tested by put them all on prog 1 and run it. UMAC stop around line 20000. Any suggestion ?

     

    Thanks

     

    For programs that large you will need to use the rotary buffer and spool the program in. PcomServer has drivers for doing this from a windows application.

     

    any other solution ? because i don't have PcommServer

  5. Hi DeltaTau,

     

    I use UMAC for my machine now. Is there a limitation of G-code program size on UMAC ?. I got about 300000 line of G-Code, i tested by put them all on prog 1 and run it. UMAC stop around line 20000. Any suggestion ?

     

    Thanks

  6. [/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

     

  7. Hi,

     

    By using a PMAC Plot, i can gather all motor command and save it in form of .m file to be opened in Matlab. Until now i'm able to plot it in 2D ( Ex : X and Y axis trajectory ). Anyone ever try to plot 3D tool path on Matlab using data gathered by PMAC Plot ?

     

    Thanks

  8. Hi,

     

    the kinematics wasn't active. but i now solved the problem. i was because of Ixx34 ( integration mode ). I set it to 0 and now it's working very well.

     

    Now, i need to test the system by sinusoidal sweep, i found there are a maximum frequency limit which is 225 Hz. Is there any way to increase this maximum testing frequency ?

     

    in some cases the PMAC Tuning Pro didn't plot all the result and for high frequency testing ( >100 hz ) sometimes it fails to plot bode diagram, This makes me have to reduce the sweep time. is it because of the gathering buffer ? Is it possible to increase the gathering data ?

     

    Hope i can get some response soon, Thanks

  9. Hi,

     

    I have some question about PMAC Tuning Pro. Right now i'm trying to tune the controller for piezo actuator. It works for step response. I got problem when i tried the sinusoidal command. It seems that the command it's correct but the output is not giving the same value ( so the actuator didnt response to that command ).

     

    I uploaded the video on this link :

    http://youtu.be/OsNA7YP6i_E

     

    as you can see in the video, i shift the position of the actuator first because it's characteristics which can't contract. i reset the position and after that i went to Tuning Pro. I give 500 cts command. But as we can see it fails to follow eventhough i saw so small trends on the motion. This only happens on sin wave command, but didn't happen to step response command. Any suggestion ?

  10. Hi,

     

    I just reset my UMAC using :

     

    $$$***

    I0..8191 = 0

    P0..8191 = 0

    Q0..8191 = 0

    M0..8191->*M0..8191 = 0

    UNDEFINE ALL

    SAVE

     

    after that i setup my motor using PMAC setup pro. but i found problem with encoder decode. i wanted to use 4x quadrature decode but i seems that its only detect 1x decode. any suggestion to solve this problems ?

     

    thanks

  11. Hi all,

     

    Is it possible to implement high-pass filter or low-pass filter to separate reference trajectory generated by UMAC ?.

     

    Thank you for the help ^_^

  12. Hi,

     

    Finally i managed to have the independent coordinate systems. Here is my code :

     

    close					; close all opened buffer	
    delete gather				; delete unwanted gathered values
    undefine all				; undefine all coordinates system	
    
    &1					; coordinate system 1 X/Y/Z : 0.16 micrometer
    #1->1X															
    #2->1Y
    #3->1Z
    &2					; coordinate system 2 A/B   : 0.003 micrometer	
    #5->1A
    #6->1B
    
    I5 = 2					; allow background PLC program to work
    
    OPEN PROG 1 CLEAR   			; open program 1
    INC					; incremental mode
    INC(R)					; incremental for radius
    CIRCLE1					; clockwise circular interpolation
    F 500					; feedrate 1.6 micrometer/second
    I 625 J 0				; 100 micron radius circular movement
    CLOSE					; close program
    
    OPEN PROG 2 CLEAR                  	; open program 2
    While (1 > 0)				; do forever
     INC					; incremental mode		
     LINEAR				; linear mode
     F 32000				; piezo speed 96 micrometer/second
     P0 = M5003				; get error val from PLC
     P1 = M5007				; get error val from PLC	
     A(P0) B(P1)				; execute command 	
     DWELL 5				; wait for 5 ms for settling
    EndWhile				; end loop
    CLOSE					; end program		
    
    OPEN PLC 2 CLEAR			; open PLC prog
    M5000 = M161*0.16/(I108*32)		; get X-Axis command position
    M5001 = M762*0.15625/(I108*32)		; get X-Axis actual position	
    M5002 = M5000-M5001			; get X error val	
    M5003 = M5002*-328			; set X piezo command	
    M5004 = M261*0.16/(I108*32)		; get Y-Axis command position
    M5005 = M862*0.15625/(I108*32)		; get Y-Axis actual position
    M5006 = M5004-M5005			; get Y error val
    M5007 = M5006*328			; set Y piezo command		
    CLOSE					; close PLC
    

     

    in this case, i need to run the program by using &1b1r&2b2r.

    But after testing this code, i found that i need to control the servo cycle. As you can see prog 2 and PLC program are looping.

    How can i know the loop cycle time ?

    How fast the PLC refresh the value ?

    Which variables i need to change to control the cycle ?

    please guide me on this.

     

    Thank you ^_^

  13. 2. You mentioned that the CMD"#5J=*#6J=*" approach did not work. I'm not sure exactly what you mean by "did not work". If you meant that it didn't do what you had in mind, then I can understand but here is what I understand from your approach:

     

    If i use the CMD"#5J=*#6J=*" approach , the PLC can't loop. I can't regain new value. But if i use M561=P6*(I108*32), it works but i can't control the speed.

  14. It didn't work with #5J=* command, but it worked with M561=P6 setup.

    I don't know why it can't work #5J=* command.

     

    Another question now, because the PLC program always looping and always updating my values ( it is done in very fast ), it makes my actuator vibrates a lot. How can i control the loop time ? For example to make it slow or faster.

     

    Thank you

     

     

  15. I tried this code for my PLC loop. I can view my M572 and M672 on the watch window, but motor 5 and 6 can't jog.

     

    OPEN PLC 2 CLEAR
    P0	= M161/(I108*32)
    P1	= M162/(I108*32)
    P2	= M261/(I108*32)
    P3	= M262/(I108*32)
    P4	= P0-P1
    P5	= P2-P3
    P6 	= P4*-52
    P7  = P5*52
    M572= P6
    M672= P7
    CMD"#5J=*#6J=*"
    CLOSE
    

     

    Maybe wrong syntax or the cycle is too fast. Any idea in this ?

     

    in addition, i also got negative sign value, when P6 and P7 indication negative value. The jog command from the PLC can't work. I need solution on this, thx.

     

    I made a mistake, actually the PLC program was'nt looping, how to make the PLC program to loop ?

×
×
  • Create New...