Originally Posted by almo0797 Morning Bob. Ive made a copy of the MAC & GPPT files of the default FANUC controller to see what changes I can make to customise them. But I cannot find any values in the GPPT File for the axis limit values for a particular machine. I must admit I have no experience of editing these type of files to control the output to a machine. |
Right, this is a big topic and I will use the X axis as an illustration.
You will not find any ready-made values in the GPP file, what you do is declare some numeric variables in the @init_post of your own such as
global numeric x_axis_upper_limit
global numeric X_axis_lower_limit
then set them with a literal values such as
x_axis_upper_limit = 0
x_axis_lower_limit = -600
Then you have to tell the CAM where your part X axis zero is on the machine (the value you would set with G10), which I did via some Part Option variable set in the MAC file and accessible through the CAM settings for the part.
Then in the GPP file youe create a sub routine to add the values of Xpos (which is generated by the CAM) to the value of X axis zero and compare the result with the limits that you have set up up and if the reult is out of limits flag it up with a message box.
If you are using the demo version, I don't think it allows you to post out G code, so developing this in the post is not really practicable. Can you get your reseller to give you an evaluation key for a while?
The GPP language is a bit similar to BASIC in programming terms. I learnt from experimenting. SolidCAM do a PDF of a manual for programming posts in GPP which you can download from thier website - this is really useful.