If by scope you mean range, you must set one of the nodes as a Router so that the node that is moving out of range of the coordinator can associated to the router instead.
If you mean how to change the state of the Pin 20 line, that is done using API mode from the Coordinator and issue a Remote AT command.
Yes I mean range, sorry for my english. I don’t want to use a router. I need the relay that is connected to pin20 of the XBee, change of status when out of range, if the relay are in HIGH state to change to LOW.
Can this be done only with the XBee ?, Or I need another component like an Arduino or something similar?