MasterLogic Programming Languages Describe the different Programming Languages MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
2
Introduction
• ML200R supports the following IEC (International Electro-technical Commission) 61131-3 Programming Languages:
– Ladder Diagram (LD)
• Graphical language based on ladder logic – Sequential Function Chart (SFC)
• Logic is implemented in the form of steps (actions) and transitions (conditions)
– Structured Text (ST) – Instruction List (IL)
MasterLogic Programming Languages Describe the different Programming Languages
2
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
3
Ladder Diagram
• An IEC 61131-3 Standard Programming Language
• Used to create logic for relay, timer and counter operations
• User-friendly graphical editor for creating ladder diagrams
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
4
Ladder Diagram - Edit Tools
Editing Toolbar
Programming area
3
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
5
Ladder Diagram - Example
Bus Line Rung Contact Horizontal Link Vertical Link Function Block Function Jump Label • Ladder Diagram Components
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
6
Ladder Diagram Components
• Bus Line
– A ‘Bus Line’ is a power line vertically placed on both sides of a ladder diagram
– Every ladder diagram must contain bus lines – Two types
• Left Bus Line
– Value is always 1
• Right Bus Line – Value is not fixed
MasterLogic Programming Languages Describe the different Programming Languages
4
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
7
Ladder Diagram Components
• Link
– Horizontal Link
• Used to connect components horizontally
• Transmits the signal from the left side to the right side – Vertical Link
• Used to connect components vertically
• Performs a logical OR function of two horizontal links which are connected using a vertical link
• Contact
– A contact operates like an electric switch and transmits a signal over a horizontal link – Two types
• Normally Open (NO) • Normally Closed (NC)
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
8
• Coil
– Stores the value of the signal on the left side of a horizontal link – Acts like an output device
– Two types • Momentary
– When the left side horizontal link is ON, the coil stores ON momentarily
• Latched
– When the left side horizontal link is ON, the coil stores ON until reseted by a reset coil
Ladder Diagram Components
NO NC
Set Reset
5
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
9
Ladder Diagram Components
• Functions and Function Blocks
– Operations like swap, select, type convert, etc. are pre-defined and available as directly usable functions
– Pre-defined function blocks are provided for counting and timing operations – Users can create custom functions / function blocks based on requirements
Note: Refer reference section in the course for more information on Function Blocks
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
10
Ladder Diagram - Monitoring
Coil in OFF state Contact in ON state Contact in OFF state Coil in ON state
Note: Refer reference section in the course for more information on Ladder Diagram Programming
MasterLogic Programming Languages Describe the different Programming Languages
6
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
11
Sequential Function Chart (SFC)
• An IEC 61131-3 Standard Programming Language
• Suitable for batch applications
• Used to control the execution sequence of other programs like LD, IL etc.
SFC Toolbar
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
12
Sequential Function Chart - Example
Initial Step
Transition
Action Qualifiers • Sequential Function Chart Components
Action
7
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
13
Sequential Control Chart - Components
• Step
– When a step is active, the actions connected to it get executed – One step can have a maximum of 2 actions
– A step without action is considered a ‘waiting’ step
• Transition
– Conditional expression between two steps
– Transition condition is in the form of a Ladder Diagram or Instruction List – The result of a transition condition must always be in BOOL (Boolean) form – In the example shown below, step S2 is executed when TRANS coil
becomes active (1)
• TRANS is an internally declared variable TRAN1
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
14
Sequential Control Chart - Components
Steps and transitions can be associated
with Boolean variables
MasterLogic Programming Languages Describe the different Programming Languages
8
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
15
Sequential Control Chart - Components
• Action
– Action takes the form of PLC language: Ladder Diagram, Instruction List etc. – Action qualifiers are used to control the Action
– In the example shown below, when S1 is activated: – Action 1 gets executed
– Action 2 gets executed even if S1 is inactivated
• It stops the execution only when an action with an R qualifier is executed Action1 Action2 Action qualifiers N: Not Stored S: Stored
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
16
Sequential Control Chart - Action Qualifiers
• Every action is associated with an ‘Action’ qualifier
• Action qualifiers:
– Decide the starting point to execute the action – Decide the time at which the action is executed
• SFC consists of the following action qualifiers: – N (Not stored) – S (Set) – R (Reset) – L (Time limited) – D (Time delayed) – P (Pulse)
– SD (Stored and Time delayed) – DS (Delayed and Stored) – SL (Stored and Time limited)
9
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
17
Sequential Function Chart - Monitoring
Active Step Active Action Details of the Action in Ladder diagram form
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
18
Structured Text (ST)
• An IEC 61131-3 Standard Programming Language
• Reduces engineering and is easy to understand
• Generally used for creating user-defined functions/function blocks
• Compatible with other IEC languages
MasterLogic Programming Languages Describe the different Programming Languages
10
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
19
Structured Text - Example
Syntax Coloring Break points Bookmarker Tool tip Support Monitoring Window Split View Auto Identifier Auto tabular (indentation)
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
20
Structured Text - Monitoring
The values of variables can be changed and the program
tested
Offline mode Online mode
11
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
21
Instruction List (IL)
• An IEC 61131-3 Standard Programming Language
• A mnemonic programming language
• View-only mode
– Programs written in LD can be viewed in IL
MasterLogic Programming Languages Describe the different Programming Languages
Honeywell
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012
22
Instruction List
Click to open Instruction List
MasterLogic Programming Languages Describe the different Programming Languages
12
23
Honeywell Confidential Copyright © 2012 Honeywell International Inc.
4/25/2012