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.3.11 «MESSAGE READ» Request<br />

The CNC <strong>function</strong> sends this request at its own initiative to the automatic <strong>control</strong> <strong>function</strong> after instruction «$1» or «$11»<br />

in the part programme being executed.<br />

Two types of messages are sent by the CNC server:<br />

- nonblocking messages «$1 «Message» LF»,<br />

- blocking messages «$11 «Message» Lf».<br />

The automatic <strong>control</strong> <strong>function</strong> receives the message sent to it by the monitor on ports 0x10 to 0x17 (axis groups 1<br />

to 8) using the uniti() <strong>function</strong>.<br />

Request format<br />

Number of bytes<br />

contained in the<br />

«DATA-SPECIFIC» field<br />

Message contained in<br />

the part programme<br />

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

REQUEST CODE<br />

(1 byte)<br />

0xFC<br />

OBJECT-ADDRESS<br />

(1 byte)<br />

DATA-SPECIFIC<br />

CATEGORY<br />

(1 byte)<br />

0x06<br />

DATA-LENGTH<br />

(1 byte)<br />

Transmission of a Nonblocking Message<br />

This request does not wait for an answer from the automatic <strong>control</strong> <strong>function</strong>. It may however be associated with<br />

another request initiated by the automatic <strong>control</strong> <strong>function</strong> which is used to acknowledge the unsolicited data. The<br />

mechanism used to wait for the acknowledgement is described below.<br />

The instruction «Ln = $1» programmed in the part programme is used to retrieve an answer from the automatic <strong>control</strong><br />

<strong>function</strong>.<br />

Transfer mechanism<br />

The message «$1 «Message» LF» is sent once to the automatic <strong>control</strong> <strong>function</strong>. The part programme then continues<br />

without waiting for an acknowledgement.<br />

The answer is transmitted by a «WRITE OBJECT» request with segment 224. The value of the object is stored by<br />

the CNC <strong>function</strong> until it is read by the part programme.<br />

The part programme retrieves this value by <strong>function</strong> $1 programmed in a parametric expression of the type «Ln = $1».<br />

If no value is sent or if the last value sent was already acknowledged, the part programme goes on wait for a new write<br />

of segment 224.<br />

For read, the CNC sends back the last value sent to it if it is still stored, i.e. if it has not yet been retrieved by the part<br />

programme. Otherwise, it sends the one’s complement of this value.<br />

REMARK An attempt to transfer a message from a part programme to the automatic <strong>control</strong><br />

<strong>function</strong> cancels storage of a previous write of segment 224 on the axis group<br />

considered.

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

Saved successfully!

Ooh no, something went wrong!