Plain English and Script Difference Guide
Plain English and Script Difference Guide
Introduction
1 About This Guide .......................................................... 9
1.1 Purpose of This Guide ............................................................... 11
1.2 How This Guide is Organized .................................................... 12
1.3 Safety Information ...................................................................... 13
Reference
3 Script Programming Language Overview .................. 21
3.1 Plain English and Script Differences Overview .......................... 23
3.1.1 Script Programs ...................................................................... 23
3.1.2 Script Functions ....................................................................... 23
3.1.3 Types of Script Programs and Functions ................................ 23
3.1.4 Program Status and Configuration Information ........................ 24
3.1.5 Tasks ....................................................................................... 24
3.1.6 Script and Plain English Program Differences ......................... 24
3.2 Tasks ......................................................................................... 25
Topics
Purpose of This Guide
How This Guide is Organized
Safety Information
1 About This Guide
1.1 Purpose of This Guide
Introduction
The Introduction part contains information on the purpose of this guide, how this
guide is organized, where to find more information, and information on
regulatory notices.
Reference
The Reference part contains conceptual information, procedures, user interface
descriptions and troubleshooting information. If you want more information, see
WebHelp or the other EcoStruxure BMS guides.
DANGER
DANGER indicates a hazardous situation which, if not avoided, will result in
death or serious injury.
WARNING
WARNING indicates a hazardous situation which, if not avoided, could result
in death or serious injury.
CAUTION
CAUTION indicates a hazardous situation which, if not avoided, could result
in minor or moderate injury.
NOTICE
NOTICE is used to address practices not related to physical injury.
Please Note
Electrical equipment should be installed, operated, serviced, and maintained
only by qualified personnel. No responsibility is assumed by Schneider Electric
for any consequences arising out of the use of this material.
A qualified person is one who has skills and knowledge related to the
construction, installation, and operation of electrical equipment and has
received safety training to recognize and avoid the hazards involved.
Topics
Where to Find Additional Information
2 Additional Information
2.1 Where to Find Additional Information
Finding information
The easiest way to find information on WebHelp is to search for it.
All technical information is gathered in one place, so you do not need to know
which guide, specification sheet, or installation sheet the information is in.
Topics
Plain English and Script Differences Overview
Tasks
3 Script Programming Language Overview
3.1 Plain English and Script Differences Overview
3.1.5 Tasks
Function block and Script programs must be connected to tasks in order to run.
You access Tasks from the Properties dialog box.
The task is a property of the object that defines the program cycles.
When you create a new function block or Script program, Task 3 is the default.
This means that one program cycle executes in 1000 ms.
For more information, see section 3.2 “Tasks” on page 25.
3.2 Tasks
Function block and Script programs must be connected to tasks in order to run.
You access Tasks from the Properties dialog box.
The task is a property of the object that defines the program cycles.
When you create a new function block or Script program, Task 3 is the default.
This means that one program cycle executes in 1000 ms.
Figure: Tasks
The way you schedule programs to execute in Script differs from how you
schedule them to execute in Continuum. For more information, see section 4.1
“Script and Plain English Program Differences ” on page 29.
Task 3 1 seconds
Task 4 5 seconds
Task 5 10 seconds
Topics
Script and Plain English Program Differences
Declaring a Binding Variable
Declaring a User Function
Configuring BACnet Priority Level Access
Configuring BACnet Priority Level Access for a b3 BACnet
Device
Configuring Delays in Plain English Programs
Using System Constants
4 Program Language Differences
4.1 Script and Plain English Program Differences
NOTICE
• You can use nested function calls in Script.
NOTICE
b3 BACnet devices continue to use the legacy Plain English method of
explicitly stating the priority level. For more information, see section 4.5
“Configuring BACnet Priority Level Access for a b3 BACnet Device” on page
36.
Plain English does not have a Wait or Delay keyword. Instead, Plain English uses
elapsed time keywords, such as TS, TM, TH, and TD to program delays. For
example, you can use the TS progam property to check whether enough time
has passed while on a given line. The program may continue to execute various
statements all along, unlike EcoStruxure BMS, where the program is actually
paused until the time elapses.
The elapsed time keyword method continues to work in Script. The Wait keyword
is not required. Wait is more efficient, however, since it provides a simpler syntax
than that of the elapsed time keywords for both the AS and ES.
The Wait syntax is as follows:
Wait <numeric_expression>
NOTICE
• Wait and Delay are applicable only to standard Script programs and not to
b3 Script programs.
Continued
Continuum EcoStruxure BMS
NOTICE
• The ReadProperty and WriteProperty keywords are available in Script,
but the priority level argument is not needed in the statement. It is
assumed based on the binding information.
4. In the Plain English IDE Editor, use the TS property to check whether
enough time has passed while on a given line.
Topics
Script Editor Similarities to Plain English IDE Editor
Script Editor Color-Coded Program Elements
Script Editor Code Library
Plain English Code Import and Export in Script
5 Script Editor Overview
5.1 Script Editor Similarities to Plain English IDE Editor
Toolbars
Use the toolbars to perform a variety of
functions, including opening, closing,
saving, printing, importing, and exporting
Script programs.
Text Black
Keyword Blue
Value Maroon
String Red
Number Navy
Operator Teal
Comment Green
04-20002-02-en
May 2019