7.1 User Program Types and Execution Timing
7.1.5 Registers
7
Cr
eating U
s
er Pr
ogram
s
7-27
Motion Program Conceptual Diagram
Structure of Register Addresses
Register Types
This section describes global and local registers.
Global Registers
Global registers are shared by ladder programs, user functions, motion programs, and
sequence programs. In other words, the operation results of a ladder program can be used by
other user functions, motion programs, or sequence programs.
?
You can also use index registers or array registers as variables to address specific registers.
Refer to the following sections for details.
Type
Name
Designation
Methods
Usable Range
Description
S
System registers
(S registers)
SBnnnnnh,
SWnnnnn,
SLnnnnn,
SQnnnnn,
SFnnnnn,
SDnnnnn,
SAnnnnn
SW00000 to
SW65534
These registers are prepared by the system.
They report the status of the SERVOPACK
and other information.
The system clears the registers from
SW00000 to SW00049 to 0 at startup.
M
Data registers
(M registers)
MBnnnnnnnh,
MWnnnnnnn,
MLnnnnnnn,
MQnnnnnnn,
MFnnnnnnn,
MDnnnnnnn,
MAnnnnnnn
MW0000000 to
MW1048575
These registers are used as interfaces
between programs.
Continued on next page.
D regi
s
ter
s
cannot be
s
hared between different drawing
s
.
D regi
s
ter
s
(DW00000 to DW000
3
1)
D regi
s
ter
s
(DW00000 to DW000
3
1)
D regi
s
ter
s
cannot be
s
hared between different drawing
s
.
D regi
s
ter
s
(DW00000 to DW000
3
1)
D regi
s
ter
s
(DW00000 to DW000
3
1)
S
equence program
(
S
PM00
3
)
SS
EE
S
P
S
004;
S
ubprogram
(
S
P
S
004)
Motion program
(MPM001)
M
S
EE MP
S
002;
S
ubprogram
(MP
S
002)
Regi
s
ter type
Data type
Range (The number of digit
s
depend
s
on the regi
s
ter type and data type.)
Regi
s
ter addre
ss
=
S
W 00000
Information