Mitsubishi Electric R16MTCPU Programming Manual page 262

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

• The operation for when (S2) and (D1) are omitted differs depending on the add-on module called.
• When (D2) is specified, the Motion SFC program execution transits to the next block without waiting for the
add-on module completion. Add-on module processing is executed in the background. One add-on module
can be executed in the background. An error occurs when add-on modules are executed in succession in
the background without waiting for (D2) to turn ON.
• When (D2) is omitted, the Motion SFC program execution waits for the add-on module completion, and then
transits to the next block.
• Refer to the instruction manual of the add-on library to be installed for details of devices specified to (S2), (D1), and (D2).
Operation error
An operation error will occur if:
• The add-on module specified with (S1) is not registered.
• The character string specified with (S1) exceeds 31 characters.
• (S2) and (D1) are not even-numbered devices.
• (S1), (S2), (D1), (D2) are indirectly specified devices, and outside of the device number range.
• Before the execution of an add-on module is completed, another add-on module is executed.
Program example
■Program which uses the data of D3100 to call the add-on module "AddonFunc1", and stores
the result in D3200
MCFUN "AddonFunc1", D3100, D3200, M5000
[F20]
RST M5000 //Reset execution complete flag
D3100=100 //Set input device
D3200L=0L //Initialize output device
//Call add-on module
MCFUN "AddonFunc1",D3100,D3200,M5000
[G20]
M5000 //Wait for execution complete flag
to turn ON
4 OPERATION CONTROL PROGRAMS
260
4.18 Add-on Dedicated Function

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents