Main /
Launching Rosetta
(redirected from Main.LaunchingRoseEngineButler)
Understanding this sequence makes most field problems much easier to track down.
The sequence
- The desktop icon (and the Applications menu entry) runs Rosetta_Launch.sh.
- Rosetta_Launch.sh runs Rosetta_Setup/Rosetta_Generate_Local_Ini.py. It first checks the gcode folder for reserved file names (starting with Rosetta, or M100 - M199) and stops if it finds one (see Rosetta_Launch.sh). It then reads this machine's settings from /home/reuben/Documents/RosettaSet_v1.ini and writes these generated files next to their templates:
- Rosetta.local.ini - a copy of Rosetta.ini with the axis/channel assignment, jog speeds, measurement system, and backlash applied, and with its HALFILE / POSTGUI_HALFILE lines pointing at the files below;
- Rosetta.local.hal - a copy of Rosetta.hal with the Mesa card line rewritten (the base card at 10.10.10.10 alone, or both cards - 10.10.10.10 and 10.10.10.11 - when Expansion Box - Connected is ticked, plus the second card's read/write and watchdog lines), each role's block moved to its assigned channel, card and joint number, unassigned roles left out, and the limit jacks, E-stop button and signal tower wiring and the lost-card E-stop added (see Panel Accessories and Mesa 7i92);
- Rosetta_Display/Rosetta_PostGUI_v1.local.hal - a copy of Rosetta_PostGUI_v1.hal, plus the lines for the done/pause beeps and the fault siren;
- Rosetta_Display/Rosetta_Splash.local.ngc - the “Rosetta / ROSETTA” drawing shown in the preview at start-up (preview only - Run skips it).
- It then starts linuxcnc Rosetta.local.ini.
- While LinuxCNC loads, Rosetta_Settings_Restore.py applies the saved scale, PID and velocity values to the HAL pins.
- At shutdown, Rosetta_Shutdown.hal runs Rosetta_Scale_Persist.py, which saves the live values back to RosettaSet_v1.ini.
Key rules
- Never edit the .local files - they are regenerated at every launch. Change RosettaSet_v1.ini (through the Settings program) or the templates instead.
- Everything that Rosetta.local.ini sets (axis assignment, units, jog speeds) takes effect only at the next launch.
- The Settings program only runs while LinuxCNC is not running.
- The generator prints what it did - which cards it loads (and at which addresses), which role is on which channel, which limit jacks, E-stop and signal tower are wired. Run it by hand to see that output:
|
cd /home/reuben/linuxcnc/configs/Rosetta |
If it reports a problem, it refuses to write the .local.hal files and Rosetta_Launch.sh stops, so LinuxCNC never starts with a half-built configuration. For example, it refuses to start with Expansion Box - Connected ticked while the Raspberry Pi's wired connection is still on the old 192.168.1.x network (see Mesa 7i92).
Which card address is used
- The base card is loaded at 10.10.10.10, and the expansion card at 10.10.10.11.
- A machine not yet moved to the 10.10.10.x network (Raspberry Pi wired at 192.168.1.120) is loaded at the card's factory address, 192.168.1.121, so an update can arrive before or after the network is moved with Rosetta_Change_Network.sh.
Roles, channels, and joints
See Axis Mapping.
|
eMail comments to |
