Table of contents
12 Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
Result codes for SCMD instructions ........................................................................... 483
Result codes for SOVR instructions ............................................................................. 484
SASI instruction examples ............................................................................................. 485
SATT instruction examples ........................................................................................... 486
SCLF instruction examples ............................................................................................ 486
SCMD instruction examples ......................................................................................... 487
SDET instruction examples ........................................................................................... 487
SOVR instruction examples ........................................................................................... 488
When should I use an SOVR instruction instead of an SCMD instruction? ...... 489
Chapter 9
Choose the Function Block Elements.......................................................................... 492
Latching Data.................................................................................................................... 493
Function Block Responses to Overflow Conditions ................................................ 494
Order of Execution .......................................................................................................... 495
Timing Modes .................................................................................................................. 499
Program/Operator Control ........................................................................................... 502
Function Block States ...................................................................................................... 505
Chapter 10
Structured Text Syntax ................................................................................................... 508
Structured Text Components: Comments ................................................................ 509
Structured Text Components: Assignments .............................................................. 510
Specify a non-retentive assignment ....................................................................... 511
Assign an ASCII character to a string data member ......................................... 512
Structured Text Components: Expressions ................................................................ 513
Use arithmetic operators and functions .............................................................. 514
Use bitwise operators ............................................................................................... 516
Use logical operators ................................................................................................ 516
Use relational operators .......................................................................................... 517
Structured Text Components: Instructions ............................................................... 519
Struct
ured Text Components: Constructs ................................................................. 520
Character string literals ................................................................................................... 521
String Types ............................................................................................................... 522
CASE_OF ......................................................................................................................... 523
FOR_DO ........................................................................................................................... 525
IF_THEN .......................................................................................................................... 527
REPEAT_UNTIL ........................................................................................................... 530
WHILE_DO .................................................................................................................... 533
Structured Text Attributes............................................................................................. 535
Function Block Attributes
Programming