586,567 active members*
3,786 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Haas Machines > Haas Mills > Alarm 527 = NOT EXPECTED OR THEN REQUIRED
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Posts
    0

    Alarm 527 = NOT EXPECTED OR THEN REQUIRED

    I am getting this alarm on my HAAS

    527 = NOT EXPECTED OR THEN REQUIRED - Only one assignment is allowed per block, or a THEN statement is missing. Check macro formatting.

    I can't figure it out but I am new to programming macros

    %
    O9900

    N010 [#7 = #7 - .1 ]
    N015 [#37 = ABS[#26]+ABS[#7]]
    N020 [#34 = 1+FIX[#6 * #37]]
    N025 [#35 = #23/2]
    N030 [#36 = #25 + #35]
    N050 [#43 = #7]
    N055 [#44 = 1 / #6]
    N060 [#45 = #44 * .25]

    N070 G40
    N075 G90 G00 X#24 Y#25
    N080 G43 H#19 Z#7 M08
    N084 [#47 = #35 - #20]
    N085 G91 G01 Y#47 F#9
    N086 G41 D#19 X#20
    N095 G03 X-#20 Y#20 Z#45 R#20 F#9
    N100 G03 J-#35 Z#44 L#34
    N130 G03 X#20 Y-#20 Z#45 R#20 F#9
    N135 G90 G40 G00 X#24
    N140 Z#26 M09
    N145 M99
    %



    Any help would be great.

    Thank you

    -Dru "Cheshire"

  2. #2
    Join Date
    Feb 2009
    Posts
    40
    Are you sure you have macros enabled on your machine?

  3. #3
    Join Date
    Mar 2010
    Posts
    84
    Try it with the brackets removed from the start and end of each expression.

    Where you have:
    N010 [#7=#7-.1]

    Change it to
    N010 #7=#7-.1

    I think that should get you going.

Similar Threads

  1. Optical switch, on when I expected off
    By will gilmore in forum CNC Machine Related Electronics
    Replies: 9
    Last Post: 04-23-2010, 07:49 PM
  2. First PCB, better than I expected
    By astropor in forum PCB milling
    Replies: 16
    Last Post: 12-27-2009, 06:02 PM
  3. calculating expected max cutting force required
    By eloid in forum DIY CNC Router Table Machines
    Replies: 9
    Last Post: 11-02-2007, 12:19 AM
  4. Expected IPM
    By drafterman in forum Open Source CNC Machine Designs
    Replies: 7
    Last Post: 08-20-2007, 01:21 AM
  5. Taig expected accuracy
    By Moesian in forum Taig Mills / Lathes
    Replies: 3
    Last Post: 08-07-2006, 05:58 PM

Posting Permissions

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