Operating instructions

3
Select Import ST Program from the Tools Menu.
4
Select the PLCCoderDemoMC.xml file that was outputted in the previous section in the
Import ST Program Dialog Box.
The data is imported and the programs, functions, function blocks, data types, and
global variables in the XML file are added to the project of Sysmac Studio.
The Controller block whose code is outputted by the Simulink PLC Coder and its
internal blocks CommandPositionGenerator and PositionController are imported as
function blocks of Sysmac Studio.
TestBench is a function block for a test to call the Controller function block.
MainTB is a program to call the TestBench function block.
Additional Information
The TestBench function block and the MainTB program are outputted when the
Generate testbench for subsystem check box is selected in Step 4 of 3.2.1 Outputting
the Code usi
ng the Simulink PLC Coder.
19