The problem is that your control does not have the G10 function. The p/s10 alarm refers to an unusable G code.
I see that you have used variables for User Macro B in your example code. If you have this option, and not too many 0T controls came with Macro B, you can achieve the same result as your G10 block by using a simple Macro Statement. If you have this option and don't know how to write the Macro, Post back for an example, but find out first if you have the Option. To determine if you have Macro B, go to the Macro variable page by pressing the Offset Hard Key, then the Macro Soft Key at the bottom of the screen. If the Variables start at #1 (you may have to page back by using the Page Keys) then your control is equipped with Macro B. If the Variables start at #100, then you only have Macro A.