omron — 3.2.6. Creating Programs

33 2 Create the PositionControl program for the following processing. - Servo ON (by executing the MC Power instruction) _ - Homing (by executing the MC Home and MC MoveZeroPosition instructions) _ _ - Calculation of velocity command values by the Controller function block whose code was outputted by the Simulink PLC Coder - Output of velocity command values to the Servo Drive (by executing the MC SyncMoveVelocity instruction) _ - Execution of the above operations by the signals from the Programmable Terminal - Output of the execution status of the above operations to the Programmable Terminal 3 Double-click Task Settings in the Multiview Explorer to display the Task Settings Tab Page.

4 Set the task period to 1ms in the Task Settings View on the Sysmac Studio so that the period matches the sampling time of the Controller on the Simulink.