how to sent command form coordinator to router in xbee

i am using Xbee pro s2b module. i have sent data from router xbee to cordinator xbee. now i want to sent a command packet from cordinator to router xbee to set a pin high. my coordinator is in API mode. and router is in AT mode. can any one say how to do that.

Use the XCTU’s API generator and the 0x17 API frame type.