MATLAB SIMULINK PLC CODER 1 Instruções de Operação

Consulte online ou descarregue Instruções de Operação para não MATLAB SIMULINK PLC CODER 1. MATLAB SIMULINK PLC CODER 1 Operating instructions Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 40
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 0
1 2 3 4 5 6 ... 39 40

Resumo do Conteúdo

Página 1 - Sysmac Studio

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

Página 2 - ©OMRON, 2013

CONTENTS Introduction... 1 Intended Audie

Página 3 - Introduction

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 10 - CONTENTS

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

Página 11

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 20

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

Página 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

Página 22

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

Página 23

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

Página 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

Página 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

Página 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

Página 27

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

Página 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

Página 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

Página 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

Página 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

Página 33

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

Página 34

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Comentários a estes Manuais

Sem comentários