With the PAL2020 reform, some of the commands in the PAL coding were changed. The commands were changed so that programs written after PAL2008 or PAL2012 will no longer run and lead to any error messages in the newer PAL2020 simulators (or PAL2020 C/Y or PAL2020 3+2). This means that you have to rewrite the program blocks almost completely – and that takes time.
A faster way to do this is to use the “Find/Replace” trick:
This trick works when “translating” PAL2008 or PAL2012 commands to PAL2020, because there is a simple mapping between old and new here. Below we will briefly touch on how you can rewrite the cycles more easily. You need this, for example, for the piercing cycles in turning, which are still called G86 or G88, but have many new or changed cycles.
Open the program, which you have already programmed in an older PAL coding, in the “PAL2020” mode. You will then get the following message: “The NC program is faulty!” Delete this message by pressing “F10”. The last block that does not correspond to the PAL2020 coding is now marked in the editor. In the example (exercise program “LAGER3” from the workbook “Plane Swivel”): “N65 G17 CR180 AR90”. Here (and in many other places in the program) G17 must be replaced by G15.
Now select the “Search/Replace” function using “F1” and enter “G17” in the “Search for” field and “G15” in the “Replace with” field:
Accept the dialogue box with “F10” and in the whole document “G17” will be replaced by “G15”.
Subsequently, in our example, the line “N45 G48 G40 R10 Z0” is marked as incorrect, because after PAL2020 the commands for tangential approach and departure have also changed. Replace them according to the same principle: “G48 G40 R” becomes “G40 G46 RR”. And then “G41 G45 D” = “G41 G45 DL”.
For the training program “LAGER3″ all necessary replacements are done with it, and you can use ” F7 Editor” to switch back to the “guided mode”. There you can simulate the program using “F9” and finally save the changed program with for example the name extension “2020”.
A complete table with a comparison between ” PAL2008/PAL2012″ and “PAL2020” (as of summer 2022) can be found at the very bottom of this post.
This is not quite as simple as the PAL commands. But with this little trick you will surely save some effort:
Start by commenting out the “old” cycle blocks in the editor. Then program the cycle blocks again in the guided mode (“F7 Editor”). Note that commenting out changes the line numbering (which affects jumps with G23), since pure comment lines have no line numbers. To avoid this, write the previous cycle as a comment after a regular (innocuous) NC block. This will then look for example like this:
N28 M1 ; G86 X60 Z-55 ET54 EB6 RO-0.5
After you have changed the cycle set, just delete this comment again.
|PAL2008/PAL2012||PAL2020||Meaning||Where is it found?|
|G41 G45 D||G41 G45 DL||Linear tangential approach||Milling and Turning with driven tools|
|G42 G45 D||G42 G45 DL||Linear tangential approach||Milling and Turning with driven tools|
|G40 G46 D||G40 G45 DL||Linear tangential departure||Milling and Turning with driven tools|
|G41 G47 R||G41 G46 RR||Tangential approach on a quarter circle||Milling and Turning with driven tools|
|G42 G47 R||G42 G46 RR||Tangential approach on a quarter circle||Milling and Turning with driven tools|
|G48 G40 R||G40 G46 RR||Tangential departure on a quarter circle||Milling and Turning with driven toolsn|
|G17||G15||Svivelling and Resetting the machining level||Milling Level selection|
|G17||G15 G17 IP3||Level selection face end with virtual Y axis||Turning with driven tools|
|G17 C||G15 G17 IP0||Level selection face end with polar coordinates||Turning with driven tools|
|G17 Y C||G15 G17 IP5 CM||Level selection face end with real Y axis||Turning with driven tools|
|G18||G15 G18 TURN||Level selection for Turning||Drehen mit angetr. Werkzeugen|
|G19 X||G15 G19 IP1 DM||Level selection surface area with virtual Y axis||Turning with driven tools|
|G19 C||G15 G17 IP0||Level selection surface area with polar coordinates||Turning with driven tools|
|G19 Y X||G15 G17 IP5 DM||Level selection chord area with real Y Axis||Turning with driven tools|
|G86||M1 ; G86||Radial recessing cycle||Turning, not automatically “translatable”, therefore commented out here with M1 ;. The cycle must then be reprogrammed.|
|G88||M1 ; G86||Axial recessing cycle||Turning, not automatically “translatable”, therefore commented out here with M1 ;. The cycle must then be reprogrammed.|
You will find more tips in the upcoming newsletters.
You have questions? Contact our experts using the contact form below.
Do you have any questions?
Our experts are at your disposal. We look forward to your inquiry!
This might also be of interest to you
New edition workbooks for PAL2020. In 2 months it will be Christmas, but before we settle down comfortably on the sofa with cookies, we still have a PAL exam coming up. To help you prepare for…
This week's topic in KELLER.Academy was "Basics of DIN/PAL Programming with SYMplus™". We had 5 wonderful visitors for this course - Mr. Lattwein and Mr. Riedinger from the Gewerbliche Schule Ehingen…