2 creating user functions, 3 determining the i/o specifications – Yaskawa MP920 User's Manual Design User Manual

Page 98

Advertising
background image

3 Basic System Operation

3.5.2 Creating User Functions

3-24

3.5.2

Creating User Functions

The body of the function (program) and the function definitions can be set by the user. The
maximum number of user functions is 500 per drawing.

For details on the MPE720 operation methods, refer to the Machine Controller MP900/
MP2000 Series MPE720 Software for Programming Device User’s Manual
(SIEPC8807005). For details on instructions, such as the FSTART instruction, refer to the
Machine Controller MP900/MP2000 Series User’s Manual: Ladder Programming (SIEZ-
C887-1.2).

The methods for creating user functions is explained according to the following procedure.

3.5.3

Determining the I/O Specifications

When a user function is created, the function capabilities, the number of inputs and outputs
required to satisfy the function, and other specifications must first be determined. Determine
the four types of specification shown in Table 3.9.

* Indicates the number of pointers to be provided for the external function

registers used by the function.

Determine the number of inputs and outputs
and data types.

Input using the MPE720.

Prepare in the same way as the drawings, except
that different registers are used. Program according
to the correspondence between the register numbers
used in the body of the function program and the
I/O data used when calling the function.

Input using the following procedure.

1

Use the FSTART instruction to input the function name.

2

Use the FIN instruction to connect the input data.

3

Use the FOUT instruction to connect the output data.

Determining the I/O Specifications

Defining Function I/O

Programming the Body of the Function

Preparing the Program that Calls
the Function

Table 3.9 Overview of Function Definition Values

Specification to

be Determined

Overview

Function Name

Up to eight characters can be input.

Number of Inputs

The number of arguments input into a function. Up to 16 can be input.
Up to 17 arguments are possible if the address input is also counted.

Number of
Address Inputs*

The designated number of addresses required by the function. A maximum of
one value can be input.

Number of Outputs

The number of outputs from the function. Up to 16 can be input.

Advertising