Rockwell-automation Logix5000 Controllers Structured Text Programming Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Zařízení Rockwell-automation Logix5000 Controllers Structured Text Programming . Rockwell Automation Logix5000 Controllers Structured Text Programming Manual User Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk

Shrnutí obsahu

Strany 1 - Programming Manual

Logix5000 Controllers Structured TextCatalog Numbers 1756 ControlLogix, 1769 CompactLogix, 1789 SoftLogix, 1794 FlexLogix, PowerFlex 700S with DriveL

Strany 2 - Important User Information

10 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextInstruction(see page 20)An instruction is a standalone statemen

Strany 3 - Summary of Changes

Publication 1756-PM007D-EN-P - November 2012 11Program Structured Text Chapter 1AssignmentsUse an assignment to change the value stored within

Strany 4

12 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextSpecify a Non-retentive AssignmentThe non-retentive assignment

Strany 5 - Table of Contents

Publication 1756-PM007D-EN-P - November 2012 13Program Structured Text Chapter 1Assign an ASCII Character to a StringUse the assignment operato

Strany 6

14 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextIn structured text, you use two types of expressions:BOOL expre

Strany 7

Publication 1756-PM007D-EN-P - November 2012 15Program Structured Text Chapter 1Use Arithmetic Operators and FunctionsYou can combine multiple

Strany 8 - How to Use this Manual

16 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextFor example:Use Relational OperatorsRelational operators compar

Strany 9 - Program Structured Text

Publication 1756-PM007D-EN-P - November 2012 17Program Structured Text Chapter 1For example:How Strings Are EvaluatedThe hexadecimal values of

Strany 10

18 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextUse Logical OperatorsLogical operators let you check if multipl

Strany 11 - Assignments

Publication 1756-PM007D-EN-P - November 2012 19Program Structured Text Chapter 1Use Bitwise OperatorsBitwise operators manipulate the bits with

Strany 12

Important User InformationSolid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines

Strany 13 - Expressions

20 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextInstructionsStructured text statements can also be instructions

Strany 14 - If you want to Then

Publication 1756-PM007D-EN-P - November 2012 21Program Structured Text Chapter 1ConstructsConstructs can be programmed singly or nested within

Strany 15

22 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextIF...THENUse IF…THEN to do something if or when specific condit

Strany 16 - Use Relational Operators

Publication 1756-PM007D-EN-P - November 2012 23Program Structured Text Chapter 1This table summarizes combinations of IF, THEN, ELSIF, and ELSE

Strany 17 - How Strings Are Evaluated

24 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextExample 3: IF…THEN…ELSIFThe [:=] tells the controller to clear

Strany 18 - Use Logical Operators

Publication 1756-PM007D-EN-P - November 2012 25Program Structured Text Chapter 1CASE...OFUse CASE to select what to do based on a numerical val

Strany 19 - Use Bitwise Operators

26 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextThe syntax for entering the selector values is:The CASE constru

Strany 20 - Instructions

Publication 1756-PM007D-EN-P - November 2012 27Program Structured Text Chapter 1ExampleThe [:=] tells the controller to also clear the outlet t

Strany 21 - Constructs

28 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextFOR…DOUse the FOR…DO loop to do something a specific number of

Strany 22 - IF...THEN

Publication 1756-PM007D-EN-P - November 2012 29Program Structured Text Chapter 1Description: The syntax is:These diagrams show how a FOR...DO l

Strany 23 - Example 2: IF…THEN…ELSE

3Publication 1756-PM007D-EN-P - November 2012 3Summary of ChangesThis manual contains new and updated information. Changes throughout this revision ar

Strany 24 - Example 4: IF…THEN…ELSIF…ELSE

30 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextExample 1:Example 2:If you want this Enter this structured text

Strany 25 - CASE...OF

Publication 1756-PM007D-EN-P - November 2012 31Program Structured Text Chapter 1WHILE…DOUse the WHILE…DO loop to keep doing something as long a

Strany 26

32 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextThese diagrams show how a WHILE...DO loop executes and how an E

Strany 27

Publication 1756-PM007D-EN-P - November 2012 33Program Structured Text Chapter 1Example 2:If you want this Enter this structured textMove ASCII

Strany 28 - Structured Text

34 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextREPEAT…UNTILUse the REPEAT…UNTIL loop to keep doing something u

Strany 29 - Fault Conditions:

Publication 1756-PM007D-EN-P - November 2012 35Program Structured Text Chapter 1These diagrams show how a REPEAT...UNTIL loop executes and how

Strany 30 - Example 2:

36 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextExample 2:If you want this Enter this structured textMove ASCII

Strany 31 - WHILE…DO

Publication 1756-PM007D-EN-P - November 2012 37Program Structured Text Chapter 1CommentsTo make your structured text easier to interpret, add c

Strany 32

38 Publication 1756-PM007D-EN-P - November 2012Chapter 1 Program Structured TextFor example:Format Example//comment At the beginning of a line/

Strany 34 - REPEAT…UNTIL

4 Publication 1756-PM007D-EN-P - November 2012Summary of ChangesNotes:

Strany 35

Publication 1756-PM007D-EN-P - November 2012 41Supersedes Publication 1756-PM007C-EN-P - October 2009 Copyright © 2012 Rockwell Automation, Inc. All r

Strany 36

5Publication 1756-PM007D-EN-P - November 2012 5Table of ContentsPrefaceStudio 5000 Engineering and Design Environment and Logix Designer Application.

Strany 37 - Comments

6 Publication 1756-PM007D-EN-P - November 2012Table of Contents

Strany 38 - For example:

7Publication 1756-PM007D-EN-P - November 2012 7PrefaceStudio 5000 Engineering and Design Environment and Logix Designer ApplicationThe Studio 5000™ En

Strany 39

8 Publication 1756-PM007D-EN-P - November 2012Preface How to Use this ManualSome text is formatted differently from the rest of the text.Text t

Strany 40 - Documentation Feedback

Publication 1756-PM007D-EN-P - November 2012 9Chapter 1Program Structured TextIntroductionStructured text is a textual programming language that uses

Komentáře k této Příručce

Žádné komentáře