beautypg.com

2 plc program example – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 325

background image


4-200

TNC 407/TNC 415/TNC 425

10 Electronic handwheel

01.98

10.3.2 PLC program example

In the following example the currently selected axis is evaluated so as to be traversed with the +/-
keys. (MP7640 = 4, MP7641 = 0 and MP7645.0 = 0).

Key on HR 322

PLC input/output

+ key

I170

- key

I169

+ LED

O105

- LED

O106

;Main program
LBL 1
PS

K+9

Interrogate selected handwheel axis with module 9035

CM

9035

PL

B0

L

K+0

Delete the 8 markers for "Manual

B=

M2456

Traverse" of axis X to IV

L

K$FF

Set the 8 complement markers

B=

M2472

L

MO

PLC outputs O100

ON

MO

to O106 are deleted.

R

O100

All LEDs are

R

O101

turned off except the

R

O102

LED of the selected axis.

R

O103

R

O104

R

O105

R

O106

Case

BO

Evaluation of selected handwheel axis

CM

10

X-axis

CM

11

Y-axis

CM

12

Z-axis

ENDC
EM

LBL 10

X-axis

LN

M2457

Unless X- is active

A

I170

and + key is pressed,

S

M2456

traverses in

R

M2472

X+ direction.

S

O106

LED on - key lights up.

EM

LBL 11

Y-axis

.
EM
LBL 12

Z-axis

.
EM
LBL 13

Axis IV

EM