Machine Automation Controller NJ-series Startup Guide for Simulink® PLC Coder™ & Sysmac Studio SYSMAC-SE20□□ NJ501-□□□□ NJ301-□□□□ R
CONTENTS Introduction... 1 Intended Audie
1. System to Construct and Configuration Devices 1.1. System Configuration and Configuration Devices This section describes the system configurati
10 The models of the devices that are described in this Guide are given in the following table. When selecting devices for an actual application, refe
1.2. The Servo System Constructed in this Guide This guide describes the procedure to start up the system for single-axis positioning with a Servo Dr
2. Before You Begin 2.1. Wiring the Devices and Installing the Software You wire the devices and install the software on the computer as described
Additional Information Set the sampling time of the Controller so that it matches the task period of the Sysmac Studio. (Primary periodic task perio
14 3. Setting up the System 3.1. System Setup Procedures The operation procedure of Simulink and Sysmac Studio is given below. 3.2.1 Outputting t
3.2. Simulink PLC Coder & Sysmac Studio Operation Procedure 3.2.1. Outputting the Code using the Simulink PLC Coder You make a setting for out
4 Select the Generate testbench for subsystem check box. 5 Click the Apply Button. 6 Click the Generate Code Button. 16
7 The PLCCoderDemoMC.xml file is saved into the plcsrc folder specified in Code Output Directory. Additional Information When you adjust the paramet
©OMRON, 2013 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any
3.2.2. Importing the Code into the Sysmac Studio You import the code outputted by the Simulink PLC Coder into the Sysmac Studio. Additional Informat
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 Progr
3.2.3. Checking the Calculation Accuracy You confirm that the code has the same calculation accuracy as the Simulink (within the acceptable error ran
4 Select Run from the Simulation Menu of the Sysmac Studio. 5 Double-click TestBench in the Multiview Explorer to display the program. 6 Confirm that
Additional Information The initial value of the acceptable error depends on the data type as shown below. Set an appropriate value according to the
3.2.4. Creating the EtherCAT Network Configuration You register a R88D-KN01L-ECT Servo Drive that operates as axis 0 on the EtherCAT network configura
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. 1 Doub
4 Make the Unit Conversion Settings according to the mechanical configuration. Unit of display: mm Command pulse count per motor rotation: 1048576 pul
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 ou
2 Create the PositionControl program for the following processing. - Servo ON (by executing an MC_Power instruction) - Home definition (by executing a
Introduction The NJ-series Startup Guide for Simulink® PLC Coder™ and Sysmac Studio (hereinafter, may be referred to as “this Guide”) describes the
Assigning the PositionControl program that you created to a task. 3 Double-click the Task Settings in the Multiview Explorer to display the Task Sett
3.2.7. Synchronization (Download) You transfer the programs and parameter settings to the physical CPU Unit. 29 1 Select Online from the Controll
3.2.8. System Operation Check You execute the operation according to the programs transferred to the physical CPU Unit and check the operation using
3 Make the trace settings as shown below. Trigger condition: Rising edge of PositionControl.Smv_Ex Trace target variables: PositionControl.i_Controll
5 Double-click PositionControl in the Multiview Explorer to display the program. 6 Change the value of StartPg variable for execution conditions o
4. Appendix 4.1. Programming in Ladder Diagram Language To call a function block from a program written in the ladder diagram language, the functi
2 When the code is imported to the Sysmac Studio, the BOOL variables are added as shown below. 3 The program to call the function block is written in
35 4.1. Sample File List The following sample files are related to this Guide. We provide the sample files separately. No. File Name Description
Terms and Conditions of Sale1. Offer; Acceptance. These terms and conditions (these "Terms") are deemedpart of all quotes, agreements, purc
2 Terms and Conditions Agreement Read and understand this catalog. Please read and understand this catalog before purchasing the products. Please co
OMRON CANADA, INC. • HEAD OFFICEToronto, ON, Canada • 416.286.6465 • 866.986.6766 • www.omron247.comOMRON ELECTRONICS DE MEXICO • HEAD OFFICEMéxico D
3 and limitations of use which apply to the Product. This information by itself is not sufficient for a complete determination of the suitability o
4 Precautions • When building a system, check the specifications for all devices and equipment that will make up the system and make sure that the O
5 Related Manuals The following manuals are related to the NJ-series Controllers. Use these manuals for reference. Manual name Cat. No. Model n
6 Manual name Cat. No. Model numbers Application Description NJ-series Instructions Reference Manual W502 NJ501-□□□□ NJ301-□□□□ Learning detailed
Revision History A manual revision code appears as a suffix to the catalog number on the front and back covers of the manual. 7 Cat. No. W529-E1
Kommentare zu diesen Handbüchern