Plc programming – Lenze ETC Motion Control User Manual

Page 367

Advertising
background image

PLC programming

Library

General functions

8

8.8

8.8.1

l

367

EDSTCXN EN 2.0

8.8.1.14

READ_TOOLDATA (only ETCxC)

FUNCTION READ_TOOLDATA: INT

VAR_INPUT

tnr_dw

: DWORD;

* T (tool number) *)

anzahl_dw

: DWORD;

(* number of tool data *)

puffer_p

: DINT;

(* Address after which the data should be stored *)

END_VAR

The function reads the tool data for the defined T (tools).

TYPE TOOL_TR

STRUCT

radius_lr

: LREAL; (* tool radius in mm *)

typ_lr

: LREAL; (* tool type *)

schwester_lr

: LREAL; (* no. of the sister tool *)

original_lr

: LREAL; (* no. of the original tool *)

magazin_lr

: LREAL; (* magazine location *)

s_zugeordnet_lr

: LREAL; (* S allocated to the magazine location *)

s_zeit_vorgabe_lr

: LREAL; (* default tool life *)

s_zeit_aktuell_lr

: LREAL; (* actual tool life *)

wz_aktuell_lr

: LREAL; (* actual tool *)

drehzahl_lr

: LREAL; (* tool speed *)

END_STRUCT

END_TYPE

wzdaten_tr

: TOOL_TR;

ret_i

: INT;

ret_i

:= READ_TOOLDATA(2, 10, ADR(wzdaten_tr));

The tool data for tool 2 (T2) are stored in the structural variable wzdaten_tr.

Declaration

Description

Example

Advertising