beautypg.com

2 program modules, 3 programming complicated numeric operations – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 19

background image

1.2 Features of Ladder Programming for MP2000-series Machine Controllers

1.2.2 Program Modules

1-4

1.2.2 Program Modules

The main program can be separated into modular units to suit different processing requirements, such as child draw-
ings, grandchild drawings, and functions, to make the program easier to read.

1.2.3 Programming Complicated Numeric Operations

Complicated calculations written over several lines can be written easily within a single EXPRESSION instruction.
Variables, structures, and basic functions, such as those for sine and cosine calculations, can be programmed using
familiar C-like expressions.
You can display the current value inside expressions in the same way as you can for other ladder language instructions.

H: Main program

H: Main program

# Automatic operation processing

# Manual operation processing c

# Difference numeric processing

# Manual operation processing d

# Difference numeric processing

END

Automatic operation
processing drawing

Modularization

SEE instruction

Manual operation

processing

c

drawing

SEE instruction

FUNC

instruction

SEE instruction

FUNC

instruction

Difference numeric
processing function

Manual operation

processing

d

drawing

This manual is related to the following products: