Check what you coded against what I posted for the submit card. Also note something else that is different between your code and mine. And read the manual to find out why.
You also have not made either of the changes suggested in my first post to get XINPARM populated. Otherwise you seem to be using it ok.