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.

Description<br />

The neti <strong>function</strong> works on ports 0x50 to 0x5F.<br />

This <strong>function</strong>:<br />

- Receives the answer to a request sent earlier on the network by neto(..)<br />

- Receives an «unsolicited» request sent by a remote station.<br />

Operation<br />

When the neti(..) <strong>function</strong> is called, if the queue does not contain any requests with the same source port as in the call<br />

to neti(..), the monitor returns to the calling programme with the NO_REQ return code «0x6».<br />

If the size allocated for reception of the datagram is sufficient, the request is transferred to the address &datagram and<br />

a return is made to the caller with the OK return code «0x0».<br />

If the buffer size is insufficient, the return is made to the caller with the SMALL_BUFF return code «0x7».<br />

It is possible to wait simultaneously for as many requests as there are source ports (16 answers to requests sent by<br />

neto(..) or «unsolicited» requests).<br />

Return Code<br />

If OK<br />

Code Report message<br />

0x00 OK - Read correct<br />

Error<br />

Code Report message<br />

0x04 Incorrect port number<br />

0x06 No request received for this port<br />

0x07 Buffer too small to store the answer<br />

0x08 Invalid line number<br />

0xFF Not in a background task<br />

REMARK If the return code is 0x06, the neti(..) <strong>function</strong> must be called cyclically until the request<br />

is received.<br />

15 - 36 en-938846/4

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

Saved successfully!

Ooh no, something went wrong!