MATLAB SIMULINK PLC CODER 1 Instructions d'exploitation

Naviguer en ligne ou télécharger Instructions d'exploitation pour Non MATLAB SIMULINK PLC CODER 1. MATLAB SIMULINK PLC CODER 1 Operating instructions Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 40
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Machine Automation Controller NJ-series
Startup Guide
for Simulink
®
PLC Coder™ &
Sysmac Studio
SYSMAC-SE20□□
NJ501-□□□□
NJ301-□□□□
R88D-KN-ECT
GX-AD0471/DA0271
W529-E1-01
Vue de la page 0
1 2 3 4 5 6 ... 39 40

Résumé du contenu

Page 1 - Sysmac Studio

Machine Automation Controller NJ-series Startup Guide for Simulink® PLC Coder™ & Sysmac Studio SYSMAC-SE20□□ NJ501-□□□□ NJ301-□□□□ R

Page 2 - ©OMRON, 2013

CONTENTS Introduction... 1 Intended Audie

Page 3 - Introduction

1. System to Construct and Configuration Devices 1.1. System Configuration and Configuration Devices This section describes the system configurati

Page 4

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

Page 5

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

Page 6 - Precautions

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

Page 7 - Related Manuals

Additional Information Set the sampling time of the Controller so that it matches the task period of the Sysmac Studio. (Primary periodic task perio

Page 8

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

Page 9 - W529-E1-01

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

Page 10 - CONTENTS

4 Select the Generate testbench for subsystem check box. 5 Click the Apply Button. 6 Click the Generate Code Button. 16

Page 11

7 The PLCCoderDemoMC.xml file is saved into the plcsrc folder specified in Code Output Directory. Additional Information When you adjust the paramet

Page 12

©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

Page 13

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

Page 14 - 2. Before You Begin

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

Page 15

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

Page 16 - 3. Setting up the System

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

Page 17

Additional Information The initial value of the acceptable error depends on the data type as shown below. Set an appropriate value according to the

Page 18 - Click the Apply Button

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

Page 19

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

Page 20

4 Make the Unit Conversion Settings according to the mechanical configuration. Unit of display: mm Command pulse count per motor rotation: 1048576 pul

Page 21

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

Page 22

2 Create the PositionControl program for the following processing. - Servo ON (by executing an MC_Power instruction) - Home definition (by executing a

Page 23

Introduction The NJ-series Startup Guide for Simulink® PLC Coder™ and Sysmac Studio (hereinafter, may be referred to as “this Guide”) describes the

Page 24

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

Page 25

3.2.7. Synchronization (Download) You transfer the programs and parameter settings to the physical CPU Unit. 29 1 Select Online from the Controll

Page 26 - 3.2.5. Setting the Axis

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

Page 27

3 Make the trace settings as shown below. Trigger condition: Rising edge of PositionControl.Smv_Ex Trace target variables: PositionControl.i_Controll

Page 28 - 3.2.6. Creating Programs

5 Double-click PositionControl in the Multiview Explorer to display the program. 6 Change the value of StartPg variable for execution conditions o

Page 29

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

Page 30

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

Page 31

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

Page 33

Terms and Conditions of Sale1. Offer; Acceptance. These terms and conditions (these "Terms") are deemedpart of all quotes, agreements, purc

Page 34

2 Terms and Conditions Agreement Read and understand this catalog. Please read and understand this catalog before purchasing the products. Please co

Page 35 - 4. Appendix

OMRON CANADA, INC. • HEAD OFFICEToronto, ON, Canada • 416.286.6465 • 866.986.6766 • www.omron247.comOMRON ELECTRONICS DE MEXICO • HEAD OFFICEMéxico D

Page 36

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

Page 37 - 4.1. Sample File List

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

Page 38

5 Related Manuals The following manuals are related to the NJ-series Controllers. Use these manuals for reference. Manual name Cat. No. Model n

Page 39 - Terms and Conditions of Sale

6 Manual name Cat. No. Model numbers Application Description NJ-series Instructions Reference Manual W502 NJ501-□□□□ NJ301-□□□□ Learning detailed

Page 40

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

Commentaires sur ces manuels

Pas de commentaire