paper bin selection

Hi there I am new to C++, and have been left with a statement printing
that selects the bins to print from.

Problem is we are looking at replacing the printer.
The bin pcl codes are different. I want to print to a large capacitiy tray
it has a esc code of <ESC>&15H if I try large DMBIN_LARGECAPACITY
I get nothing, if I use DMBIN_MANUAL I get DC_BINNAME of large capacity tray
but it outputs an escape code of <ESC>&12 which is actually the bypass
I am probably a little slow but all the same confused any help would be

Thank you