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.

Encoded M <strong>function</strong><br />

for group g<br />

MCODCRg<br />

Response from group g<br />

CRMg<br />

3 - 56 en-938846/8<br />

1 PLC<br />

cycle<br />

Wait for<br />

CRMg<br />

1 PLC<br />

cycle<br />

MCODCRg = <strong>function</strong> code MCODCRg = 0<br />

Figure 3.5 - Encoded M <strong>function</strong>s with response.<br />

Programme continued<br />

REMARK If CRM1 to CRM8 remains high, the part programme is continued after one PLC cycle.<br />

3.8.3.6 Decoded M Functions: %Rg20.L<br />

These <strong>function</strong>s used in part programmes are accessible for read by the automatic <strong>control</strong> <strong>function</strong>.<br />

These <strong>function</strong>s are defined by and known to the system (e.g. axis clamping, spindle speed range, etc.).<br />

The automatic <strong>control</strong> <strong>function</strong> reads the <strong>function</strong> on a bit (%Rg2n.i) assigned to a decoded M <strong>function</strong>.<br />

A distinction is made between:<br />

Modal <strong>function</strong>s<br />

M <strong>function</strong><br />

BEFORE<br />

AXIS<br />

movement<br />

AXIS<br />

movement<br />

M<br />

<strong>function</strong> AFTER<br />

A modal <strong>function</strong> remains stored and enabled during the execution of several part programme blocks, until it is<br />

cancelled.<br />

Example (On group 1)<br />

N100 M3 M40 S1000 M3 and M40 sent to the machine processor, i.e. %R122.0 = 1 and %R121.0 = 1.<br />

N110 X100 Movement on X. %R122.0 = 1 and %R121.0 = 1 remain enabled in the machine<br />

processor.<br />

N120 M5 M5 sent to the machine processor, cancelling M3, i.e. %R122.2 = 1 and %R122.0 = 0.

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

Saved successfully!

Ooh no, something went wrong!