OMRON
CHAPTER 4 – CX-Supervisor Script Language
Revision 2.0
Page 25
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.
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.
Remarks
Syntax
REM | rem comment
or
‘comment
Remarks
Argument Type
Description
Comment
- - -
Descriptive text.
Typical Examples
REM The following statement adds two numbers
result = 45 + 754
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...