3.1 Basic Functionality
3.1.1 Programs
3-5
3
CPU Module Functionality
Functions
Functions are executed when they are called from a parent, child, or grandchild drawing with
the FUNC instruction.
Functions can be freely called from any drawing. The same function can be called simultane-
ously from different types of drawings or different levels of drawings. You can also call functions
from other functions that you have created.
The use of functions provides the following merits:
• Easy user program modularization
• Easy user program creation and maintenance
You can use standard functions that are provided by the system, and you can define user func-
tions.
• Standard System Functions
The following functions for communications and other purposes are provided as standard func-
tions in the system. You cannot change the system functions.
• User Functions
You can freely program the body of a user function and program the user function definitions.
A maximum of 2,000 user function drawings can be defined.
Motion Programs
A motion program is a program that is written in a text-based motion language.
There are two types of motion programs.
Function Name
COUNTER Counter
FINFOUT First-in First-out
TRACE Trace
DTRC-RD Read Data Trace
DTRC-RDE Read Data Trace Extended
MSG-SND Send Message
MSG-SNDE Send Message Extended
MSG-RCV Receive Message
MSG-RCVE Receive Message Extended
ICNS-WR Inverter Parameter Write
ICNS-RD Inverter Parameter Read
MLNK-SVW Write SERVOPACK Parameters
MOTREG-W Write Motion Register
MOTREG-R Read Motion Register
IMPORT Import
IMPORTL Import Extended
EXPORT Export
EXPORTL Export Extended
Refer to the following manual for details on how to define functions.
MP3000 Series Ladder Programming Manual (Manual No.: SIEP C880725 13)
Typ e
Designation
Method
Features Number of Programs
Main programs
MPM
(
=1 to
512)
• Main programs are called
from a DWG.H drawing.
• Main programs are called
from the M-EXECUTOR pro-
gram execution definitions.
You can create up to 512 motion pro-
grams, including the following programs:
• Motion main programs
• Motion subprograms
• Sequence main programs
• Sequence subprograms
Subprograms
MPS
(
=1 to
512)
Subprograms are called from
a main program.