Configuration files
The configurations whether certain EtherCAT slaves are mandatory or optional, are summarized in the "mmc-0-conf.csv" text file on the controller. More identifying features of the slaves are included in the text file "mmc-0-ident.csv".
Storage directory:
/SDCard/IPC/PLC
The machine configuration "mmc-0-conf.csv" and the identifying features "mmc-0-ident.csv" are only loaded when a project is loaded.
If an error occurs during the initialization process, a corresponding error message including the line number is output in the controller logbook.
Machine configuration
The machine configuration file "mmc-0-conf.csv" consists of a matrix. All EtherCAT slaves are given horizontally in ascending order, the individual configurations are given vertically. The EtherCAT slaves are referenced based on the EtherCAT address (Fixed Address), the configuration is based on the designator (STRING). If a slave has to be contained in a configuration (Mandatory Slave), it is marked by an 'X' in the following sample table.
|
Address
|
1001
|
1002
|
1003
|
|
Inverter
|
i700
|
9400 CiA
|
9400 AS
|
|
Configuration 1: All inverters are configured.
|
X
|
X
|
X
|
|
Configuration 2: The 1st and 2nd inverters are configured.
|
X
|
X
|
|
|
Configuration 3: The 1st and 3rd inverters are configured.
|
X
|
|
X
|
The configuration file does not necessarily have to be available.
Preconditions:
–
Manual address assignment via the L_ETC_MMCAssignAddress function block
–
Operation of the EtherCAT master in the "RUN_WITHOUT_CHECK" mode
Further identification features of the EtherCAT slaves
An EtherCAT slave is identified by the following features:
–
Vendor-ID/Product Code/Revision
–
Second Station Address (alias address)
–
ID selector (is not supported)
Moreover, the modular machine configuration makes it possible to use CoE objects for further identification of the EtherCAT slaves. These additional identification features are contained in the "mmc-0-ident.csv" text file. If the identification file is not available on the Lenze controller, no identification features are used.
The structure of the text file "mmc-0-ident.csv" is strictly defined. All columns must be provided in the order specified or may contain an empty string. The EtherCAT slaves are arranged in ascending order of their address according to the sample table.
|
Name
|
Address
|
Index
|
Subindex
|
Type
|
Data
|
|
L_i700_SM
|
1001
1001
|
16#1018
16#1019
|
1
2
|
DWORD
DWORD
|
03 B0 00 00
02 00 07 69
|
|
L_9400_HL_S
|
1002
1002
|
16#1020
16#1021
|
1
2
|
DWORD
DWORD
|
3B 00 00 00
3D 9D 0738
|
|
L_9400_HL_S
|
1003
1003
|
16#1022
16#1023
|
1
2
|
DWORD
DWORD
|
3B 00 00 00
3D 9D 07 38
|
|
Column
|
Description
|
Notation
|
|
Name
|
Device name of the EtherCAT slave (optional)
|
STRING
|
|
Address
|
Address of the EtherCAT slave (required)
–
If no additional identification features are required for a slave, the entire line must be omitted.
–
If more than one identification feature is to be requested for a slave, a completely new line has to be created.
|
INT (decimal) |
|
Index
|
Index of the CoE object to be requested. (required)
|
INT (hexadecimal with prefix 16#) |
|
Subindex
|
Subindex of the CoE object to be requested. (required)
|
SINT (decimal) |
|
Type
|
Type of the CoE object to be requested. (required)
–
Only BYTE, WORD and DWORD are supported.
|
IEC basic types (String) |
|
Data
|
Data that must be contained in the specified CoE object. (required)
–
The number of bytes must comply with the type.
|
Octet stream (hexadecimal with spaces)Example:
–
0x00001234
–
4660
–
34 12 00 00
|
|
Comment
|
Comment field for the user. (optional)
|
STRING
|
Dependencies between configuration files and services
Depending on the selected service, information from the machine configuration file "mmc-0-conf.csv" and the file for further identification features of the slaves "mmc-0-ident.csv" is required. If the files are not available or if there is a "Parsing Error", one of the following error messages results when a service is activated: "CONFIG_FILE_ERROR" or "IDENT_FILE_ERROR".