The programming has been very consistent from the 5020 to the current P300 control so most any post for your type of machine will work. Find a post for a machine with the same axis count and it should work.
The main thing that changes between the controls is the system variable mapping and how to access them. This is not your typical programming in a post so you’re probably going to be Okay with the output code.
Best regards,