Below is the link to updated tutorial on user toolbar buttons in PlanetCNC TNG software:
Adding user toolbar buttons in PlanetCNC TNG software - Planet CNC