8 user function call from sequence program (func), 1) overview, 2) format – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

Page 216: 3) programming examples, 2) format (3) programming examples

Advertising
background image

8.4 Program Control Commands

8-109

8

Command Reference

8.4.8 User Function Call from Sequence Program (FUNC)

(1) Overview

The User Function Call from Sequence Program command (FUNC) calls user functions (ladder programs) from
the sequence program.

(2) Format

(3) Programming Examples

A FUNC command programming example is shown below.
In this example, three input data items, one input address, and three output data items are described.

Fig. 8.63 User Function Call Command (FUNC) Programming Example

Motion Programs

Sequence Programs

Not applicable

Applicable

UFC Function name Input data 1 Input data 2 Input data 3 ....., Input address,

Output data 1 Output data 2 Output data 3 ..... ;

Item

Unit

Usable Data

Function name

ASCII 8 bytes

Input data

Max: 16 data items (minimum: 1 data item)

Input address

Max: 1 address

Output data

Max: 16 data items (minimum: 1 data item)

Note: 1. More than one item for input data and output data can be described.

(At least one item each for input data and output data must be described.) The input address
can be omitted.
When the input address is omitted, describe only the comma (,).

2. The FUNC command calls a user function. The execution proceeds to the next block after

the FUNC command whether or not the user function execution has been completed.

FUNC KANSUU MB000000 IW0010 MB000020, MA00100, MB000001 MW00201 ML00202;
Function Input data Input address Output data
name

EXAMPLE

Function name

INPUT-1 OUTPUT-1

INPUT-2 OUTPUT-2

INPUT-3 OUTPUT-3

INPUT-4

MA00100

MB000000

MB000001

MB000002

IW0010

MW00200

ML00201

Advertising