3 incompatibility, 1 plc macros – HEIDENHAIN TNC 335 Technical Manual User Manual

Page 504

Advertising
background image


8/95

TNC 360

5 Compatibility with TNC 355

7-125

Marker

Function

Set

Reset

TNC 360/335

M3200
to
M3263

Values from MP4310.3 to MP4310.6

NC

NC

W 976
to
W 968

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 360 both in memory organization and ergonomics.

5.3.1 PLC Macros

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

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 360/TNC 335. 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+O

=

M3043 ;T code == O

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

Advertising