Help - Can't see the forest for the trees!

More
1 year 1 month ago #334941 by scsmith1451
When I try to execute the attached macro from MDI in GMOCCAPY or AXIS I get the error:

Bad character '<'

Can't find anything incorrect in the file which I have attached. I went so far as to comment out all of the lines and just tried to open a LOG file to see where the error might be, but the error occurs before the file is opened.

An extra pair of eyes would be most appreciated.

Kind Regards,

Please Log in to join the conversation.

More
1 year 1 month ago #334942 by tommylight
Well, something is not right, i can not see the attached file, but if i choose to quote your message, it shows up!
Fro your file (as i have no clue if this is the issue)
<#factor> = 1 (Adjust for metric)
Probably should be
#<factor> = 1 (Adjust for metric)

Please Log in to join the conversation.

More
1 year 1 month ago #334986 by scsmith1451
Don't know why file didn't come through, but I'm pasting it here:

o<auto-xy-zero> sub
<#factor> = 1 (Adjust for metric)
o100 if [#<_metric> EQ 1]
#<factor> = 25.4
o100 endif

#<X-move> = [#<_ini[LASER]laser-offset-x> * #<factor>]
#<Y-move> = [#<_ini[LASER]laser-offset-y> * #<factor>]
#<feedrate> = [20 * #<factor>]

; (Move table to program start)
G91 G0 X#<X-move> Y#<Y-move> F#<feedrate>
G10 L20 P0 X0 Y0 A0 ( Set X/Y DROs to zero )

o<auto-xy-zero> endsub

m2

Looks to me that all of the references are correctly formatted.

Regards,

Please Log in to join the conversation.

More
1 year 1 month ago #334989 by tommylight
Second line does not look correct, see my previous post.
You have a # in the wrong place behind a < , it should be in front of it.

Please Log in to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum