15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12.5 Read the Status of a Serial Line comreg<br />

Syntax<br />

12 - 10 en-938846/3<br />

comreg(portno)<br />

portno: Communication port number.<br />

Operation<br />

Returns the general state of serial line portno.<br />

! CAUTION<br />

When initialising a line of the CNC processor card (line 2 or 3), it is necessary to call<br />

<strong>function</strong> comreg() in a task %TF.<br />

Return code<br />

Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0<br />

Transmission in progress<br />

Transmission error<br />

Initialisation completed<br />

Transmission stopped (CTS = 1)<br />

Reception in progress<br />

Not significant<br />

Not significant<br />

Monitor buffer full<br />

Image of RTS (1 --> inactive)<br />

Image of CTS (1 --> inactive)<br />

Image of DCD (1 --> inactive)<br />

Image of DSR (1 --> inactive)<br />

Format error<br />

Parity error<br />

Overrun error<br />

Characters available in the buffer<br />

monitor

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!