2 using variables, 1 system variables (s registers), 1) overview – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual
Page 79: 2) description, 3) programming examples
6.2 Using Variables
6-7
6
Variables (Registers)
6.2 Using Variables
This section explains how to use variables.
6.2.1 System Variables (S Registers)
(1) Overview
System variables (S registers) are provided by the MP2000-series Machine Controller system. They can be used
to read system error information, the operation status, and so on. S registers are global variables that can be used
in any motion program and sequence program. For details, refer to the user’s manual for the Machine Controller
to be used.
(2) Description
S registers are designated as follows:
The variable number is expressed as a decimal. When bits are specified, the bit number is expressed in hexadeci-
mal.
(3) Programming Examples
• Bit Designation
• Integer Designation
• Double Integer Designation
The system registers (S) are used exclusively for reading. If they are written to, system operations cannot be
guaranteed.
SB000000 to SB08191F
SW00000 to SW08191
SL00000 to SL08190
SF00000 to SF08190
OB000010 = SB000402|SB000403;
MW00100 = SW00041;
ML00100 = SL00062;
EXAMPLE
IMPORTANT