Commissioning
In the following, the required steps are described to control the device with an EtherCAT master.
Preconditions
–
The inverter is networked as EtherCAT slave to an EtherCAT master and, if necessary, further EtherCAT devices.
–
The entire wiring has already been checked for completeness, short circuit and earth fault.
–
All EtherCAT devices are supplied with voltage and are switched on.
–
An Engineering PC with installed »PLC Designer« is connected to the master.
–
A »PLC Designer« project with current device description files for EtherCAT is available.
–
–
The files are installed via the device repository of the »PLC Designer« (menu command "Tools
à
Device repository").Holding brake
The holding brake must be activated via the CiA control word (0x6040).
1.
Set the brake mode to manual in the "Overview / advanced - motor brake control set" mask.
The holding brake can now be released via bit 14 of the CiA control word.
DC-injection brake
The DC-injection brake must be activated via the NetWordIn1 interface. The L_MC1P_BasicActuatingSpeed function block can be used to definitively trigger the brake, whereby the wLControlword property is available. This property corresponds to the NetwordIN1 parameter.
A further configuration of the DC-injection brake itself can be undertaken with the usual device parameters. Change the other parameters of the axis if necessary.
Details
–
When using the »PLC Designers«, the CiA 402 operating mode "CiA: Velocity mode (vl)" is automatically activated.
–
In the operating mode "CiA: Velocity mode (vl)", the set speed defined via the "Set speed" (0x6042) parameter is used.
–
A changeover to an alternative setpoint source via 0x6040 (CiA control word) is not possible.
–
0x6040 (CiA control word) serves to start/stop the EtherCAT device.
–
Further information:
Process input data (CiA 402 objects)
Process output data (CiA 402 objects)
CiA 402 device profile
Process input data (CiA 402 objects)
Process output data (CiA 402 objects)
CiA 402 device profile Commissioning steps
How to configure the network:
In the default setting, the digital input DI1 is assigned the "Run" function. If the network control is activated, this function serves as "start enable" for start commands via network. Hence, the digital input DI1 must be set to the HIGH level in order that the motor can be started via the network.
Configure gateway function of the master
1.
Start »PLC Designer«.
2.
Open or recreate a »PLC Designer« project.
3.
Open the "Communication settings" tab of the master.
4.
Click "Add gateway".
Do the following in the appearing dialog window:
Do the following in the appearing dialog window:
a.
Enter the IP address of the master.
b.
Confirm the entry with "OK".
5.
Click "Search network".
6.
Select the corresponding master for the previously entered IP address.
7.
Click "Set active path".
8.
Log into the master using the "Online
à
Log in" menu command or with <Alt>+<F8>.Now you can access the slaves from the Engineering PC via the EtherCAT master as gateway.
Carry out network scan
1.
Execute the "Start Search" command in the context menu of the master.
The appearing dialog box lists all available EtherCAT devices according to the physical order in the network.
2.
Click "Copy all devices into the project".
The physical network structure is reproduced in the »PLC Designer« project.
A proper operation requires that the network topology generated in the project corresponds to the physical order of the EtherCAT nodes in the network. Otherwise, an error message displays which slave (product code) is to be expected at which position.
Integrate L_MC1P_BasicActuatingSpeed functional module
1.
Open the PLC program code (PLC_PRG).
2.
Open the Input Help in the lower input area by right clicking via the context menu.
3.
Open the category Function blocks.
4.
Select the element L_MC1_P → L_MC1_P_MotionControlBasic → 1_POUs → PLCopenAdditional and then the function block L_MC1P_BasicActuatingSpeed. Click OK.
5.
Enter a variable name in the "Declare variables" dialog box.
6.
Close the dialog box by clicking on the OK button.
The L_MC1P_BasicActuatingSpeed function block together with its data structure is now integrated in the PLC program code.
The L_MC1P_BasicActuatingSpeed function block together with its data structure is now integrated in the PLC program code.
7.
Open the L_MC1P_BasicActuatingSpeed function block and set the reference to the axis data structure (Axis:=i550_Motion_Axis).
Fig. 1: Assign axis
8.
Open the Application context menu in the device tree for Application, select the command Add object → Visualization ... and insert the visualization of the function block.
9.
Insert a frame into the visualzation using the Frame tool (Basic tab).
10.
To the frame visualization, add the function block L_MC1P_BasicActuatingSpeed and close the dialog box by clicking the OK button.
11.
Under Properties, select the reference of the function block with which the visualization should be linked.
Fig. 2: Select reference
Adapt EtherCAT device to the application
1.
Select the axis movement of the i550.
Fig. 3: Select i550
2.
In case of "Switch on axis”, select Simple [0] for the use of the axis L_MC1P_BasicActuatingSpeed.
3.
The following parameters need to be configured:
a) Modes of operation 0x6060 = "CiA: Velocity mode [2]"
b) Function list: Start 0x2631:002 = "Constant TRUE [1]"
a) Modes of operation 0x6060 = "CiA: Velocity mode [2]"
b) Function list: Start 0x2631:002 = "Constant TRUE [1]"
Adjust the parameter values of the inverter
1.
Adapt parameter values under the "Settings" and "Parameter list" tabs.
2.
Set the PDO mapping under the “Process data” tab.
3.
Assign variable names under the "EtherCAT I/O image" by double-clicking the variable fields.
Load the network configuration into the master
1.
Log off: Menu command "Online
à
Log off" or <Ctrl>+<F8>.2.
Compiling: Menu command "Build
à
Build" or <F11>.3.
Log in: Menu command "Online
à
Log in" or <Alt>+<F8>.The configuration, the parameter settings and the PLC program are loaded into the master. Afterwards, all EtherCAT slaves are initialized.
These steps must be carried out after each change within the »PLC Designer« project. An already available configuration and an available PLC program in the master will then be overwritten.
Restart of the communication
The communication needs to be restarted after the EtherCAT configuration is changed, so that the changed settings can take effect.
For restarting communication, there are two options:
a.
Switch inverter off and on again.
b.
0x2360 Set = "Restart with current values [1]".
Parameter


