Example: Configuring and programming a PLC spindle

Initialisation in the axis parameter list

achs_typ                 0x00004    Spindel

achs_mode                0x40000    Externally controlled
                                    Spindle

antr_typ                 0x00004    Simulation

Initialising in the channel parameter list

spdl_anzahl               1

main_spindle_ax_nr        1

main_spindle_name         S

spindel[0].bezeichnung    S1

spindel[0].log_achs_nr     1

Notice

notice

There is no difference between programming NC and PLC spindles.

Programing Example

prg_example

Configuring and programming a PLC spindle

DIN syntax:

N10 M03 S1000

N20 Z0

N30 M04 S1000

N40 Z100

N50 M05

N60 M19 S200 S.POS100

M30

Axis-specific syntax:

N10 S[M03 REV1000]

N20 Z0

N30 S[M04 REV1000]

N40 Z100

N50 S[M05]

N60 S[M19 REV200 POS100]

M30