beautypg.com

Yaskawa Ladder Works Programming Manual User Manual

Page 214

background image

A-2

・ Substitution operator

=

A right value is substituted for a left value

・ Reserved word

true/false

Value to logical expression

○ Priority level and uniting rule

There is a priority level in the operator, and the uniting rule is applied.

The priority level and the uniting rule (order from which the operand is evaluated) of the operator

are settled in the next table. The table is sequentially shown from the operator with a high

priority level. The operator of the same line has the same priority level, and is evaluated

according to the uniting rule.

Operator Explanation

Uniting

rule

[ ] ( )

expression

right from left

- !

monadic

left from right

* / %

multiplication, division,
surplus

right from left

+ -

addition, subtraction

right from left

< > <= >=

relation

right from left

== !=

relation(value)

right from left

&

AND of each bit

right from left

|

OR of each bit

right from left

&&

logical AND

right from left

||

logical OR

right from left

1.2 Operand

○ Constant

The constant is either the integer or the real number.

・ Integer

The integer can use the value within the range which can be expressed by 32 bit integer

value.(-2147483648~2147483647)

・ Real number

The real number can use the value within the range which can be expressed by 32 bit float type.

±(1.175494351e-38F~3.402823466e+38F)

○ Variable

In Expression, it is possible to describe by associating the arbitrary variable name permitted by C

language with controller's register.

Controller's bit type register is handled as bool type though the bool type variable does not exist