Important point, Data type – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 175

Advertising
background image

MotionSuite™ Series Machine Controller Programming Manual

Chapter 5: Variables (Registers)

5-3

Important Point

In the motion programs, the # register cannot be used. If a # register is used, a syntax error
results during compilation of the motion program.

!

!

!

! Data Type

As shown below, there are bit, integer number, 32-bit integer number, and real number
data. They are used for different purposes.

#

# Register

#B, #W, #L,
#Fnnnnn

#W00000~
#W16383

Registers that are only referenced within a
corresponding DWG. Actual range is
designated in MotionWorks™ by the user. The
register number nnnn is displayed with a
decimal. However, it cannot be used in the
motion programs.

Us

ed

fo

r i

ndi

vidu

a

l

pro

gra

m

D

D Register

DB, DW,
DL,
DFnnnnn

DW00000
~DW16383

Registers owned by each DWG. Therefore they
can only be used for the DWG. Actual range is
designated in MotionWorks™ by the user. The
register number nnnnn is displayed with a
decimal.

Data Type

Code

Data Type

Value Range

Notes

B

Bit

ON(1), OFF(0)

Used for relay sequence or ON/OFF condition
distinction.

W

Integer

-32768~+32767
(8000H~7FFFH)

Used in value calculations; as well as logical
calculations if in the ( ).

L

32-bit

-2147483648~+2147483647
(80000000H~7FFFFFFFH)

Used in value calculations; as well as logical
calculations if in the ( ).

F

Real

±(1.175E-38~3.402E+38),0

Used in advanced value calculations.

Variable Type (Continued)

Advertising