Just wondering, why didn't the following work:

bset &query 1 254 253 0 4 5 6 7 255 255 255
sockudp -k arma $arma.port $arma.ip $arma.port &query

This should set the binary variable &query and make it available for use for the following command.

The thing to note about binary variables is that they are temporary variables. As soon as the routine that uses them is done, they are unset (similar to a /var or '/set -u0').