Condition Comparators; Conditional Join Operators - Omron NY532-5400 Instruction & Reference Manual

Nj/ny-series, machine automation controller, industrial pc platform, g code
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

4-1-4

Condition comparators

Condition comparators are used to compare numbers. The result of comparison is represented by a
truth-value (TRUE or FALSE). The truth-value is not adapted to general numerical expressions.
Syntax
{exp1} == {exp2}
{exp1} != {exp2}
{exp1} < {exp2}
{exp1} > {exp2}
{exp1} <= {exp2}
{exp1} >= {exp2}
4-1-5

Conditional join operators

Conditional join operators are used to join truth-values.
Syntax
{condition1} && {condition2}
{condition1} || {condition2}
!({condition})
Logical negation operator (!) always require ().
NJ/NY-series G code Instructions Reference Manual (O031)
Operation
Equality comparison operator
None equality comparison operator
Less than comparison operator
Greater than comparison operator
Less than or equal comparison operator
Greater than or equal comparison operator
Operation
Logical AND operation
Logical OR operation
Logical negation
4 PROGRAM CODES
4 - 5
4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-5300

Table of Contents