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.

Exchanges by Protocol<br />

Transmission of a Blocking Message<br />

After sending a blocking message «$11», the CNC <strong>function</strong> goes on wait for an acknowledgement from the automatic<br />

<strong>control</strong> <strong>function</strong>. The CNC retransmits the message every 10 s and the part programme remains on wait until the write<br />

request indicating the acknowledgment is received.<br />

Transfer Mecanism<br />

The message «$11 «Message» LF» is sent to the automatic <strong>control</strong> <strong>function</strong> and the part programme is on wait.<br />

The message is then retransmitted every 10 s to the automatic <strong>control</strong> <strong>function</strong> until the automatic <strong>control</strong> <strong>function</strong><br />

sends a «WRITE OBJECT» request with segment 226 = 1 (acknowledgement without CNC release).<br />

The answer is sent by a «WRITE OBJECT» request with segment 224.<br />

The automatic <strong>control</strong> <strong>function</strong> acknowledges the message by sending a «WRITE OBJECT» request with segment<br />

226 = 2 (acknowledgement and release of the CNC).<br />

Release of the CNC allows continuation to the next block and retrieval of the answer by <strong>function</strong> $11 programmed in<br />

a parametric expression of the type «Ln = $11.<br />

15.4 Programming the General Request Function<br />

15.4.1 Send a Request unito<br />

Syntax<br />

unito (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 server on the 16 source ports with addresses 0x30 to 0x3F.<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 />

0xFF Not in a background task<br />

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

15

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

Saved successfully!

Ooh no, something went wrong!