Rockwell-automation Logix5000 Controllers Structured Text Programming Manuel d'utilisateur Page 1

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Équipement Rockwell-automation Logix5000 Controllers Structured Text Programming . Rockwell Automation Logix5000 Controllers Structured Text Programming Manual User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - Programming Manual

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

Page 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

Page 3 - Summary of Changes

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

Page 4

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

Page 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

Page 6

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

Page 7

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

Page 8 - How to Use this Manual

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

Page 9 - Program Structured Text

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

Page 10

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

Page 11 - Assignments

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

Page 12

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

Page 13 - Expressions

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

Page 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

Page 15

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

Page 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

Page 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

Page 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

Page 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

Page 20 - Instructions

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 27

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

Page 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

Page 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

Page 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

Page 31 - WHILE…DO

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

Page 32

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

Page 34 - REPEAT…UNTIL

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

Page 35

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

Page 36

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

Page 37 - Comments

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

Page 38 - For example:

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

Page 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

Page 40 - Documentation Feedback

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

Commentaires sur ces manuels

Pas de commentaire