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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12.2 Select Data Rate and Format comf<br />

Syntax<br />

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

comf(portno, txrate, rxrate, format)<br />

portno: Communication port number (0 to B).<br />

txrate: Transmit data rate.<br />

txrate: Receive data rate.<br />

format: Data format code.<br />

Used to select the transmit and receive data rate and the format of a serial line.<br />

Operation<br />

Function comf() allocates the line to the automatic <strong>control</strong> <strong>function</strong> and configures the port. Once the line has been<br />

initialised, it cannot be allocated to another user (CNC <strong>function</strong>, etc.).<br />

The <strong>function</strong> comf(portno, txrate, rxrate, 0) deallocates the line and makes it available for another user.<br />

! CAUTION<br />

The transmit and receive baud rates must always be the same.<br />

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

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

Value of arguments «txrate» and «rxrate»<br />

The values correspond to baud rates.<br />

Value of txrate and rxrate Baud rate<br />

300 300<br />

600 600<br />

1200 1200<br />

2400 2400<br />

4800 4800<br />

9600 9600<br />

19200 19200

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

Saved successfully!

Ooh no, something went wrong!