390). it returns, Plc programming – Lenze ETC Motion Control User Manual

Page 390

Advertising
background image

PLC programming

Library
FILE IO functions

8

8.8
8.8.3

l

390

EDSTCXN EN 2.0

8.8.3.13

Device driver

The control supports different devices with write (w), and for some devices,
read (r) access. The access takes place via a file system. A file must be opened
using the function SysOpenFile() before it can be accessed. With the
exception of the device "Printer" several files can be opened simultaneously
on a device. In total four simultaneously opened files are possible. The file
names must comply with the DOS 8.3 convention, i.e. must contain a
maximum of 8 characters for the file name and 3 characters for the file
extension (no special characters must be used).

Device

ID

Access Description

Silicone disk

SD

rw

This driver allows access to the Flash PROM of the
control.

RAM Disk

RD

rw

This driver allows access to the so−called RAM Disk
(battery buffered RAM).

Net Disk

ND

rw

This driver allows access to the hard drive of a PC. The
device can only be used if the control has an Ethernet
interface. On the PC the Lenze ETC Data Server must
have been started. The PLC can access the directory
which has been entered into the configuration file of
the server. To create the connection between the
control and the PC the control given the IP address of
the PC via the function SetCurrentPath(). For this it is
necessary to enter a fixed IP address in the network
settings of the PC.

PC Disk

PC

rw

This driver allows access to the hard drive of a PC. The
device can only be used if an application is running on
the PC which uses the Lenze Gateway (e.g. ETC MMI).
Using the Gateway configuration software a directory
can be defined which the PLC can access.

Program memory
(only ETCxC)

PS

W

This driver allows DIN programs to write tot he
internal DIN program memory via the PLC. It must be
ensured that the file name must also be identical to
the program number, therefore the DIN program must
not contain a program number (with % command).
Example: SysOpenFile(’PS:12.din’, O_WRONLY); opens
a DIN program with the program number %12.

Advertising