MATLAB SIMULINK PLC CODER 1 Istruzioni per gli Interventi Pagina 1

Navigare online o scaricare Istruzioni per gli Interventi per no MATLAB SIMULINK PLC CODER 1. MATLAB SIMULINK PLC CODER 1 Operating instructions Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 40
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 0
1 2 3 4 5 6 ... 39 40

Sommario

Pagina 1 - Sysmac Studio

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

Pagina 2 - ©OMRON, 2013

CONTENTS Introduction... 1 Intended Audie

Pagina 3 - Introduction

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 10 - CONTENTS

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

Pagina 11

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 20

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

Pagina 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

Pagina 22

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

Pagina 23

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

Pagina 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

Pagina 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

Pagina 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

Pagina 27

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 33

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

Pagina 34

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Commenti su questo manuale

Nessun commento