Simulator for QtPlasmaC

More
25 Aug 2021 05:04 - 04 Feb 2024 17:41 #218673 by phillc54
It is possible to create a sim config from an existing table config provided that the table config was originally created by PnCconf or StepConf by doing the following:

1. Make a copy of the existing config.
2. Edit the [HAL] section of the copied .ini file so it looks like:
HALUI = halui
TWOPASS = ON
HALFILE = </full/path/to>/sim_no_stepgen.tcl
HALFILE = qtplasmac_comp.hal
HALFILE = custom.hal
POSTGUI_HALFILE = </full/path/to>/sim_postgui.hal

3. From the above .ini entries, edit </full/path/to> to be (be sure to change <user_name> to match your user name)

Run In Place Build:
/home/<user_name>/linuxcnc-dev/configs/sim/qtplasmac

Package Build:
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtplasmac

4. Any HOME_SEARCH_VEL, HOME_LATCH_VEL, or HOME_FINAL_VEL settings that are negative will need to changed to positive (remove the negative sign).

You should now be able to run the sim config.

Note: If your config is a converted PlasmaC config then it may (or may not) work by commenting out or omitting the following two lines:
HALFILE         = custom.hal
POSTGUI_HALFILE = custom_postgui.hal


Also noteworthy:

The following parameters must be in the .ini file:

HOME
HOME_OFFSET
HOME_SEQUENCE
STEPGEN_MAXACCEL
STEP_SCALE
STEPLEN
STEPSPACE
DIRSETUP
DIRHOLD
Last edit: 04 Feb 2024 17:41 by snowgoer540.
The following user(s) said Thank You: billykid, tommylight, robertspark, thefabricator03, snowgoer540, fernandosf

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

Moderators: snowgoer540
Time to create page: 0.078 seconds
Powered by Kunena Forum