8.1.11.2 Mandatory slaves/Oponal slaves
The concept of the modular machine conguraon is based on the fact that, depending on
the selected conguraon within a project, certain EtherCAT slaves have to exist physically at
the bus (Mandatory Slaves) or do not have to exist (Oponal Slaves). The problem is the clear
idencaon of idencally constructed devices with the EtherCAT standard mechanisms. For
this purpose, the Second Staon Address (alias address) described the ETG is used which is
saved in the EEPROM of the EtherCAT slave.
All EtherCAT slaves must be dened in the PLC applicaon. The order of the denion
determines the EtherCAT address by assigning the addresses connuously from ’1001’. The
address is the biunique idenfying feature of a device in the network.
If, for instance, a slave shall contain the applicaon A or the applicaon B, a device has to be
created in the project for each applicaon. This way, the applicaons are idened by the
dierent EtherCAT addresses. The same applies to the process data mapping, terminal
conguraon etc.
Conguraons serve to indicate whether an EtherCAT slave is mandatory or oponal. The
conguraons are summarized in the "mmc-0-conf.csv" le on the Lenze Controller. More
idenfying features of the slaves are included in the "mmc-0-ident.csv" text le.
4Conguraon les ^ 66
If the device is a Mandatory Slave or an Oponal Slave and whether the slave is available at
the EtherCAT bus, is displayed via the properes "IsMandatory" and "IsPresent" of the
ETCSlave funcon block.
Idener/data type Meaning/possible sengs
IsMandatory (GET) Depending on the currently selected modular machine conguraon, the feature is set or not set for the
EtherCAT slave. If the modular machine conguraon is not used, the value ’TRUE’ is automacally returned.
•
TRUE: Slave is mandatory
•
FALSE: Slave is oponal
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;
Conguring the network
EtherCAT
Modular machine conguraon
65