Variable overview -2, 1 outline, 1 variable overview – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual
Page 174: Variable (register) type

MotionSuite™ Series Machine Controller Programming Manual
Chapter 5: Variables (Registers)
5-2
5.1
Outline
In this section, an outline of the variables is described.
5.1.1
Variable Overview
In motion programs the variables can be used to describe values instead of directly
giving the values. When using variables, the motion program uses the values stored
in an area reserved for variables.
!
!
!
! Variable (Register) Type
Motion programs can use the following 7 types of registers (described in the following
table) as variables. The S, M, I, O, and C registers are called global variables which can be
used in both motion programs and ladder programs. The # and D registers are called local
variables which are only capable of referencing within an individual program. However,
the local variables are secured in program memories; they take space from the programs.
Variable Type
T
ype
Name
Command
Method
Range
Content
C
h
ar
a
ct
er
is
ti
c
S
System Register
SB, SW, SL,
SFnnnnn
SW00000
~SW01023
Registers prepared in the system. The register
number nnnnn is displayed with a decimal.
When the system starts, the
SW00000~SW00049 is cleared to 0.
Us
e
d
by
all
ki
nds
o
f pr
ogra
m
s
M
Data Register
MB, MW,
ML,
MFnnnnn
MW00000
~MW32767
Registers used for the I/F between each DWG.
The register number nnnnn is displayed with a
decimal.
I
Input Register
IB, IW,
IL, IFhhhh
IW0000
~IW07FF
Registers used for I/O module input data. The
register number hhhh is displayed with a
hexadecimal. If a register number is after C000,
it is used for interface with the servo
monitoring parameters.
O
Output Register
OB, OW,
OL,
OFhhhh
OW0000
~OW07FF
Registers used for I/O module output data. The
register number hhhh is displayed with a
hexadecimal. If a register number is after C000,
it is used for interface with the servo setting
parameters.
C
Constant Register
CB, CW,
CL,
CFhhhhh
CW00000
~CW4095
Registers that can be referenced only by a
program. The register number nnnnn is
displayed with a decimal.