Baixe Program Unit Schenneider e outras Notas de estudo em PDF para Engenharia Elétrica, somente na Docsity!
35006144.07 www.schneider-electric.com
Unity Pro
Program Languages and Structure
Reference Manual
07/2008 eng
2
- Safety Information - About the Book - Part I General Presentation of Unity Pro - Introduction
- Chapter 1 Presentation - Introduction - Capabilities of Unity Pro - User Interface - Project Browser - User Application and Project File Formats - Configurator. - Data Editor - Program Editor - Function Block Diagram FBD - Ladder Diagram (LD) Language - General Information about SFC Sequence Language - Instruction List IL - Structured Text ST - PLC Simulator - Export/Import. - User Documentation - Debug Services - Diagnostic Viewer - Operator Screen
- Part II Application Structure. - At a Glance
- Chapter 2 Description of the Available Functions for Each Type of PLC - Functions Available for the Different Types of PLC.
- Chapter 3 Application Program Structure - At a Glance
- 3.1 Description of Tasks and Processes
- At a Glance
- Presentation of the Master Task
- Presentation of the Fast Task
- Presentation of Auxiliary Tasks
- Overview of Event Processing
- 3.2 Description of Sections and Subroutines
- At a Glance
- Description of Sections
- Description of SFC sections.
- Description of Subroutines.
- 3.3 Mono Task Execution
- At a Glance
- Description of the Master Task Cycle
- Mono Task: Cyclic Execution.
- Periodic Execution
- Control of Cycle Time
- Execution of Quantum Sections with Remote Inputs/Outputs
- 3.4 Multitasking Execution
- At a Glance
- Multitasking Software Structure
- Sequencing of Tasks in a Multitasking Structure
- Task Control.
- Assignment of Input/Output Channels to Master, Fast and Auxiliary Tasks
- Management of Event Processing
- Execution of TIMER-type Event Processing
- Input/Output Exchanges in Event Processing
- How to Program Event Processing
- Chapter 4 Application Memory Structure - At a Glance
- 4.1 Memory Structure of the Premium, Atrium and Modicon M340 PLCs
- Description
- Memory Structure of Modicon M340 PLCs
- Memory Structure of Premium and Atrium PLCs.
- Detailed Description of the Memory Zones
- 4.2 Memory Structure of Quantum PLCs.
- Description
- Memory Structure of Quantum PLCs
- Detailed Description of the Memory Zones
- Chapter 5 Operating Modes - At a Glance
- 5.1 Modicon M340 PLCs Operating Modes
- Description
- Processing of Power Outage and Restoral of Modicon M340 PLCs.
- Processing on Cold Start for Modicon M340 PLCs
- Processing on Warm Restart for Modicon M340 PLCs.
- Automatic Start in RUN for Modicon M340 PLCs
- 5.2 Premium, Quantum PLCs Operating Modes.
- Description
- Processing of Power Outage and Restoral for Premium/Quantum PLCs
- Processing on Cold Start for Premium/Quantum PLCs
- Processing on Warm Restart for Premium/Quantum PLCs
- Automatic Start in RUN for Premium/Quantum.
- 5.3 PLC HALT Mode
- Chapter 6 System objects - At a Glance
- 6.1 System Bits
- Description
- System Bit Introduction
- Description of System Bits %S0 to %S7
- Description of System Bits %S9 to %S13
- Description of System Bits %S15 to %S21
- Description of System Bits %S30 to %S59
- Description of System Bits %S60 to %S79
- Description of System Bits %S80 to %S96
- Description of System Bits %S100 to %S122
- 6.2 System Words
- Description
- Description of System Words %SW0 to %SW11
- Description of System Words %SW12 to %SW29
- Description of System Words %SW30 to %SW47
- Description of System Words %SW48 to %SW59
- Description of System Words %SW70 to %SW99
- Description of System Words %SW108 to %SW116
- Description of System Words %SW124 to %SW127
- 6.3 Atrium/Premium-specific System Words
- Description
- Description of System Words %SW60 to %SW65
- Description of System Words %SW128 to %SW143
- Description of System Words %SW144 to %SW146
- Description of System Words %SW147 to %SW152
- Description of System Word %SW153
- Description of System Word %SW154
- Description of Premium/Atrium System Words %SW155 to %SW167
- 6.4 Quantum-specific System Words
- Description
- Description of System Words %SW60 to %SW65 - Description of Quantum System Words %SW110 to %SW179. - Description of Quantum System Words %SW180 to %SW640.
- 6.5 Modicon M340-Specific System Words
- Description of System Words %SW160 to %SW167.
- Part III Data Description - At a Glance
- Chapter 7 General Overview of Data - At a Glance - General - General Overview of the Data Type Families - Overview of Data Instances - Overview of the Data References - Syntax Rules for Type\Instance Names.
- Chapter 8 Data Types - At a Glance - 8.1 Elementary Data Types (EDT) in Binary Format - At a Glance - Overview of Data Types in Binary Format - Boolean Types - Integer Types - The Time Type. - 8.2 Elementary Data Types (EDT) in BCD Format - At a Glance - Overview of Data Types in BCD Format - The Date Type - The Time of Day (TOD) Type - The Date and Time (DT) Type - 8.3 Elementary Data Types (EDT) in Real Format - Presentation of the Real Data Type. - 8.4 Elementary Data Types (EDT) in Character String Format - Overview of Data Types in Character String Format - 8.5 Elementary Data Types (EDT) in Bit String Format - At a Glance - Overview of Data Types in Bit String Format. - Bit String Types - 8.6 Derived Data Types (DDT/IODDT) - At a Glance - Arrays. - Structures. - Overview of the Derived Data Type family (DDT) - DDT: Mapping Rules - Overview of Input/Output Derived Data Types (IODDT) - 8.7 Function Block Data Types (DFB\EFB) - At a Glance - Overview of Function Block Data Type Families. - Characteristics of Function Block Data Types (EFB\DFB) - Characteristics of Elements Belonging to Function Blocks - 8.8 Generic Data Types (GDT) - Overview of Generic Data Types - 8.9 Data Types Belonging to Sequential Function Charts (SFC) - Overview of the Data Types of the Sequential Function Chart Family - 8.10 Compatibility Between Data Types - Compatibility Between Data Types
- Chapter 9 Data Instances - At a Glance - Data Type Instances - Data Instance Attributes - Direct Addressing Data Instances
- Chapter 10 Data References - At a Glance - References to Data Instances by Value - References to Data Instances by Name - References to Data Instances by Address - Data Naming Rules - Part IV Programming Language - Introduction
- Chapter 11 Function Block Language FBD - Introduction - General Information about the FBD Function Block Language. - Blocks and Procedures (FFBs) Elementary Functions, Elementary Function Blocks, Derived Function - Subroutine Calls - Control Elements. - Link - Text Object - Execution Sequence of the FFBs - Change Execution Sequence - Loop Planning
- Chapter 12 Ladder Diagram (LD) - Introduction - General Information about the LD Ladder Diagram Language - Contacts - Coils - Procedures (FFBs). Elementary Functions, Elementary Function Blocks, Derived Function Blocks and - Control Elements - Operate Blocks and Compare Blocks - Links. - Text Object. - Edge Recognition. - Execution Sequence and Signal Flow - Loop Planning - Change Execution Sequence
- Chapter 13 SFC Sequence Language. - Introduction
- 13.1 General Information about SFC Sequence Language.
- Introduction
- General Information about SFC Sequence Language.
- Link Rules
- 13.2 Steps and Macro Steps
- Introduction
- Step
- Macro Steps and Macro Sections
- 13.3 Actions and Action Sections
- Introduction
- Action
- Action Section
- Qualifier
- 13.4 Transitions and Transition Sections.
- Introduction
- Transition
- Transition Section
- 13.5 Jump
- 13.6 Link
- 13.7 Branches and Merges
- Introduction
- Alternative Branches and Alternative Joints
- Parallel Branch and Parallel Joint
- 13.8 Text Objects.
- 13.9 Single-Token
- Introduction
- Execution Sequence Single-Token
- Alternative String
- Sequence Jumps and Sequence Loops
- Parallel Strings.
- Asymmetric Parallel String Selection
- 13.10 Multi-Token - Introduction - Multi-Token Execution Sequence - Alternative String - Parallel Strings - Jump into a Parallel String - Jump out of a Parallel String
- Chapter 14 Instruction List (IL) - Introduction - 14.1 General Information about the IL Instruction List - Introduction - General Information about the IL Instruction List - Operands. - Modifier - Operators - Subroutine Call - Labels and Jumps - Comment. - Blocks and Procedures 14.2 Calling Elementary Functions, Elementary Function Blocks, Derived Function - Introduction - Calling Elementary Functions - Calling Elementary Function Blocks and Derived Function Blocks - Calling Procedures
- Chapter 15 Structured Text (ST) - Introduction - 15.1 General Information about the Structured Text ST - Introduction - General Information about Structured Text (ST) - Operands. - Operators - 15.2 Instructions - Introduction - Instructions - Assignment - Select Instruction IF...THEN...END_IF - Select Instruction ELSE. - Select Instruction ELSIF...THEN - Select Instruction CASE...OF...END_CASE - Repeat Instruction FOR...TO...BY...DO...END_FOR - Repeat Instruction WHILE...DO...END_WHILE - Repeat Instruction REPEAT...UNTIL...END_REPEAT - Repeat Instruction EXIT - Subroutine Call - RETURN - Empty Instruction - Labels and Jumps - Comment - Blocks and Procedures 15.3 Calling Elementary Functions, Elementary Function Blocks, Derived Function - Introduction - Calling Elementary Functions - Call Elementary Function Block and Derived Function Block - Procedures.
- Part V User Function Blocks (DFB)
- Chapter 16 Overview of User Function Blocks (DFB) - At a Glance - Introduction to User Function Blocks - Implementing a DFB Function Block
- Chapter 17 Description of User Function Blocks (DFB) - At a Glance - Definition of DBF Function Block Internal Data - DFB Parameters - DFB Variables - DFB Code Section
- Chapter 18 User Function Blocks (DFB) Instance - At a Glance - Creation of a DFB Instance - Execution of a DFB Instance - Programming Example for a Derived Function Block (DFB) - Languages Chapter 19 Use of the DFBs from the Different Programming - At a Glance - Rules for Using DFBs in a Program. - Use of IODDTs in a DFB - Use of a DFB in a Ladder Language Program. - Use of a DFB in a Structured Text Language Program - Use of a DFB in an Instruction List Program - Use of a DFB in a Program in Function Block Diagram Language
- Chapter 20 User Diagnostics DFB - Presentation of User Diagnostic DFBs
- Appendices - Introduction
- Appendix A EFB Error Codes and Values. - Overview - Tables of Error Codes for the Base Library. - Tables of Error Codes for the Diagnostics Library - Tables of Error Codes for the Communication Library - Tables of Error Codes for the IO Management Library - Tables of Error Codes for the CONT_CTL Library - Tables of Error Codes for the Motion Library - Tables of Error Codes for the Obsolete Library. - Common Floating Point Errors
- Appendix B IEC Compliance - At a Glance - B.1 General Information regarding IEC 61131-3 - General information about IEC 61131-3 Compliance - B.2 IEC Compliance Tables. - At a Glance - Common elements - IL language elements - ST language elements - Common graphical elements. - LD language elements - Implementation-dependent parameters - Error Conditions - B.3 Extensions of IEC 61131-3 - Extensions of IEC 61131-3, 2nd Edition - B.4 Textual language syntax - Textual Language Syntax
§
Safety Information
Important Information
NOTICE Read these instructions carefully, and look at the equipment to become familiar with the device before trying to install, operate, or maintain it. The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure.
The addition of this symbol to a Danger or Warning safety label indicates that an electrical hazard exists, which will result in personal injury if the instructions are not followed.
This is the safety alert symbol. It is used to alert you to potential personal injury hazards. Obey all safety messages that follow this symbol to avoid possible injury or death.
DANGER indicates an imminently hazardous situation, which, if not avoided, will result in death or serious injury.
DANGER
WARNING indicates a potentially hazardous situation, which, if not avoided, can result in death, serious injury, or equipment damage.
WARNING
CAUTION indicates a potentially hazardous situation, which, if not avoided, can result in injury or equipment damage.
CAUTION
Safety Information
PLEASE NOTE Electrical equipment should be installed, operated, serviced, and maintained only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material. © 2008 Schneider Electric. All Rights Reserved.
About the Book
I
General Presentation of Unity Pro
Introduction
Contents of this Section
This section describes the general design and behavior of an application created with Unity Pro.
What's in this Part?
This part contains the following chapters:
Chapter Chapter Name Page 1 Presentation 19
Presentation
Introduction
Overview This chapter describes the general design and behavior of a project created with Unity Pro.
What's in this Chapter?
This chapter contains the following topics:
Topic Page Capabilities of Unity Pro 20 User Interface 24 Project Browser 26 User Application and Project File Formats 27 Configurator 31 Data Editor 34 Program Editor 41 Function Block Diagram FBD 44 Ladder Diagram (LD) Language 46 General Information about SFC Sequence Language 48 Instruction List IL 51 Structured Text ST 52 PLC Simulator 53 Export/Import 54 User Documentation 55 Debug Services 56 Diagnostic Viewer 62 Operator Screen 63
Presentation
Capabilities of Unity Pro
Hardware Platforms
Unity Pro supports the following hardware platforms: z Modicon M z Premium z Atrium z Quantum
Programming Languages
Unity Pro provides the following programming languages for creating the user program: z Function Block Diagram FBD z Ladder Diagram (LD) language z Instruction List IL z Structured Text ST z Sequential Control SFC All of these programming languages can be used together in the same project. All these languages conform to IEC 61131-3.
Block Libraries The blocks that are included in the delivery of Unity Pro extensive block libraries extend from blocks for simple Boolean operations, through blocks for strings and array operations to blocks for controlling complex control loops. For a better overview the different blocks are arranged in libraries, which are then broken down into families. The blocks can be used in the programming languages FBD, LD, IL and ST.
Elements of a Program
A program can be constructed from: z a Master task (MAST) z a Fast task (FAST) z one to four Aux Tasks (not available for Modicon M340) z sections, which are assigned one of the defined tasks z sections for processing time controlled events (Timerx) z sections for processing hardware controlled events (EVTx) z subroutine sections (SR)