Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 394

Advertising
background image

B.1 Correspondence between CP (Previous) Ladder Instructions and New Ladder Instructions

B-2

B.1

Correspondence between CP (Previous) Ladder Instructions

and New Ladder Instructions

Changing from CP ladder programs to new ladder programs involves changes to some instructions and the addi-
tion of new instructions.
This section tells you what to do in new ladder programs for instructions that can be used only in CP ladder pro-
grams.
It also provides a list of instructions that can be used only in new ladder instructions.

( 1 ) Handling Instructions Supported Only by CP (Previous) Ladder Programs in New Ladder

Programs

( 2 ) Instructions That You Can Use Only in New Ladder Programs

Instruction Name

Function Outline

Procedure in New Ladder Programs

Instructions in [ ] Brackets

Instructions in [ ] brackets are executed only when
the value of the B register is ON.

Use the IF instruction.

IFON instruction

Processing up to the IEND instruction is executed
only when the value of the B register is ON.

IFOFF instruction

Processing up to the IEND instruction is executed
only when the value of the B register is OFF.

Call User Function
instruction

A user function is called.

Use the FUNC instruction.

Function Input instruction

The input data is stored in the function input regis-
ter.

Function Output instruc-
tion

The data in the function output register is stored in
the specified register.

Comment instruction

Text with double quotation marks (“ ”) is treated
as a comment.

Use rung comments.

Integer Replacement
instruction

Data is replaced in an A register and the integer
operation is started.

Use the STORE instruction.

Real Number Replace-
ment instruction

Data is replaced in an F register and the real num-
ber operation is started.

Store instruction

The contents of the A or F register is stored in the
specified register.

Instruction Name

Function Outline

IF instruction

The programming between the IF and END_IF instructions is executed while the conditional expres-
sion for the IF instruction is satisfied.

FUNC instruction

A user function is called.

STORE instruction

Integer, double-length integer, or real number data is stored in a register.

EXPRESSION instruction A numeric expression is written.
MLINK-SVW instruction

The specified SERVOPACK parameter is written.

MOTREG-W instruction

The specified motion register is written.

MOTREG-R instruction

The specified motion register is read.

Advertising
This manual is related to the following products: