beautypg.com

M3200 to m3263, Values from mp4310.3 to mp4310.6, 3 incompatibility – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 643: 1 plc macros

background image


7-182

TNC 407/TNC 415/TNC 425

5 Compatibility with TNC 355

01.98

Marker

Function

Set

Reset

TNC 407/415

M3200
to
M3263

Values from MP4310.3 to MP4310.6

NC

NC

W 972
to
W 988

5.3 Incompatibility

It has not been possible to maintain compatibility in all areas of the PLC programs. This is because
the TNC 355 differs considerably from the TNC 407 and TNC 415 both in memory organization and
ergonomics.

5.3.1 PLC Macros

The following macro programs are available in the TNC 355 for controlling the tool changer.

M3264

Convert tool number or pocket number to binary code

M3265

Increment actual value of pocket number

M3266

Decrement actual value of pocket number

M3267

Compare actual and nominal values of pocket number

These macro programs are no longer available in the TNC 407 and TNC 415. The following PLC
subroutines can be used in place of the macro programs.

Convert tool number or pocket number to binary code

M2032 to M2039 -> M3024 to M3031
LBL 200

;M3264 (TNC 355)

L

W262

;T code in binary

B=

M3024 ;file in bit area

==

K+0

=

M3043 ;T code == 0

LB

M3200 ;low byte from MP4310.3

=

B255

;load MP4310.3

LB

M3024

>

B255

=

M3044 ;Tcode > MP4310.3 1 byte

EM

Increment actual value of pocket number

(M3032 to M3039) = (M3032 to M3039) + 1
LBL 210

;B265 (TNC 355)

LB

M3200 ;low byte from MP4310.3

=

B255

;number of mag. pockets

LB

M3032 ;actual value

+

K+1

;increment by 1

B=

M3032 ;

<=

B255

;less than or equal to actual value