2 using variables, 1 system variables (s registers) – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 177

Advertising
background image

5.2 Using Variables

5 -7

5.2 Using Variables

This section explains how to use variables.

5.2.1 System Variables (S Registers)

J

Overview

System variables (S registers) are provided by the MP-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. For details, refer to the Corresponding
Machine Controller User’s Manual: Design and Maintenance
.

J

Description

S registers are designated as follows:

SB000000 to SB01023F

SW00000 to SW01023

SL00000 to SL01023

SF00000 to SF01023

The variable number is expressed as a decimal. When bits are specified, the bit number is ex-
pressed in hexadecimal.

J

Programming Examples

D

Bit Designation

OB000010 = SB000402|SB000403;

D

Integer Designation

MW00100 = SW00041;

D

Double Integer Designation

ML00100 = SL00062;

The system registers (S) are used exclusively for reading. If they are written to, system operations cannot be guar-
anteed.

5

A

EXAMPLE

"

IMPORTANT

Advertising
This manual is related to the following products: