beautypg.com

A.1.2 operand – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 242

background image

Appendix A Expression

A.1.2 Operand

A-4

A.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 to 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 to 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 in C language. The bool type variable takes only either of value of true or false. It can
be used only for the logical expression.

The following limitations are installed in the variable name which can be used.

• It is started from characters other than the numerical value.
• The character which can be used is alphabet and underscore “_”, and figures among

ASCII characters.

• The same variable name as the following function names cannot be used.

Abc

OK

get_input0

OK

1ab

NG

Sin

NG

EXAMPLE

This manual is related to the following products: