
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.
Used for individual program
DD 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.
WInteger
-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)
Komentáře k této Příručce