beautypg.com

8 assign byte (b=), 9 assign word (w=), 10 assign doubleword (d=) – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 506

background image


01.98

TNC 407/TNC 415/TNC 425

3 Commands

7-45

3.1.8 ASSIGN BYTE (B=)

Abbreviation for the PLC-Editor:

B= (ASSIGN BYTE)

Execution time [µs]

8.7 to 11.7

Number of bytes

14

Operands: M, I, O, T, C

Operation:
With the command B=, 8 bits are copied from the Word Accumulator to Markers, Inputs, Outputs,
Timers or Counters with ascending numbering. Each bit corresponds to 1 operand. The LSB in the
Accumulator is copied to the designated operand address, the LSB + 1 to the designated address +
1 and so on. The last affected operand is occupied by the MSB.

3.1.9 ASSIGN WORD (W=)

Abbreviation for the PLC-Editor:

W= (ASSIGN WORD)

Execution time [µs]

16.7 to 22.7

Number of bytes

14

Operands: M, I, O, T, C

Operation:
With the command W=, 16 bits are copied from the Word Accumulator to Markers, Inputs,
Outputs, Timers or Counters with ascending numbering. Each bit corresponds to 1 operand. The
LSB in the Accumulator is copied to the designated operand address, the LSB + 1 to the designated
address + 1 and so on. The last affected operand is occupied by the MSB.

3.1.10 ASSIGN DOUBLEWORD (D=)

Abbreviation for the PLC-Editor:

D= (ASSIGN DOUBLE)

Execution time [µs]

32.7 to 44.7

Number of bytes

14

Operands: M, I, O, T, C

Operation:
With the command D=, 32 bits are copied from the Word Accumulator to Markers, Inputs, Outputs,
Timers or Counters with ascending numbering. Each bit corresponds to 1 operand. The LSB in the
Accumulator is copied to the designated operand address, the LSB + 1 to the designated address +
1 and so on. The last affected operand is occupied by the MSB.

Example:
A bit pattern, as defined in Word W8 , is to be assigned to Outputs O5 to O20.

Initial state:

Word W8: 36 FF (hex)