Setup results in error "Named parameter #<_ini[change_position]z>not defined"

More
22 Dec 2019 16:40 - 22 Dec 2019 18:50 #153044 by RotarySMP
Hi guys,

I finally got motivated to setting up the tool height setter, but am getting an Error. I would appreciate your assistance in trouble shooting this. I made a video on it. It is the set up from Norberts Gmoccapy automatic height setting wiki. If you skip forward to 04:16,you will see the error.



Mark
Last edit: 22 Dec 2019 18:50 by RotarySMP.

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

More
23 Dec 2019 04:52 #153081 by MaHa
The error message is answering your question. Something wrong or missing with following entry in your .ini file. I don`t know if this is case sensitive.

[change_position]
z=

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

More
23 Dec 2019 06:37 #153083 by RotarySMP
Thanks for the input. My ini has the entry Z=140. Not sure what else I should use there?
Mark

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

More
23 Dec 2019 14:12 #153104 by MaHa
Also for myself, I tested, only sim, case sensitivity. Now I can confirm, stanza and variable name in the ini and as well in your routine all must be uppercase letters to access ini file variables.
The following user(s) said Thank You: RotarySMP

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

More
23 Dec 2019 15:21 #153110 by RotarySMP
I just revisited the wiki, wondering if Norbert used lower case. Sure enough, I did a dumb omission... There are two locations needed. I only have copied the first one into my INI. Duh!
The Tool Sensor Section

The position of the tool sensor and the start position of the probing movement, all values are absolute coordinates, except MAXPROBE, what must be given in relative movement.

[TOOLSENSOR]
X = 10
Y = 10
Z = -20
MAXPROBE =  -20

The Change Position Section

This is not named TOOL_CHANGE_POSITION on purpose - canon uses that name and will interfere otherwise. The position to move the machine before giving the change tool command. All values are in absolute coordinates.

[CHANGE_POSITION]
X = 10
Y = 10
Z = -2

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

More
23 Dec 2019 15:55 #153112 by RotarySMP
To the INI, this was now added:
[CHANGE_POSITION]
X = 46
Y = 100
Z = 250

On a tool change, the machine went to those machine coordiates (ignoring the G54 offsets, which is correct), but it doesn't stop there or wait to switch tools. It dived in Z rapid, running straight through the INI [Toolsensor] Z coordinate.

[TOOLSENSOR]
X = 46
Y = 100
Z = 140

I stopped it by touching the tool probe at Z 48 (ABS). I had that laying on the table to fake the touch off manually just to test the behavior,. Touching the probe during that rapid errored out that that probe triggered during a non-probing move (makes sense, it was a rapid).

Any ideas? I was wondering whether I have a format error on the title [TOOLSENSOR], that looks to match the WIKI.
Mark

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

More
24 Dec 2019 02:31 #153148 by MaHa
Did you add the entrys for gmoccapy toolchange to postgui.hal?

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

More
26 Dec 2019 13:12 #153231 by newbynobi
Hallo,

i also think, that the toolchange chain is not in your postgui hal file.
If you want us to check more in detail, please post your config folder.

Norbert
The following user(s) said Thank You: RotarySMP

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

More
27 Dec 2019 14:54 #153283 by RotarySMP
Thanks for taking a look at this Norbert and MaHa. I have attached my Config directory.

These are the HAL entries in my custom_postgui.HAL:
#*********************
# TOOL CHANGE
#*********************
# Hardware
net toolrelease      maho_panel.key.r2c3         <= hm2_5i25.0.7i84.0.2.output-09
net tool-probe-in    motion.probe-input          <= hm2_5i25.0.7i77.0.0.input-13-not

# Gmoccapy Display
net tool-change      gmoccapy.toolchange-change  <= iocontrol.0.tool-change
net tool-changed     gmoccapy.toolchange-changed <= iocontrol.0.tool-changed
net tool-prep-number gmoccapy.toolchange-number  <= iocontrol.0.tool-prep-number
net tool-prep-loop   iocontrol.0.tool-prepare    => iocontrol.0.tool-prepared
net tooloffset-x     gmoccapy.tooloffset-x       <= motion.tooloffset.x
net tooloffset-z     gmoccapy.tooloffset-z       <= motion.tooloffset.z

Mark
Attachments:

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

More
28 Dec 2019 19:04 #153373 by MaHa
If the file MAHO_MH400E.ini is the actual config, calling the correct POSTGUI_HALFILE recommended.

POSTGUI_HALFILE = custom_postgui.hal

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

Moderators: newbynobiHansU
Time to create page: 0.165 seconds
Powered by Kunena Forum