Modbus Inputs PAC Control

Hi. Now, I am trying to figure out how to go the other way. Take a 4 digit integer and send out the BCD number. For example 9900 as 1001 1001 0000 0000