f I have a s1 Xbee , can I use in mode beacon? and how ?

No it does not support beacon mode.

And in a S2 ?

If you mean by Beacon with respect to 802.15.4 Beacon/ synchronized sleep mode, then the answer would be no.