Why should you have hard coded plate thickness?
For portability between different machines/installations, it would be much easier to use value entered in DRO.
For 1024 screen set it is OEMDro 1001 or 1002, and for Big-Tex screen set it is OEMDro 1151
Attached script is from Big-Tex screen set