bprall Posted August 13, 2020 Share Posted August 13, 2020 Working on the PLC of side of the NC homing button. How does the PLC know which axis the NC is set to jog and is trying to home? The example program just homez three motors as opposed to reading the active axis and using a switch to act on that axis and its associated motor. Link to comment Share on other sites More sharing options...
bprall Posted August 13, 2020 Author Share Posted August 13, 2020 Seems that this is determined by (JogOptions & UI_Axis_X == UI_Axis_X). Is there are reference for all the bit assignments in the JogOptions? Link to comment Share on other sites More sharing options...
Omron Forums Support Posted August 13, 2020 Share Posted August 13, 2020 This section from the Global Includes file "ppnc_ncinterfacedefinitions.pmh" has some masks that set the bits you are looking for. //PowerPMAC NC Jog Options #define UI_JogX1 $00001 #define UI_JogX2 $10000 #define UI_JogX3 $00002 #define UI_JogX4 $20000 #define UI_JogX5 $00004 #define UI_Axis_X 16 // $00000010 #define UI_Axis_Y 32 // $00000020 #define UI_Axis_Z 64 // $00000040 Link to comment Share on other sites More sharing options...
Recommended Posts