Logic And Arithmetic; Arithmetic Operators; Bitwise Operators - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

CHAPTER 4 – CX-Supervisor Script Language

Logic and Arithmetic

Arithmetic Operators

Syntax
pointname = expression
Remarks
Argument
pointname
expression
Typical Examples
result = 60 + 20/5
The Integer or Real point 'result' is assigned the value calculated by the value of 20 divided by 5,
plus 60.
lift = height + rate/5.0
The Integer or Real point 'lift' is assigned the value calculated by the value of point 'rate' divided by
5, plus the value of point 'height'. Precedence can be changed by the introduction of parenthesis.
References
Refer to chapter 4, Punctuation for details of the use of parenthesis.

Bitwise Operators

Syntax
pointname = expression
or
IF expression
or
DO WHILE expression
Page 12
The point name to be assigned a value based on an arithmetical expression.
The value to be assigned to pointname. The expression may include the
following operators with points and constants:
Addition '+'.
Subtraction '-'.
Multiplication '*'.
Division '/'.
Modulus '%'.
Increment '++'.
Decrement '--'.
Description
OMRON
Revision 2.0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents