603,383 active members*
3,855 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2010
    Posts
    33

    Talking SB7 Move Axis by PLC M function

    Hello PLC Masters, I have an issue for you today that is making me pulling my hair off.

    We have one dual channel machine here with a sub that just move the z2 axis until reach one proximity sensor. So the operator executes a function named M58, turn the machine to jog mode and press the Z2+ key, and then the machine moves until the switch.

    The problem is that I'm trying to create a function to do it automatically, the new function is M59, but it just do not work! I put the M function de-codification function as well as the Function 8 to put the machine at fast feed rate, the Z2+ led turns on, the channel is enabled but it just don't move!

    Can you guys please help me by telling just a single function block to get the axis moving by the PLC just executing my M function, the rest I guess that I can handle with my logic that in fact is working to catch the switch signal as well as all safety stuff.

    In other words I just need to know how to tell to the machine to "move, now!" by PMC, the rest I can handle properly already.

    Thank you by the advance,
    Eduardo

  2. #2
    Join Date
    Jul 2010
    Posts
    118

    Talking

    hi,
    the m58 is used by switching to manual mode, effectivly JOG mode.

    M59 in AUTO/MDI mode,
    1. M59 (m-code sub program call, O90xx)
    2. in this program run axis in G31 mode
    3. create "internal" skip in pmc with proxi to stop axis

    have fun

    norbert

  3. #3
    Join Date
    Jan 2010
    Posts
    33
    Hi norbert,

    Can I redirect the switch input to works like the high speed skip? How can I do that? I thought that it was just possible by physically attaching the switch wiring to the HSS input on CNC.

    Thank you very much,
    eduardo

  4. #4
    Join Date
    Jul 2010
    Posts
    118
    Hallo Eduardo,

    phisical wirrring is the best/only way for high performance.

    some time ago i did stumble accross a parameter where one could select a skip signal G-adress to be used from inside the pmc - sorry can't find it now.

    as the machine's original method was done in jog mode, accuracy was not vital, repeatability is needed.

    A.
    i have used in the passed the following metod succesfully;
    1. in level 1, activate an output to operate a small relay on response to your limit switch.
    2. condition this pmc circut to work when you need it, i.e. use #1100(f54.0) from the program to enable/disable.
    3. wire the skip signal through this relay (relay also works where pmc mod's were not possible).
    this way the original wirring is not disturbed.

    B.
    you can also investigate if prm 1008#6 can work for you.(no wirring)

    C.
    there is also the macro way, depending on the application this might also work for you.
    1. pmc = redirect the switch input to G54.0(#1000)
    2. program = format would be,
    WH[#1000EQ0]DO1
    G1G91X1.F1000
    END1
    G90(STOP)
    M99

    question, is this switch moving randomly ?
    if not, then method C with a known position comand followed by IF[#1000EQ1] check will do the trick.

    enjoy

    norbert

  5. #5
    Join Date
    Jul 2010
    Posts
    118
    Hallo Eduardo,
    long story shortend, provided macro B is avaliable, then macro interrupt is the easiest way.
    pmc = redirect input to g53.3
    part program = in M59 program the following;
    O90XX(M59)
    M96P8999
    G1X10000.(PAST SWITCH)


    O8999
    M30

    CHEERS

  6. #6
    Join Date
    Jan 2010
    Posts
    33
    Just to you to have a better idea, it's a lathe with a RAM bar at the seccond channel, this ram bar is mechanically (hydraulic) clamped, so to change the position of this bar the machine should move up to the switch, because there is the position where is possible unclamp the bar and clamp a key, so the operator manually move the Z2 axis to the desired position while the bar is attached to the key, once the ram bar position is OK the operator clamps the hydraulic and unclamp the key (all M codes), the machine is now ready to go. But it depends on the last position of the RAM bar, this is why we have a switch and the Z2 axis position doesn't matter anyways, it's impossible to predict the last adjusted position.

    What I want is to do it automatically, I don't have too much accuracy because we have gaps between the key and bar key slot. I just need to turn on the Z2 motor until the input signal from switch comes in.

    I'll try redirect the switch input to the G53.3 and try to move it with G31, let me see what happens. I'll post the results here.

    Thank you very much my the advance,
    Eduardo

  7. #7
    Join Date
    Jan 2010
    Posts
    33
    OK, it works partially, with the option "C" but the variable #1000 doesn't turns to 1, on the diagnosis shows G54.0 turning to 1 when the machine passes through the switch, but the machine don't stop, because #1000 is every time equal 0, no matter the G54.0 status.

    Can you help me with this? Am I doing something wrong?

    Thank you

  8. #8
    Join Date
    Jan 2010
    Posts
    33
    With M96 I got "Invalid M Code", I guess from PMC, but wasn't M96 supposed to work on CNC side, I mean, need I to decode de M96 function on PMC in order to allow it to work property?

    I already checked the parameter 6003#4 that means the interruption will work with M96/M97. Now I'll try to set some other M function to interruption by setting this bit to 1 and setting parameters 6033 and 6034 to turn on/off the macro interruption.

    I'm also confused because why #1000 doesn't have its state changed by setting the g54.0 at the X12.4 (switch signal) on ladder .

    Thanks,
    eduardo

Similar Threads

  1. Has anyone used the 5th axis function
    By Don C in forum Uncategorised CAM Discussion
    Replies: 12
    Last Post: 10-04-2012, 10:08 PM
  2. Z axis height as a function of Y-axis position..
    By bo.gardmark in forum PCB milling
    Replies: 1
    Last Post: 06-07-2012, 07:55 AM
  3. Y axis cannot move up...
    By rararuru in forum Laser Engraving / Cutting Machine General Topics
    Replies: 9
    Last Post: 11-30-2009, 02:21 AM
  4. All axis will not move
    By SELECT in forum Fadal
    Replies: 4
    Last Post: 09-30-2009, 04:37 PM
  5. function of the Z axis
    By jochesfor in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 8
    Last Post: 11-11-2008, 08:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •