- Posts: 5713
- Thank you received: 2100
Simulator for QtPlasmaC
- phillc54
- Topic Author
- Offline
- Platinum Member
-
Less
More
5 years 2 months ago - 2 years 8 months ago #218673
by phillc54
Simulator for QtPlasmaC was created 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:
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:
Package Build:
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:
Also noteworthy:
The following parameters must be in the .ini file:
HOME
HOME_OFFSET
HOME_SEQUENCE
STEPGEN_MAXACCEL
STEP_SCALE
STEPLEN
STEPSPACE
DIRSETUP
DIRHOLD
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
Last edit: 2 years 8 months ago by snowgoer540.
The following user(s) said Thank You: billykid, tommylight, robertspark, snowgoer540, fernandosf
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.038 seconds