Yaskawa Ladder Works Programming Manual User Manual

Page 215

Advertising
background image

A-3

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.

Ex: Abc

OK

get_input0

OK

1ab

NG

Sin

NG

1.2 Function

The following arithmetic functions can be used.

cos(), sin(), arctan(), tan()

2. Recognizable expression

The Expression is described by combining the operand and the operator. There are some restrictions

in the description method. The restriction is explained as follows.

○ Arithmetic operator

This operator can be used for the operand of the integer type and the real type.

The monadic minus can be used only once. The bit operation can use only the integer type. The

arithmetic operation cannot be used for the operand of the bit type.

Even if the calculation value exceeds the range of the register, the type conversion is not

automatically done. Therefore, the user should allocate an appropriate type in the variable.

Example:

MW00001

=

MW00002

+

MW00003 OK

MW00001

=

MW00002

/

345

OK

MF00002 = (MW00004 + MF00002) / (ML00018 + MW00008) OK

MW00001

=

MW00002

&

4096

OK

MB000010

=

MB000011

MB000012

NG

MW00001

=

MB000011

*

MW00001 NG

Advertising