Plc programming – Lenze ETC Motion Control User Manual

Page 389

Advertising
background image

PLC programming

Library

FILE IO functions

8

8.8

8.8.3

l

389

EDSTCXN EN 2.0

8.8.3.12

SYSDISKINFO

FUNCTION SYSDISKINFO: DINT

VAR_INPUT

info_p

: DINT;

(* Address of a variable of type DISKINFO_TR *)

pattern_s

: STRING(15); (* search pattern *)

END_VAR

The function detects the usage data for a device and stores it in the disk info
structure defined.

The disk info structure is structured as follows:

TYPE DISKINFO_TR

STRUCT

blocksize_w

: WORD; (* Size of a logical block in bytes *)

blocknumb_w

: WORD; (* Formattet total capacity in blocks *)

blockused_w

: WORD; (* Used capacity in blocks *)

blockfree_w

: WORD; (* Free capacity in blocks *)

END_STRUCT

END_TYPE

info_p:

Pointer to the disk info structure.

device_pc:

Pointer to the device name

^ 390. Empty string (" ") for the default

device.

Declaration

Description

Parameters

Advertising