Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 57

Advertising
background image

4.4 Registers (Variables)

4.4.2 Register Types

4-16

( 3 ) Precautions When Using Local Registers within a User Function

When you call a user function, consider what values should be in the local registers, and perform initialization as
needed.

„

Setting the D Register Clear When Start Option

1.

Select File

Environment Setting from the MPE720 Version 6 Window.

2.

Select Setup

System Setting.

3.

Select Enable or Disable for the D Register Clear when Start Option.

Set Values
Disable: The initial values will be uncertain.
Enable: The initial values will be 0.

Name

Precaution

X registers (function
input registers)

If input values are not set, the values will be uncertain.
Do not use X registers that are outside of the range that is specified in the input definitions.

Y registers (function out-
put registers)

If output values are not set, the values will be uncertain.
Always set the values of the range of Y registers that is specified in the output definitions.

Z registers (function
internal registers)

When the function is called, the previously set values will be lost and the values will be uncertain.
These registers are not appropriate for instructions if the previous value must be retained.
Use them only after initializing them within the function.

# registers

These are constant registers. Their values cannot be changed.

D registers

When the function is called, the previously set values are preserved.
If a previous value is not necessary, initialize the value or use a Z register instead. D registers retain
the data until the power is turned OFF.
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.

Advertising
This manual is related to the following products: