- Posts: 32
- Thank you received: 0
Remapping Question
4 years 7 months ago #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 to join the conversation.
4 years 7 months ago #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.
Code:
o<g16remap> sub
G1 X10 Y10
o<g16remap> endsub
M2
Please Log in to join the conversation.
Time to create page: 0.084 seconds
