This experience from my working when you write the program if you don't need to show you program to everybody you can wirte ladder like this
I use this model Omron C200HE for do the protect CPU
-Use AR 10.01
-Instructions Function 49
-In the function 49 you can create password
-This function 49 will be create in first rung in you program
See More Video
PLC