![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212038.webp)
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
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...