You are on page 1of 2

Basic Functions

Examples

Examples

Activation of the workpiece counter $AC_REQUIRED_PARTS:


• MD27880 $MC_PART_COUNTER = 'H3'

$AC_REQUIRED_PARTS is active
Display alarm for: $AC_REQUIRED_PARTS == $AC_SPECIAL_PARTS
Activation of the workpiece counter $AC_TOTAL_PARTS:
• MD27880 $MC_PART_COUNTER = 'H10'

• MD27882 $MC_PART_COUNTER_MCODE[0] = 80

$AC_TOTAL_PARTS is active; the counter is incremented by the value 1 with each M02.
$MC_PART_COUNTER_MCODE[0] has no significance.
Activation of the workpiece counter $AC_ACTUAL_PARTS:
• MD27880 $MC_PART_COUNTER = 'H300'

• MD27882 $MC_PART_COUNTER_MCODE[1] = 17

$AC_TOTAL_PARTS is active; the counter is incremented by a value of "1" with each M17.
Activation of the workpiece counter $AC_SPECIAL_PARTS:
• MD27880 $MC_PART_COUNTER = 'H3000'

• MD27882 $MC_PART_COUNTER_MCODE[2] = 77

$AC_SPECIAL_PARTS is active.
With each M77 the following is realized: $AC_SPECIAL_PARTS + 1
Deactivation of the workpiece counter $AC_ACTUAL_PARTS:
• MD27880 $MC_PART_COUNTER = 'H200'

• MD27882 $MC_PART_COUNTER_MCODE[1] = 50

$AC_ACTUAL_PARTS is inactive
Activation of all counters:
• MD27880 $MC_PART_COUNTER = 'H3313'

• MD27882 $MC_PART_COUNTER_MCODE[0] = 80

• MD27882 $MC_PART_COUNTER_MCODE[1] = 17

• MD27882 $MC_PART_COUNTER_MCODE[2] = 77

$AC_REQUIRED_PARTS is active
Display alarm for: $AC_REQUIRED_PARTS == $AC_SPECIAL_PARTS
$AC_TOTAL_PARTS is active; the counter is incremented by the value 1 with each M02.
$MC_PART_COUNTER_MCODE[0] has no significance.
$AC_ACTUAL_PARTS is active; the counter is incremented by a value of "1" with each M17.
$AC_SPECIAL_PARTS is active; the counter is incremented by a value of "1" with each M77.

This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all liability for the
completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
8/22/2022
Basic Functions
Examples

Workpiece counter $AC_ACTUAL_PARTS is not processed during the program test / block
search:
• MD27880 $MC_PART_COUNTER = 'H700'

• MD27882 $MC_PART_COUNTER_MCODE[1] = 75

$AC_ACTUAL_PARTS is active; the counter is incremented by a value of "1" with each M75, apart
from during the program test and search.
Cancellation of the count modes in the MD27880 $MC_PART_COUNTER with bit 0 = 1:
• MD27882 $MC_PART_COUNTER_MCODE[0] = 41

• MD27882 $MC_PART_COUNTER_MCODE[1] = 42

• MD27882 $MC_PART_COUNTER_MCODE[2] = 43

Program code Comment

...
N100 $AC_REQUIRED_PARTS=-10 ; value <0: Set counting.
N200 M41 M43 ; no counting.
N300 M42
...
N500 $AC_REQUIRED_PARTS=52 ; value > 0: Counting in accordance with MD27880 activated.
N501 M43 ; counting.
N502 M42 M41 ; counting.
...

This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all liability for the
completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
8/22/2022

You might also like