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

More
13 Sep 2025 19:21 #334941 by scsmith1451
Help - Can't see the forest for the trees! was created 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,
Attachments:

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
13 Sep 2025 19:57 - 13 Sep 2025 19:58 #334942 by tommylight
Replied by tommylight on topic Help - Can't see the forest for the trees!
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)
Last edit: 13 Sep 2025 19:58 by tommylight. Reason: more info

Please Log in or Create an account to join the conversation.

More
14 Sep 2025 17:39 #334986 by scsmith1451
Replied by scsmith1451 on topic Help - Can't see the forest for the trees!
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 or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
14 Sep 2025 18:07 #334989 by tommylight
Replied by tommylight on topic Help - Can't see the forest for the trees!
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 or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum