5 functions, 1 standard system functions – Yaskawa MP940 User Manual
Page 75

Basic System Operation
3.5.1 Standard System Functions
3-28
3.5 Functions
This section explains the methods of using and the advantages of the MP940 functions.
Functions are executed by being called from a parent, child, or grandchild drawing using the
FSTART instruction.
Unlike child and grandchild drawings, functions can be called from any drawing. The same
function can also be called simultaneously from drawings of different types and different hierar-
chies. Moreover, a function can also be called from another function that was previously cre-
ated.
The following advantages can be obtained by using functions:
• Programs can be easily divided into parts.
• Programs can be easily prepared and maintained.
Functions are divided into standard system functions, which are provided by the system, and
user functions, which are defined by the user.
3.5.1 Standard System Functions
Nine functions, including the transfer function, are provided by the system as standard func-
tions. See the following table for details. The user cannot change the standard system func-
tions.
Table 3.7 List of Standard System Functions
Type
Name
Symbol
Description
System
Func-
tions
Counter
COUNTER
Up/down counter
First-in first-out
FINFOUT
First-in or first-out stack
Trace function
TRACE
Data trace execution control
Data trace read
DTRC-RD
Data readout from data trace memory to user
memory
Send message
function
MSG-SND
Sending a message from a Communications
Module
Receive message
function
MSG-RCV
Receiving a message from a Communications
Module