The following document details how to use the C2-7000 RS232 document, where it details running Macros (called Presets on the C2-5000), to perform the same tasks on the C2-5000.

Basically, 2 bytes (4 characters) are removed where Output and Window were specified, and a bit in the first byte sent is set low.

C2-5000 Preset Control.pdf

For reference, also see:

RS232 Control over CORIO2 units
RS232 Control over the C2-4000 & C2-5000 Universal Scalers