ABB ST语言编程

时间:2025-07-06

System 800xA Training

Chapter 13Structured Text

TABLE OF CONTENTS

Chapter 13 Structured Text............................................................................................................................................................1

13.1 General Information...........................................................................................................................................................2

13.1.1 Objectives....................................................................................................................................................................2

13.1.2 Legend.........................................................................................................................................................................2

13.1.3 Reference Documentation...........................................................................................................................................2

13.2 Structured Text...................................................................................................................................................................3

13.2.1 Advantages of Using Structured Text..........................................................................................................................3

13.2.2 Structured Text Editor.................................................................................................................................................4

13.3 Basic Language Elements...................................................................................................................................................5

13.3.1 Assignment Statements................................................................................................................................................5

13.3.2 Comment Statements...................................................................................................................................................5

13.3.3 Operators.....................................................................................................................................................................6

13.3.4 Precedence...................................................................................................................................................................7

13.3.5 Conditional Structures.................................................................................................................................................8

13.3.6 Iteration Structures......................................................................................................................................................9

13.3.7 RETURN Statement..................................................................................................................................................10

13.4 Functions and Function Blocks........................................................................................................................................11

13.4.1 Functions...................................................................................................................................................................11

13.4.2 Function Blocks.........................................................................................................................................................11

13.4.3 Declaring Function Block Instances..........................................................................................................................12

13.4.4 Calling a Function Block Instance.............................................................................................................................12

13.5 Common Mistakes and their Error Messages...................................................................................................................15

13.5.1 Identifier, Constant or Opening Parenthesis Expected..............................................................................................15

13.5.2 Variable Name is not Unique....................................................................................................................................15

13.5.3 Identifier Too Long or Invalid...................................................................................................................................16

13.5.4 Undefined Function Block.........................................................................................................................................16

13.5.5 Type Mismatch in Assignment..................................................................................................................................17

13.5.6 Incompatible Types in Expression.............................................................................................................................17

13.5.7 Declaring Variables from Error Messages.................................................................................................................18

13.6 Changing from ST to Function Block in Online mode.....................................................................................................19

Chapter13-1

…… 此处隐藏:3277字,全部文档内容请下载后查看。喜欢就下载吧 ……
ABB ST语言编程.doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219