Bit Reset - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

3.10.2 BIT RESET (BC)
Abbreviation for PLC Editor:
Execution time [µs]
Number of bytes
Operands: B, W, D, K
Operation:
With this command, each bit in the Accumulator can be acted on. The addressed bit is set to "0"
through the use of the BC command. The selection (addressing) of the corresponding bit is derived
from the content of the specified Operand or a Constant. In the bit-numbering, bit 0 corresponds to
the LSB and bit 31 the MSB. For operand contents larger than 32, the operand value Modulo 32 is
used, i.e. the integer remainder from the division (operand value)/32.
Example:
Load Doubleword D8 in the Accumulator, set bit 0 of the Accumulator to "0" and store the result in
Doubleword D12.
Initial state:
Accumulator and operand contents are shown here in hexadecimal notation.
Line Instruction
1
L D8
2
BC K+0
3
= D12
Line 1: Load Doubleword D8 into the Accumulator.
Line 2: The bit specified in the operand is set to "0".
Line 3: The result is stored in Doubleword D12.
01.98
TNC 407/TNC 415/TNC 425
BC (BIT CLEAR)
Byte/Word/Double
Constant
0.5 to 0.8
0.3 to 0.4
6
Doubleword D8 = 3E
Doubleword D12 = ?
Accumulator Content
xx
xx
xx
00
00
3E
00
00
3E
00
00
3E
3 Commands
8
81 (hex)
Operand Content
xx
81
00
00
80
80
00
00
3E
3E
81
80
7-97

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents