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.

Programming in C Language<br />

Read an Internal UNITE Answer UNITI<br />

Syntax<br />

Programming error causing a CPU fault<br />

UINT8 UNITI(UINT8 source_port, UINT8 *datagram)<br />

Access to a prohibited address:<br />

- *datagram parameter error,<br />

- *datagram+size outside authorised area.<br />

Send an Internal UNITE Request UNITO<br />

Syntax<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- *datagram parameter error,<br />

- *datagram+size outside authorised area.<br />

16.4.9.4 Managing the Serial Lines<br />

UINT8 UNITO(UINT8 source_port, UINT8 *datagram)<br />

The operation and parameters of these <strong>function</strong>s are the same as for the <strong>ladder</strong> <strong>function</strong>s (see Chapter 12).<br />

Select the Serial Line Driver COMCTL<br />

Syntax<br />

SINT8 COMCTL(UINT8 portno, UINT8 config)<br />

Select Data Rate and Format COMF<br />

Syntax<br />

SINT32 COMF(UINT8 portno, UINT16 txrate, UINT16 rxrate, UINT16 format)<br />

en-938846/7 16 - 13<br />

16

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

Saved successfully!

Ooh no, something went wrong!