How many times can the xbee s2 non-volatile memory be written to using the WR command. I can't find it in the manual.

I don’t think it’s listed. Most products use wear leveling on their flash to spread out the usage. I wouldn’t be surprised if the Xbee did as well.