Mandatory slaves/Optional slaves
The concept of the modular machine configuration is based on the fact that, depending on the selected configuration within a project, certain EtherCAT slaves have to exist physically at the bus (Mandatory Slaves) or do not have to exist (Optional Slaves). The problem is the clear identification of identically constructed devices with the EtherCAT standard mechanisms. For this purpose, the Second Station Address (alias address) described the ETG is used which is saved in the EEPROM of the EtherCAT slave.
All EtherCAT slaves must be defined in the PLC application. The order of the definition determines the EtherCAT address by assigning the addresses continuously from ’1001’. The address is the biunique identifying feature of a device in the network.
If, for instance, a slave shall contain the application A or the application B, a device has to be created in the project for each application. This way, the applications are identified by the different EtherCAT addresses. The same applies to the process data mapping, terminal configuration etc.
Configurations serve to indicate whether an EtherCAT slave is mandatory or optional. The configurations are summarized in the "mmc-0-conf.csv" file on the Lenze Controller. More identifying features of the slaves are included in the "mmc-0-ident.csv" text file.
If the device is a Mandatory Slave or an Optional Slave and whether the slave is available at the EtherCAT bus, is displayed via the properties "IsMandatory" and "IsPresent" of the ETCSlave function block.
|
Identifier/data type
|
Meaning/possible settings
|
|
IsMandatory (GET)
|
Depending on the currently selected modular machine configuration, the feature is set or not set for the EtherCAT slave. If the modular machine configuration is not used, the value ’TRUE’ is automatically returned.
–
TRUE: Slave is mandatory
–
FALSE: Slave is optional
|
|
IsPresent (GET)
|
–
TRUE: The slave is currently available at the bus.
–
FALSE: The slave is currently not available at the bus.
|
Example
|
// Mandatory:
xMandatory_94: = c550_HL_SM.IsMandatory;
xMandatory_c550_S: = L_c550_SM.IsMandatory;
xMandatory_c550_D: = L_c550_SM_1.IsMandatory;
|
|
// Mandatory:
xMandatory_94: = c550_HL_SM.IsPresent;
xMandatory_c550_S: = L_c550_SM.IsPresent;
xMandatory_c550_D: = L_c550_SM_1.IsPresent;
|
Configuration files