1 overview, 1 overview of variables – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 172

Advertising
background image

Variables (Registers)

5.1.1 Overview of Variables

5 -2

5.1 Overview

This section summarizes the variables used in motion programs.

5.1.1 Overview of Variables

In a motion program, variables can be coded in place of numeric values. When variables are
used in actual operations, the numeric values stored in the variable area are retrieved.

J

Types of Variable (Registers)

The seven types of register shown in the following table can be used as variables in a motion
program. The S, M, I, O, and C registers are global variables that can be used in common by
motions programs and ladder logic programs.

The # and D registers are local variables that can be referenced only by specific programs. Be-
cause local variables are stored in user memory, the unused capacity of the programs will be
reduced.

Table 5.1 Types of Variable

Type

Name

Designation Method

Range

Description

Character-

istic

S

System
Registers

SB, SW, SL, SFnnnnn

SW00000 to
SW01023

Registers that can be referenced by the system.
Register No. nnnnn is a decimal expression.
When the system is started, SW00000 to
SW00049 are cleared to 0.

Common to
programs

M

Data
Registers

MB, MW, ML, MFnnnnn MW00000 to

MW32767

Registers common to all drawings.
Used as interfaces between drawings.
Register No. nnnnn is a decimal expression.

I

Input
Registers

IB, IW, IL, IFhhhh

IW0000 to
IW07FF

Registers used for I/O Module input data.
Register No. hhhh is a hexadecimal expression.
Register numbers C000 and onward are used as
interfaces with the servo monitor parameters.

O

Output
Registers

OB, OW, OL, OFhhhh

OW0000 to
OW07FF

Registers used for I/O Module output data.
Register No. hhhh is a hexadecimal expression.
Register numbers C000 and onward are used as
interfaces with the servo setting parameters.

C

Constant
Registers

CB, CW, CL, CFnnnnn

CW00000 to
CW4095

Registers that can be referenced only by a pro-
gram.
Register No. nnnnn is a decimal expression.

5

Advertising
This manual is related to the following products: