3. Setting up the System The operation procedure of Simulink and Sysmac Studio is given below. 21 3.1. System Setup Procedures 3.2.1 Outputting the Code using the Simulink PLC You make a setting for outputting the code for the Coder Sysmac Studio and output the code with test code. ▼ 3.2.2 Importing the Code into the Sysmac Studio You import the code outputted by the Simulink PLC Coder into the Sysmac Studio. ▼ 3.2.3 Checking the Calculation Accuracy You confirm that the code has the same calculation accuracy as the Simulink (within the acceptable error range) by a simulation.
▼ 3.2.4 Creating the EtherCAT Network You register a R88D-KN01L-ECT Servo Drive that Configuration operates as axis 0 on the EtherCAT network configuration. ▼ 3.2.5 Setting the Axis You add an axis to control the Servo Drive, assign the Servo Drive to the axis, and make the axis parameter settings. ▼ 3.2.6 Creating Programs You create a program for calling the function blocks whose code was outputted by the Simulink PLC Coder and a program for outputting command values to the Servo Drive. ▼ 3.2.7 Creating the Programming Terminal Screen You insert the Programmable Terminal in the Sysmac Studio project and create a Programmable Terminal screen for the operation and display.
▼ 3.2.8 Preparing the Co-simulation of Simulink and You add the Sysmac Controller Interface block to the Sysmac Studio Simulink model and make the setting for data exchange between Simulink and Sysmac Studio. Also, you add the Sysmac IO Device block to link with the parameter settings of the Servo Drive in the Sysmac Studio project. ▼ 3.2.9 Debugging by Simulation You debug the programs and screens that you created by the SILS (Software In the Loop Simulation). ▼