2 ) local registers – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 56

Advertising
background image

4.4 Registers (Variables)

4.4.2 Register Types

4-15

Programming

4

( 2 ) Local Registers

Local registers are valid within only one specific program. The local registers in other programs cannot be accessed.
You specify the usable range of local registers from the MPE720.

Œ

n: decimal digit, h: hexadecimal digit

„

Local Registers within a User Function

In addition to the # registers and D registers, there are local registers that can be used only within user functions.

Œ

n: decimal digit, h: hexadecimal digit

User functions can be called from any programs, any number of times.
When you call a user function, consider what values could be in the local registers, and perform initialization
as needed.
Refer to 4.4.2 ( 3 ) Precautions When Using Local Registers within a User Function for details.

Type

Name

Designation Method

Description

#

# registers

#Bnnnnnh, #Wnnnn,
#Lnnnnn, #Fnnnnn,
#Annnnn

These registers can be read in programs but they cannot be writ-
ten. The values are set from the MPE720.

D

D registers

DBnnnnnh, DWnnnn,
DLnnnnn, DFnnnnn,
DAnnnnn

These registers can be used for general purposes within a program.
By default, 32 words are reserved for each program.
The default values after startup depend on the setting of the D
Register Clear when Start
Option. For details, refer to „ Setting
the D Register Clear When Start Option.

Type

Name

Designation Method

Description

X

Function input registers

XBnnnnnh, XWnnnnn,
XLnnnnn, XFnnnnn

These registers are used for inputs to functions.

Bit inputs: XB000000 to XB00000F
Integer inputs: XW00001 to XW00016
Double-length integers: XL00001 to XL00015
Real numbers: XF00001 to XF00015

Y

Function output
registers

YBnnnnnh, YWnnnnn,
YLnnnnn, YFnnnnn

These registers are used for outputs from functions.

Bit outputs: YB000000 to YB00000F
Integer outputs: YW00001 to YW00016
Double-length integers: YL00001 to YL00015
Real numbers: YF00001 to YF00015

Z

Function internal
registers

ZBnnnnnh, ZWnnnnn,
ZLnnnnn, ZFnnnnn

These are internal registers that are unique within each function.
You can use them for internal processing in functions.

A

Function external
registers

ABnnnnnh, AWnnnnn,
ALnnnnn, AFnnnnn

These are external registers that use the address input values as the
base addresses.
When the address input value of an M or D register is provided by
the source of the function call, then the registers of the source of
the function call can be accessed from inside the function by using
that address as the base.

IMPORTANT

Advertising
This manual is related to the following products: