Simulator for QtPlasmaC

More
5 years 2 months ago #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:
Code:
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:
Code:
/home/<user_name>/linuxcnc-dev/configs/sim/qtplasmac

Package Build:
Code:
/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:
Code:
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

Please Log in to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum