Rockwell-automation Logix5000 Controllers Structured Text Programming Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Ekwipunek Rockwell-automation Logix5000 Controllers Structured Text Programming . Rockwell Automation Logix5000 Controllers Structured Text Programming Manual User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj

Podsumowanie treści

Strona 1 - Programming Manual

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

Strona 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

Strona 3 - Summary of Changes

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

Strona 4

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

Strona 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

Strona 6

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

Strona 7

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

Strona 8 - How to Use this Manual

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

Strona 9 - Program Structured Text

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

Strona 10

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

Strona 11 - Assignments

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

Strona 12

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

Strona 13 - Expressions

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

Strona 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

Strona 15

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 20 - Instructions

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 27

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

Strona 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

Strona 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

Strona 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

Strona 31 - WHILE…DO

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

Strona 32

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

Strona 34 - REPEAT…UNTIL

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

Strona 35

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

Strona 36

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

Strona 37 - Comments

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

Strona 38 - For example:

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

Strona 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

Strona 40 - Documentation Feedback

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

Komentarze do niniejszej Instrukcji

Brak uwag