Serial Port Reader

Hello everyone: someone can help me to write a basic code for a plugin who read commands send from an external Arduino serial port?
Thank you to all.
Thank you to all.
UCCNC machine control software support forum
http://www.forum.cncdrive.com/