. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 1 Hour Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 2,966. Received thanks 368 times, giving thanks to others 8 times.
    Quote Originally Posted by Chaz View Post
    User Manual of Macro(V2.2).pdfCustom macro program instruction.pdf

    PAUS100 Pause 100ms
    STAF(Unclamp Turret!) ???
    OUT+M63;unclamp Trigger Unclamp
    WAT+X06;T07,position of unclamp Wait for input X06 to become high
    STAF(Rotate & Select Tool!) Display message
    OUTPY18RY19 Activate outputs Y18 or Y19 depending on nearest tool rotation direction
    CASET1+X00-X01-X02-X03 These are simply a set of CASE statements, and the code simply runs until it gets a match on location
    CASET2-X00+X01-X02-X03
    CASET3+X00+X01-X02-X03
    CASET4-X00-X01+X02-X03
    CASET5+X00-X01+X02-X03
    CASET6-X00+X01+X02-X03
    CASET7+X00+X01+X02-X03
    CASET8-X00-X01-X02+X03
    OUT-Y18-Y19 Deactivate Y18/Y18 outputs
    PAUS50 Pause 50ms
    STAF(Clamp Turret!) Display message
    OUT-M63;clamp Re-clamp turret
    WAT+X07; T08,position of clamp Wait for input X07 to become high
    TS(0)=TAIM Tool number on the spindle = value passed by the T command
    CURTS=TAIM Current tool set number = value passed by T command
    STATUSINFO(Tool Change is Finished!)
    PAUS300
    DISP Refresh tool status on main interface
    RETURN




    Explanation.

    M63:output for unclamp turret
    reset for clamp turret

    +T: CW Rotation_Turret
    -T: CCW Rotation_Turret


    T07: Input, Position of unlock turret
    T08: Input for detecting position of lock turret
    Now I've seen the programming manual, I've added comments to the code.
    Looks like the turret simply spins until there is a location match, so the turret position never actually gets read in out with a tool change command.
    Avoiding the rubbish customer service from AluminiumWarehouse since July '13.

  2. #2
    Chaz's Avatar
    Lives in Ickenham, West London, United Kingdom. Last Activity: 1 Week Ago Has a total post count of 1,653. Received thanks 115 times, giving thanks to others 71 times.
    I'm going to rewrite the code and take out all the stuff which is clearly not needed, maybe that allows the code to be read for the location.

  3. #3
    Chaz's Avatar
    Lives in Ickenham, West London, United Kingdom. Last Activity: 1 Week Ago Has a total post count of 1,653. Received thanks 115 times, giving thanks to others 71 times.
    I'm using M69 output to enable the Stop Solenoid.

    PAUS100
    STAF(Rotating Turret!)
    OUT+M63;unclamp
    STAF(Rotate & Select Tool!)
    CASET1+X00-X01-X02+X03
    CASET2-X00+X01-X02+X03
    CASET3+X00+X01-X02+X03
    CASET4-X00-X01+X02+X03
    CASET5+X00-X01+X02+X03
    CASET6-X00+X01+X02+X03
    CASET7+X00+X01+X02-X03
    CASET8-X00-X01-X02+X03
    PAUS50
    STAF(Location Found, Lower Turret!)
    OUT+M69
    STAF(Stop Engaged!)
    PAUS250
    OUT-M63
    OUT-M69
    TS(0)=TAIM
    CURTS=TAIM
    STATUSINFO(Tool Change is Finished!)
    PAUS300
    DISP
    RETURN

Thread Information

Users Browsing this Thread

There are currently 5 users browsing this thread. (0 members and 5 guests)

Similar Threads

  1. Has anyone got any experience of SheetCNC or UK-DIY CNC?
    By OceanMachine in forum Gantry/Router Machines & Building
    Replies: 10
    Last Post: 30-04-2021, 03:59 PM
  2. anyone had any experience of these cl motors
    By alboy in forum Stepper & Servo Motors
    Replies: 1
    Last Post: 21-08-2018, 11:23 AM
  3. Anyone had experience with one of these Coolubricators...
    By Wal in forum Swarf & Chip Management
    Replies: 4
    Last Post: 06-04-2014, 02:16 PM
  4. Anyone had experience with one of these Coolubricators...
    By Wal in forum Marketplace Discussion
    Replies: 0
    Last Post: 06-02-2014, 01:07 AM
  5. EXPERIENCE: XYZ Machine - My Experience
    By David Maybury in forum Trading Experience & Feedback
    Replies: 0
    Last Post: 03-12-2012, 11:04 AM

Bookmarks

Posting Permissions

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