EasyManuals Logo

Omron CX-Supervisor Reference Manual

Omron CX-Supervisor
164 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #32 background imageLoading...
Page #32 background image
Punctuation SECTION 4 CX-Supervisor Script Language
31
ELSE
IF altitude > 140 THEN
lift = lift - 0.2
ENDIF
ENDIF
IF burner AND fuel > 0 AND rate > 0 THEN
lift = lift + rate/5
ELSE
IF altitude > 140 THEN
lift = lift - 0.2
ENDIF
ENDIF
Both examples provide identical functionality, but the use of indentation, either
spaces or tabs to show the construction of the statements aids readability.
The use of the ELSEIF statement in this example was omitted for clarity.
4-5-3 Multiple Commands
Typical Examples
count = 75
result = log(count)
count = 75 : result = log(count)
Both examples provide identical functionality, but the use of the colon between
statements allows both to reside on the same line.
4-5-4 Parenthesis
Typical Examples
result = 20 + 30 * 40
The result is 1220.
result = (20 + 30) * 40
The values in parenthesis are calculated first. The result is 2000.
References
Refer to chapter 4, Logic and Arithmetic, Arithmetric Operations for further
details.
4-5-5 Quotation Marks
Typical Examples
name = "Valve position"
The Text point 'name' is assigned associated text, contained within quotation
marks. Quotation marks must be used in this instance.
Message("This text to be displayed as a message.")
Passing static text as arguments to functions.
BlueCarsAck = IsAlarmAcknowledged("BLUEPAINT")
The point 'BlueCarsAck' is assigned a Boolean state based on the alarm
'BLUEPAINT'. Quotation marks must be used for an alarm name.
4-5-6 Remarks
Syntax
REM | rem comment
or
'comment

Table of Contents

Other manuals for Omron CX-Supervisor

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CX-Supervisor and is the answer not in the manual?

Omron CX-Supervisor Specifications

General IconGeneral
BrandOmron
ModelCX-Supervisor
CategorySoftware
LanguageEnglish

Related product manuals