rcm 4100 io serial port trouble

hey guys im the biggest noob here so if you could just bare with me!
I’m trying to take control of the serial port on this 4100 with little success! I’m pretty new to dynamic C and i cant figure it out. Any help would be greatly appreciated!