This manual is intended for persons who program and commission the ETC
Motion Control System under the "NC" operating system.
The software manual "NC Operating System" contains information on the
following topics:
ƒ Getting started ˘ a chronological description of the commissioning
steps
ƒ CNC programming ˘ working with G functions, formula processor,
block extensions and data fields
ƒ Machine constants ˘ parameterisation of drives
ƒ PLC−ETC interface ˘ data blocks and their functions
ƒ ETC−MMI gateway ˘ communication between Windows applications
and the ETC
ƒ ETC−MMI ˘ integrated development environment for the creation of
CNC programs
ƒ CoDeSys ˘ integrated development environment for the creation of PLC
programs
The ETC Hardware Manual contains information on the following topics:
ƒ Technical data
ƒ Structure and function of the system components including interface
description
ƒ Mounting, connecting and maintaining system components
10
l
EDSTCXN EN 2.0
Preface and general information
For which products is the manual valid?
1.2For which products is the manual valid?
1
1.2
Standard device
ETCxx0xx1A10
Product
Version
HC = DIN rail, CNC core
PC = PCI plug−in card, CNC core
ETCHC0xx
Number of axes
02 = 2 axes
04 = 4 axes
08 = 8 axes
12 = 12 axes
Hardware version
Modules
Software versionETCPC0xx
ETCHxxxx1A10
Product
N003 = power supply unit
T000 = bus termination module
I008 = 8 dig. inputs
I016 = 16 dig. inputs
U008 = 8 dig. outputs
U016 = 16 dig. outputs
A022 = 2 analogue inputs and outputs
each
ETCHxxxx
Hardware version
Software version
EDSTCXN EN 2.0
l
11
1
1.3
1.3Legal regulations
Preface and general information
Legal regulations
Marking
Manufacturer
CE conformity
Application as intended
The components of the ETC Motion Control System are clearly marked by the
contents of the nameplate.
Lenze Drive Systems GmbH, Postfach 101352, D−31763 Hameln
Compliant with EC Directive "Electromagnetic compatibility"
Components of the ETC Motion Control System
ƒ must only be operated under the operating conditions described in the
ETC Hardware Manual.
ƒ are not approved for the use in explosive environments.
ƒ comply with the protection requirements of the EC Directive "Low
voltage".
ƒ are no machines in the sense of the EC Directive "Machines".
ƒ are no household appliances, as components they are intended for
industrial use only.
The downstream user is responsible for ensuring that the EC Directives are
complied with in machine use.
Any other use shall be deemed inappropriate!
Liability
Warranty
The information, data and notes in this manual were up to date at the time
of printing. No claims for the modification of systems and components that
have already been supplied may be made on the basis of the specifications,
illustrations and descriptions in this manual.
No liability is accepted by Lenze as to the suitability of any of the procedures
or circuit recommendations included here.
The information in this manual describe the properties of the products
without guaranteeing them. No liability will be accepted for damage or
disturbance caused by:
ƒ ignoring this manual
ƒ unauthorised alterations to the components of the ETC Motion Control
System
ƒ operating errors and incorrect working on or with the ETC Motion
Control System
See terms of sales and delivery of Lenze Drive Systems GmbH.
Report any claims under warranty to Lenze immediately on discovery of the
defect or fault. The warranty is void in all cases where liability cannot be
established.
12
l
EDSTCXN EN 2.0
2Getting started
This chapter explains the basics of the ETC system and describes the
procedure for realising an automation task.
2.1System overview
2.1.1Examples for an automation system
Ethernet
ETCHx
CAN1
Getting started
System overview
Examples for an automation system
ETCHN003
ETC-System Components
2
2.1
2.1.1
ETCHT000
ETCHx / ETCPx
IPC with ETCPx
ECS/MCS-SystemDrivesHMII/O-System IP20
CAN2
CAN-I/O
ETCM001
The core of the automation system is the ETC control in the top hat rail design
(ETCHx) or as PCI insert card (ETCPx).
The top hat rail design ETCHx is normally used in a so−called ETC island
(¶ 15); it communicates via Ethernet with the applications on the IPC (or
standard PC).
The ETCPC is inserted into the IPC (or standard PC) and communicates with
the applications via the PCI bus.
Both designs have two separate CAN busses:
EDSTCXN EN 2.0
ƒ At CAN1 bus (or also ME bus) the I/O modules and any operating
components are connected. Third party devices must comply with teh
DS401 profile of the CANopen specification.
ƒ The drives (e.g. the ECS compact servo) are connected to the connection
for the Motion CAN bus (CAN2) at the front plate. External drives must
comply with the profile DS402 of the CANopen specification and in
particular support the "Interpolated Position Mode".
l
13
2
2.1
2.1.1
Getting started
System overview
Examples for an automation system
To carry out its allocated control function the ETC control needs various
programs which are transferred from the IPC (or standard PC):
ƒ Operating system or firmware of the control (e.g. ETCHC.rsc)
ƒ PLC programs (e.g. SPSDummy.prg)
ƒ CNC programs; i.e. cycle and DIN programs (e.g. 9000.zyk or
Nikolaus.din)
IPC
The ETC control is operated and maintained via the IPC (or standard PC). The
following applications might run on it:
ƒ Windows 2000 or XPoperating system
ƒ Terminal program (e.g. HyperTerminal) for establishing the Ethernet
connection between IPC and ETCHx control and for the configuration of
the ETCHx control via the monitor interface (e.g. firmware update). This
is not required for the ETCPx.
ƒ ETC−MMI gateway as communications program between Windows
applications and the ETC control.
ƒ Lenze ETC−MMI for the configuration, operation and monitoring of the
ETC control and for creating CNC programs.
ƒ CoDeSys development environment for the creation and testing of PLC
programs.
)Note!
An external keyboard is required at the IPC for commissioning. It
is not required for normal operation.
14
l
EDSTCXN EN 2.0
Getting started
System overview
Layout example for an ETC island
2
2.1
2.1.2
2.1.2Layout example for an ETC island
ETCHN003
10
ETCHx004
ETCHI016
ETCHI008
ETCHT000
2345
ETCM002
0 Serial interface (RS232)
1 Watchdog (e.g. for emergency stop chain)
2 Ethernet
3 Motion CAN bus (CAN2)
4 24 V supply
5 ME bus (CAN1)
ETCHN003: Power supply unit for the supply of the ETC island and ME bus
connection
ETCHx004: ETC Motion Control for 4 axes (control)
ETCHIxxx: Input module with 16 or 8 digital inputs
ETCHT000: ME bus terminator module
)Note!
To terminate the ME bus DIP switch 1 must be set to ON at both
the power supply unit ETCHN003 and the bus terminator
module ETCHT000.
EDSTCXN EN 2.0
l
15
2
2.1
2.1.3
Getting started
System overview
Connecting ETCHx and PC
2.1.3Connecting ETCHx and PC
Three types of connections are possible between the ETCHx and a PC.
Connection typeCable versionDescription
Serial connectionSystem cable type EWL 0068
Local connection via Ethernet
(pear−to−pear connection)
Network connectionEthernet patch cable STP Cat5
or a comparable RS232 cable
with double−sided 9−pin
SUB−D socket (for the pin
assignment see ETC Hardware
Manual)
System cable type EWL 0065,
EWL 0066 or EWL 0067
(double−sided RJ45)
(double−sided RJ45)
This connection is only
required for commissioning!
A free COM port at the PC is
connected with the RS232
interface of the ETCHx. The PC
communicates via a terminal
program with the monitor
interface of the ETCHx.
A network card in the PC is
connected with the Ethernet
connection of the ETCHx via a
cross−over cable.
Communication takes place
via the TCP/IP protocol.
The ETCHx is connected to a
separate or existing network
(e.g. Intranet) via an Ethernet
connection. Communication
takes place via the TCP/IP
protocol.
0
0 Connection via serial interface
1 Local TCP/IP connection
2 Network TCP/IP connection
1
2
ETCM004
16
l
EDSTCXN EN 2.0
2.2Status display
Getting started
Status display
LEDs on the front plate of the ETC report the actual system state. The
meanings of the signals differ in the start−up phase and during operation.
2.2
2
Watchdog (GN)
0 LED on
1 LED off
2 LED any
3 LED flashes
reserved (YE)
Error (RD)
1
4
3
6
0
1
2
3
ETC042
EDSTCXN EN 2.0
l
17
2
2.2
Getting started
Status display
Start−up phase
During start−up a RAM test is carried out. After an error−free RAM test the
LEDs 1 ... 6 produce a running indication. Any errors during the boot sequence
will be signalled by the following pattern of flashing and indications.
Checksum error in the internal FLASH−PROM. 3 times fast consecutive flashing. The
boot loader is then burned afresh into the internal FLASH−PROM. Occurs always
after a boot loader update.
Error in the last 32 kByte of RAM memory (after an update and writing of the boot
loader to the Flash).
Error in the first 32 kByte ofRAM memory.
Error when extracting the boot loader.
Error during the burning of the boot loader into the FLASH−PROM.
Errors in the RAM memory.
Error in the last 32 kByte ofRAM memory.
No firmware loaded or checksum error in the firmware. After 5 times flashing the
boot monitor is activated.
Error when loading the firmware from the FLASH−PROM. After 5 times flashing the
boot monitor is activated.
Error when starting the firmware.
18
l
EDSTCXN EN 2.0
Getting started
Status display
2
2.2
Operation
When the control enters the operating mode after start−up, the following
pattern of flashing and indications applies.
LEDMeaning
WatchdogWatchdog, must always illuminate when running.
ReservedWithout function
ERRORFlashes after an exception (violation of the control program protection during
runtime, exceeding the permitted variable range, division by zero etc.).
LED 1Flashes at the clock pulse of the coarse interpolator
LED 2Flashes at the clock pulse of the interpreter
LED 3Flashes at the clock pulse of the central control
LED 4Flashes at the clock pulse of the fine interpolator
LED 5Flashes with each RS232 interrupt or CAN interrupt
LED 6Flashes at the clock pulse of the PLC cycle time
)Note!
The "flashing" frequency can be so low with short programs,
that the LEDs appear dark.
EDSTCXN EN 2.0
l
19
2
2.3
Getting started
Commissioning steps (overview)
2.3Commissioning steps (overview)
(Stop!
)Note!
StepETCHCETCPC DescriptionSee
1X−Connect ETCHC via RS232 cable with PC and start ETCHC.^ 21
2X−Start terminal program on the PC (if required, configure in
3X−If the ETCHC is to be operated in the "with MMI"
4X−Assign the IP address of the ETCHC.^ 28
5XXIf required, install ETC−MMI and ETC−MMI Gateway.^ 31
6−XInstall ETCPC in the PC and install the driver.^ 31
7XXStart ETC−MMI and ETC−MMI Gateway.^ 32
8XXEstablish connection between ETC−MMI and ETCxC.^ 34
9XXParameterise drives via machine constants.^ 36
10XXCheck parameters of the drives.^ 43
11XXTest drives in inching mode.^ 44
12XXCreate CNC program in the ETC−MMI.^ 47
13XXLoad CNC program into ETCxC, start and test CNC
14XXIf required, install CoDeSys.^ 51
15XXStart and configure CoDeSys.^ 51
16XXCreate PLC program.^ 60
17XXLoad PLC program into ETCxC, start and test PLC program.^ 68
18XXTest CNC and PLC program.^ 72
Observe the notes in the chapter "Initital switch−on" of the ETC
Hardware Manual before commissioning the system.
Only build in and install the PCI control variant ETCPx in step 6.
^ 21
advance) and activate monitor interface of the ETCHC.
^ 25
operating mode, replace the firmware file on the ETC by
the file "NetBoot.rsc".
^ 49
program.
20
l
EDSTCXN EN 2.0
Establishing the communication between PC and ETCHx
2.4Establishing the communication between PC and ETCHx
)Note!
The steps described in this chapter only apply to the ETCHx
variant (DIN rail variant); they are not required for the ETCPx
variant (PCI card).
2.4.1Starting ETCHx
1. Connect the serial interfaces of PC and ETCHx.
For this purpose, use the system cable of type EWL 0068 or a comparable
RS232 cable with double−sided 9−pin D−Sub socket (for the pin
assignment see ETC Hardware Manual).
2. Start the PC.
3. Start the ETCHx by mains connection or initialise the ETCHx by a reset
(press the Reset key on the front panel).
As soon as the ETC firmware has been loaded, the green watchdog LED
lights up at the ETCHx .
Getting started
Starting ETCHx
2
2.4
2.4.1
2.4.2Starting the terminal program "HyperTerminal" and activating the monitor interface
For the communication between PC and ETCHx, you require a terminal
program. The terminal program "HyperTerminal" is available in every
standard Windows installation.
1. If you have already established a connection with an ETC (i.e. if a
connection is already configured), start the connection via <Start>
Programs W Accessories W Communication W HyperTerminal WConnectionName.ht. See next section.
If no connection has been configured yet, start the HyperTerminal via
<Start>
The program queries different settings of the telephone connection
because it is also designed for a modem connection. These settings are
not significant in this context.
2. After you have been prompted, enter a name for the connection (for
example "ETC") and click OK.
W Programs W Accessories W Communication W HyperTerminal.
W
EDSTCXN EN 2.0
l
21
2
2.4
2.4.2
Getting started
Establishing the communication between PC and ETCHx
Starting the terminal program "HyperTerminal" and activating the monitor interface
3. In the "Connect to" dialogue, select the PC interface via which you want
to establish the connection (for example "COM1").
ETCM006
4. Click OK.
5. In the "COMx Properties " dialogue, enter the following data:
ETCM007
6. Click OK.
22
l
ETCM008
EDSTCXN EN 2.0
Getting started
Establishing the communication between PC and ETCHx
Starting the terminal program "HyperTerminal" and activating the monitor interface
As soon as a connection has been established between the PC and ETC, the
LEDs 1 ... 6 at the ETCHx start to flash circulatingly. The message "Wait Boot
Loader" appears and the following window is displayed:
2
2.4
2.4.2
ETCM009
7. Press the <?> key until the prompt ">" appears.
The monitor interface has been started. You can now send commands to
the ETC via the keyboard.
ETCM010
EDSTCXN EN 2.0
l
23
2
2.4
2.4.2
Getting started
Establishing the communication between PC and ETCHx
Starting the terminal program "HyperTerminal" and activating the monitor interface
Important commands of the
monitor program
Fault elimination
CommandMeaning
dir [dr:][pattern]Shows the contents of the specified drive. The flashdisk (sd:) is preset, other
possible drives are program storage (ps:), Ram disk (rd:) and floppy disk
(fd:), if existing. As pattern, the usual MS−DOS patterns can be used, e.g.:
*.din
del [dr:][pattern] Deletes the specified files on the specified drive. The flash disk (sd:) is
preset.
cd [dr:]Changes to or shows the currently selected drive. The flash disk (sd:) is
preset.
format dr:Formats the current disk and thus deletes all files on this disk. A disk name
must be specified.
rebootResets the control system. To activate the boot monitor, the "!" key must be
pressed afterwards until the boot monitor responds (this may take
3−4 seconds).
helpDisplays the help page with commands of the monitor program.
verDisplays version string
ipconfConfigures network parameters for Ethernet interface
hwconfDisplays hardware configuration of the control system (CPU type, memory
etc.)
If you cannot establish a connection to the ETCHx by means of the described
procedure, proceed as follows:
1. Check the cabling between PC and ETCHx.
2. Check the connection parameters of the terminal program.
A first test of the cable connection can be performed by means of a bridge
between the pins 2 and 3 at the socket of the cable (control system side):
ƒ Afterwards, the terminal program is called as usual and any letters can
be entered via the keyboard.
ƒ If the entered characters of the keyboard are correctly displayed in the
mask of the terminal program (the characters are sent back by the
bridge as echo), the cable must be checked for exchanged pins (pin2/3),
for short circuit and the connection must be checked for correct
parameter setting.
24
l
EDSTCXN EN 2.0
Getting started
Establishing the communication between PC and ETCHx
Setting the operating mode of the ETCHx
2
2.4
2.4.3
2.4.3Setting the operating mode of the ETCHx
The ETCHx can be operated in two operating modes:
ƒ Variant "Standalone" (delivery variant)
– Directly after the voltage has been applied, the control system loads
the firmware.
– The control system executes a fixed program.
ƒ Variant "with MMI"
– After the voltage has been applied, the control system waits until the
firmware is loaded by a PC via any MMI program (e.g. ETC−MMI).
– Variable user programs can be executed.
Comparison of the operating
modes
UseThe control system operates a
User programA fixed program runs in the
Installed firmware on the
control system
Installation of the firmwareThe firmware is loaded and
Behaviour of the control
system after the voltage has
been applied
LED display after the voltage
has been applied
Starting the firmwareBefore the start, the firmware
Standalone (delivery)With MMI
machine without further
coupling to a PC.
control system.
Boot loader
firmware
installed in the EEPROM by the
boot loader.
After the voltage has been
applied, the control system
automatically starts with its
firmware.
After the firmware has been
started successfully, the green
watchdog LED lights up.
is loaded from the EEPROM of
the control system into the
RAM and started.
The control system operates a
machine with coupling to a
user interface, which is used
for loading programs and
operating the control system.
Variable user programs can be
loaded into the control
system.
Boot loader
loader
The Loader is loaded and
installed in the EEPROM by the
boot loader.
After the voltage has been
applied, the control system
waits until the firmware is
loaded via the PC.
The successful start of the
loader is indicated by
circulating LEDs (1 ... 6).
The firmware is located on the
PC and is loaded into the RAM
of the control system and
started when the MMI user
interface is started.
After the firmware has been
started successfully, the green
watchdog LED lights up.
Set the "Standalone"
operating mode
EDSTCXN EN 2.0
The "Standalone" operating mode is factory−set.
)Note!
If the ETCHx has already been operated in the "with MMI"
operating mode and is to be reset to the "Standalone" operating
mode, the file "NetBoot.rsc" (loader) must be deleted in the
control system and the firmware file ETCHC_A.rsc (ETCHC) or
ETCPC.rsc (ETCPC) is to be transferred instead. For this purpose,
proceed as described in the following section; the files that are
to be exchanged are the only difference.
l
25
2
2.4
2.4.3
Getting started
Establishing the communication between PC and ETCHx
Setting the operating mode of the ETCHx
Set the "With MMI" operating
mode
For the "With MMI" operating mode, the firmware file must be replaced by
the file "NetBoot.rsc" (Loader) on the ETCHx.
1. To delete the firmware, enter the following in the HyperTerminal: delsd: etc*.rsc. Afterwards, press the <Enter> key.
2. To transfer the Loader to the ETC, activate the menu item Transfer
W
Send File in the HyperTerminal.
ETCM021
3. Specify the path to the file "NetBoot.rsc" and select the protocol
"Zmodem with Crach Recovery".
ETCM022
4. Click on Send.
While the file is being loaded into the control system, the following figure
is displayed. On the ETC front plate, the LEDs 1 ... 6 flash circulatingly.
ETCM023
26
l
EDSTCXN EN 2.0
Getting started
Establishing the communication between PC and ETCHx
Setting the operating mode of the ETCHx
After loading is complete, the following figure is displayed:
2
2.4
2.4.3
The control system waits until the firmware is loaded from the PC; on the
ETC front plate, the LEDs 1 ... 6 flash circulatingly.
5. In the HyperTerminal window, enter quit and confirm the command
with <Enter> .
The firmware starts. On the ETC front plate, the green watchdog LED
lights up.
ETCN007
EDSTCXN EN 2.0
l
27
2
2.4
2.4.4
Getting started
Establishing the communication between PC and ETCHx
Assigning the IP address of the ETCHx
2.4.4Assigning the IP address of the ETCHx
For communication via a network or a local Ethernet cable, the ETCHx
requires a unambiguous IP address (with subnet mask) that matches the
other nodes. When the control system is delivered, it has a specific, but
random IP address.
The IP address of the ETCHx is assigned via the monitor interface (as
described in the following). This IP address is requested when connections
are established in the ETC−MMI Gateway (¶ 34).
Specify the IP address according to the following general rules for IP
addresses:
Separate (local) network
segment
If the control system and PC are connected with a local network segment or
via a direct Ethernet connection (without Internet/Intranet connection),
assign IP addresses of class B or class C to the two network stations.
ƒ Addresses of class B are in the range from 128.0.0.0 to
191.255.255.255. The corresponding subnet mask is 255.255.0.0
(default).
ƒ Addresses of class C are in the range from 192.0.0.0 to
223.255.255.255. The corresponding subnet mask is 255.255.255.0
(default).
Existing network segment
The gateway address is not relevant here. You can enter a free IP address of
the subnetwork (not 0.0.0.0).
ExampleIP addressSubnet
This address must be assigned to the ETCHC and
specified as connection parameter in the ETC−MMI
Gateway ^ 34:
This address must be specified in the network
connection of the PC (TCP/IP settings):
181.16.1.10
181.16.1.11 255.255.0.0181.16.1.1
mask
255.255.0.0181.16.1.1
Gateway
address
)Note!
Do not use any leading zeros in the IP addresses. Otherwise, the
IP address will be interpreted as octa decimal number.
If ETCHx and PC are to be connected with an existing network segment, the
addresses and the subnet mask must be assigned by the network
administrator.
)Note!
If the Ethernet adapter supports 100Base−T technology, "Auto
Select" or "10Base−T" must be set for the "Media Type" property.
28
l
EDSTCXN EN 2.0
Getting started
Establishing the communication between PC and ETCHx
Assigning the IP address of the ETCHx
2
2.4
2.4.4
MAC address
Assigning an IP address
Like any other device with Ethernet controller, the ETCHx receives an
unchangeable and worldwide unique physical Ethernet address, also called
MAC ID (Media Access Control Identity), from the manufacturer. It can be
used for addressing on the hardware level. The address has a fixed length of
6 bytes (48 bits) and contains an address type, an identification of the
manufacturer and a serial number.
MAC−ID of the ETC: 00:05:7e:xx:xx:xx (with xx:xx:xx = serial number).
The IP address of the ETCHx is specified via the monitor interface.
1. In the HyperTerminal, enter the command ipconf and confirm the
command with <Enter>.
The MAC−ID and the current address setting of the ETCHx are displayed.
ETCM011
2. Press the <Y> key and change the settings. Follow the instructions of
the monitor interface.
Select an IP address according to the rules specified at the beginning of
the section.
The HyperTerminal program can now be quit.
)Note!
Note down the IP address because it must be specified when
creating connections in the ETC−MMI Gateway (¶ 34).
EDSTCXN EN 2.0
l
29
2
2.5
2.5Configuring ETC−MMI and ETC−MMI gateway
Getting started
Configuring ETC−MMI and ETC−MMI gateway
The program "ETC−MMI" is used for the following tasks:
ƒ Configuring the control system
ƒ Operating and monitoring the control system
ƒ Maintenance of the control system and error diagnosis
The MMI gateway is the communications program between Windows
applications and ETC control systems. Different applications such as MMIs,
configuration tools or OPC servers can establish connections to one or more
control systems at the same time.
The gateway implements all required mechanisms for access control, error
handling and diagnostics and supports control−specific hardware drivers
and communication protocols. By means of the configuration tools, new
connections can be added and existing connections can be edited.
The ETC−MMI Gateway is installed during the installation of the Lenze
ETC−MMIs. It can also be installed as a separate application. In this case, it is
available as communication channel for other applications.
,For further information, please refer to the chapters "ETC−MMI
Gateway" (¶ 276) and "ETC−MMI" (¶ 286).
30
l
EDSTCXN EN 2.0
Loading...
+ 398 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.