Add-On Dedicated Function; Call Add-On Module: Mcfun - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

4.18

Add-on Dedicated Function

Call add-on module: MCFUN

Format
MCFUN(S1), (S2), (D1), (D2)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
Word device
device
16-bit
integer
type
*1
(S1)
(S2)
(D1)
(D2)
*1 Specify the start device which stores the character string data. The character string can be specified directly.
■Description, data type of result
Setting data
Description
(S1)
Add-on module name
(S2)
Start device which stores the add-on module input value
(D1)
Start device which stores the add-on module output value
(D2)
Add-on module execution complete flag
Processing details
• Add-on module specified with (S1) is called, the input value is delivered by the device specified with (S2), and the output
value is received by the device specified with (D1). When the execution of an add-on module is completed, the execution
complete flag specified with (D2) turns ON.
• Reset the execution complete flag with the user program.
• Refer to the instruction manual of the add-on library to be installed for the add-on module name specified with (S1). In (S1),
write directly the add-on module name as a 31 one-byte character or less character string enclosed with double quotations,
or set the head of a device in which a 31 one-byte character or less character string is stored.
• Specify the device No. with (S2) and (D1) to an even number.
• (S2), (D1), and (D2) can be omitted. Description examples for omitting are given below.
Details
Not omitting
Omitting (D2) only
Omitting (S2) and (D1)
Omitting (S2), (D1), and (D2)
Number of basic steps
11 or more
Constant
32-bit
64-bit
16-bit
integer
floating
integer
type (L)
point
type
type (F)
(K/H)
Usable steps
F/FS
Calculation
expression
32-bit
64-bit
integer
floating
type
point
(K/H, L)
type (K)
Description example
MCFUN "AddonFunc1",D5000,D5100,M0
MCFUN "AddonFunc1",D5000,D5100,
MCFUN "AddonFunc1",,,M0
MCFUN "AddonFunc1",,,
4 OPERATION CONTROL PROGRAMS
4.18 Add-on Dedicated Function
G
Bit
Comparison
conditional
conditional
expression
expression
Data type of result
259
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents