4 user function call (ufc) – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 98

Advertising
background image

Advanced Programming

3.1.4 USER FUNCTION CALL (UFC)

3 -8

3.1.4 USER FUNCTION CALL (UFC)

J

Overview

The UFC command is used to call functions created by the user, using function name designa-
tions.

J

Description

The UFC command is designated as follows:

UFC Function_name Input_data, Input_address, Output_data

*

Function name: ASCII 8 bytes
Input data:

Max. 16 data items (at least 1 data item is required)

Input address: Max. 1 address
Output data:

Max. 16 data items (1 data item is mandatory)

*

The input address can be omitted.
[input data, output data] is used if there is no input address. At least one input data item and one output
data item are mandatory.

The UFC command calls a user function. When execution of the user functions has been com-
pleted, execution proceeds to the next block after UFC.

J

Programming Examples

UFC KANSUU

MB00000 IW0010 MB00020, MA00100,

Function name

Input data

Input address

MB00001 MW00200 ML00201;

Output data

Function name

INPUT-1

INPUT-2

INPUT-3

INPUT-4

MA00100

MB0000

MB0000

MB0002

IW0010

MW00200

ML00201

OUTPUT-1

OUTPUT-2

OUTPUT-3

Figure 3.5

Programming Example for USER FUNCTION CALL (UFC)

If creating a user function, set the flag corresponding to YB00 so that it turns ON when the user function has
successfully been executed. In this way, the execution of the function will continue to the next block when
the YB00 turns ON. If the YB00 does not turn ON, execution of the funciton may not proceed to the next
block.

3

IMPORTANT

Advertising
This manual is related to the following products: