Java software for contact closure inputs

The control of relays and reading of analog inputs is well documented, but I cannot find any reference to how to include commands to read contact closures on the ProXR expansion. Your manual gives the send and receive bytes but does not show how to write the Java/Html lines to achieve this. Does it use the( Math.floor (Math.random()*1000) followed by cmd=?
If so what are the Java statements?

Hi Mike,

What ProXR expansion are you describing? Can you provide a part number on that board? Is it something like a USCS16 or a AD1216?