Remapping Question
01 Mar 2022 02:14 #236078
by umfan110
Remapping Question was created by umfan110
I was wondering if someone could point me in the right direction. I am trying to get familiar with G code reampping and thought a good place to start would be to remap G16... well at first I was going to remap G17 but after posting in the Basic Configuration section I was informed it was taken (I miss red the table within the remappable codes section). Anyways this is what I got so far. Within the axis.ini file under RS274NGC I have
SUBROUTINE_PATH = nc_subroutines/
REMAP = G16 modalgroup=1 ngc=G16Remap
within the nc_subroutines file I have a file called G16Remap containing
o<g17> sub
G1 X10 Y10
o<g17> endsub
M2
But when I type G16 in the MDI section I get this error. EOF in file:/usr/share/axis/images/axis.ngc seeking o-word: o<g16remap> from line: 0.
Is there something I am missing? Should I be calling out the G16 subroutine somewhere else?
Thanks !
SUBROUTINE_PATH = nc_subroutines/
REMAP = G16 modalgroup=1 ngc=G16Remap
within the nc_subroutines file I have a file called G16Remap containing
o<g17> sub
G1 X10 Y10
o<g17> endsub
M2
But when I type G16 in the MDI section I get this error. EOF in file:/usr/share/axis/images/axis.ngc seeking o-word: o<g16remap> from line: 0.
Is there something I am missing? Should I be calling out the G16 subroutine somewhere else?
Thanks !
Please Log in or Create an account to join the conversation.
01 Mar 2022 12:44 #236104
by andypugh
Replied by andypugh on topic Remapping Question
I think the file name and the o<name> sub need to match. And keep everything lower-case in filenames and sub names.
o<g16remap> sub
G1 X10 Y10
o<g16remap> endsub
M2
The following user(s) said Thank You: umfan110
Please Log in or Create an account to join the conversation.
01 Mar 2022 21:53 #236131
by umfan110
Replied by umfan110 on topic Remapping Question
Thanks Andy ! Ill do some more testing today. Apologies for the trivial questions.
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds