Hi All, I am currently trying to get the "Home" button in PMAC-NC to work. I can currently home motors 1, 2, and 3 from the terminal in the PowerPMAC IDE with the #1..3hm command. The PPMAC source that ships with the NC code comes with a stubbed program that integrators should modify. Here is how I modified it:
open plc HomePlc
Ldata.coord = 1
if (CommandReg == UI_Home)
{
CommandReg = UI_None
abort;
enable;
// Integrator should insert custom homing script here.
home 3
home 1,2
homez 5,6,7,8
// Acknowledge HMI homing process is complete.
send1 "HomeCompleted"
}
close
Any help would be appreciated.