Control Statements; Simple Conditional Statements - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

OMRON
Remarks
Argument
Expression
Typical Example
IF fuel < 0 THEN
fuel = 0
ENDIF
The point 'fuel' is assigned the value 0 on the condition that currently, 'fuel' is less than 0. If 'fuel'
is not less than 0, then it is not assigned the new value.
References
Refer to chapter 4, Control Statements for details of the use of the IF THEN ELSE/ELSEIF ENDIF
statements.

Control Statements

Simple Conditional Statements

Syntax
IF condition THEN
statementblock1
ENDIF
or
IF condition THEN
statementblock1
ELSE
statementblock2
ENDIF
Revision 2.0
CHAPTER 4 – CX-Supervisor Script Language
The value forming a conditional statement. The expression may include the
following operators with points and constants:
Greater than '>'.
Less than '<'.
Greater than or equal to '>='.
Less than or equal to '<='.
Not equal to '!='.
Equal to '=='.
Description
Page 15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents