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.

15.5 Exchanges With a Remote Station<br />

15.5.1 Send a Request neto<br />

Syntax<br />

15 - 34 en-938846/4<br />

neto (source_port, &datagram)<br />

source_port: Number of the source port.<br />

&datagram: Address of the buffer to be sent.<br />

Description<br />

Sends a request to a remote station. The request is sent on one of the 16 source ports with addresses 0x50 to 0x5F.<br />

Operation<br />

If the source port number is valid (between 128 and 143) when the neto(..) <strong>function</strong> is called and if series 7 addressing<br />

(network, station, port, module, channel) is valid, the monitor:<br />

- sends the request to the destination server and returns to the caller with an OK return code if the transmit channel<br />

is free,<br />

- returns to the caller with the SATURATION return code if the transmit channel is saturated.<br />

If a <strong>programming</strong> error is detected, a return is made to the caller with the return code indicating the error detected.<br />

As many requests can be exchanged simultaneously as there are source ports available.<br />

Return Code<br />

If OK<br />

Code Report message<br />

0x00 Transmission correct<br />

Error<br />

Code Report message<br />

0x01 Buffer too long<br />

0x02 Zero buffer length<br />

0x03 Queue saturated - The 16 buffers are full<br />

0x04 Incorrect port number<br />

0x05 Option not valid for this request<br />

0x08 Line number invalid<br />

0xFF Not in a background task<br />

REMARK The Network, Station, Port, Module and Channel fields correspond to the<br />

Telemecanique Series 7 addressing identifying the request recipient. Refer to the<br />

<strong>manual</strong> on the corresponding network.

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

Saved successfully!

Ooh no, something went wrong!