Error on startup

More
5 years 9 months ago #194897 by andypugh
Replied by andypugh on topic Error on startup
I think that "ini.z.maxlimit does not exist" is probably the real problem.

At a guess a HAL file is referencing those pins before the module that creates them is loaded. I am not sure which module creates them, though. I would have guessed motion, but they are not in the manpage

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

More
5 years 9 months ago #194913 by snowgoer540
Replied by snowgoer540 on topic Error on startup

andypugh wrote: I think that "ini.z.maxlimit does not exist" is probably the real problem.

At a guess a HAL file is referencing those pins before the module that creates them is loaded. I am not sure which module creates them, though. I would have guessed motion, but they are not in the manpage


I think that's a fairly accurate guess. the maxlimit errors mostly shows up in SIM, but I have seen it once or twice on a live table. It always felt like a timing thing, so maybe we need to delve a little deeper into the order the modules are loaded.

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

More
5 years 9 months ago #194971 by phillc54
Replied by phillc54 on topic Error on startup
I have not seen that error before.

ini.z.max_limit is netted by the handler file as the fourth command of the initialized function. Quick testing has shown that there is no difference whether it is the first or last command.

If I rename it to the wrong pin number then I get the following:
Code:
<commandline>:0: Pin 'ini.z.max_limits' does not exist <commandline>:0: Pin 'ini.z.min_limits' does not exist
but I dont see these messages which are in the first post.
Code:
USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed
or further down:
Code:
waiting for component 'inihal' to become ready......

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

More
5 years 9 months ago #194973 by phillc54
Replied by phillc54 on topic Error on startup
A bit more testing:

In the ini file, if I change:
Code:
SUBROUTINE_PATH = ./:./qtplasmac:../../nc_files/subroutines
to a non existing path:
Code:
SUBROUTINE_PATH = ./:./wqtplasmac:../../nc_files/subroutines
I get this error in terminal:
Code:
emc/task/emctask.cc 69: interp_error: File not open File not open emc/task/emctaskmain.cc 3070: can't initialize interpreter
plus this error from qtvcp:
Code:
Traceback (most recent call last): File "/home/phill/git/linuxcnc-dev/lib/python/qtvcp/widgets/system_tool_button.py", line 106, in _set_user_system_text self.setText(convert[int(data)]) KeyError: 0
so I don't think it is a qtvcp error, just qtvcp's reaction to not being able to load correctly because of some other pre-existing issue.
The following user(s) said Thank You: snowgoer540

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

More
5 years 9 months ago #194979 by dgarrett
Replied by dgarrett on topic Error on startup
Pins like ini.z.max_limit,ini.z.min_limit are created by
task (typ: [EMCTASK]TASK=milltask)
Code:
NOTES The inihal pins cannot be linked or set in a halfile that is specified by an inifile [HAL]HALFILE item because they are not created until milltask is started. The inihal pin values can be altered by independent halcmd programs specified by [APPLICATION]APP items or by GUIs that support a [HAL]POSTGUI_HALFILE. ...


Ref: linuxcnc.org/docs/2.8/html/man/man1/milltask.1.html
The following user(s) said Thank You: phillc54, snowgoer540

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

More
5 years 9 months ago #194980 by phillc54
Replied by phillc54 on topic Error on startup

snowgoer540 wrote: I've only seen it in SIM not in a live table, so it could be a timing thing.


I would have expected the opposite.

In your real table you are using the pmx485 userspace component and in you sim you wouldn't be. I was just thinking that the USRMOT error could be from the pmx485 component.

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

Moderators: cmorley
Time to create page: 0.065 seconds
Powered by Kunena Forum