**CIGAL Reference Manual, Chapter 2 (Commands): COMWRITE** ===== COMWRITE -- Write data to a serial communication port ===== ** usage: comwrite buf [chan]** COMWRITE writes the byte data into a BUF variable and sends it to the communication port specified by CHAN. If CHAN is omitted, the first output port is used by default. BUF can be either a character string variable or a byte array variable (see [[jvs:cigal:manual:chapter2:declare|DECLARE(2)]]). Before writing to a serial communication port it should be configured by setting the [[jvs:cigal:manual:chapter4:com1|COM1(4)]] (or [[biac:jvs:cigal:manual:chapter4:com2|COM2(4)]]) parameters. To read from a communication port use COMREAD (see [[jvs:cigal:manual:chapter3:comread|COMREAD(3)]]). **See Also:**\\ [[jvs:cigal:manual:chapter3:comread|COMREAD(3)]], [[jvs:cigal:manual:chapter2:declare|DECLARE(2)]] [[jvs:cigal|CIGAL Home]], [[jvs:cigal:manual|CIGAL Manual]], [[jvs:cigal:manual:chapter2|Commands List]], [[jvs:cigal:manual:help|Manual Help]]