10.11.
PLC - Control: new compilation
Select: Project -> Rebuild All
This action updates the information.
10.12.
System Manager: Activate configuration
Select: Actions -> Activate Configurations
10.13.
PLC - Control: Run
Select: Online -> login
Select: Online -> Run
The PLC and the EtherCAT fieldbus are now running.
In TwinCAT
10.14.
PLC - Control: start and stop the motor
To modify the MB1 state, See "8.1.3.CiA402 state chart".
Example to start motor:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. Set "TSB_MB1_RPDO_Output1_Control_Word (%QB0)" = 0x0000
11. The motor stops and MB1 go back on "Switch on disabled" state.
®
PLC Control, you see the list of the variables and values:
The MB1 is on "Switch on disabled" state.
Set "TSB_MB1_RPDO_Output1_Control_Word (%QB0)" = 0x0006
The MB1 is on "Ready to switch on" state.
Set "TSB_MB1_RPDO_Output1_Control_Word (%QB0)" = 0x0007
The MB1 is on "Switch on" state.
Set "TSB_MB1_RPDO_Output1_Control_Word (%QB0)" = 0x000F
The MB1 is on "Operational enable" state.
Set "TSB_MB1_RPDO_Output2_Target_Velocity (%QB2)" = 0x05DC
The Motor stats, and the MB1 displays "50.0"Hz
- 64 -
E6581818⑭