Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 29

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■ Inherent property setting
The following items can be set when a program of a function block is created.( GX Works3 Operating Manual)
Item
*1
Use MC/MCR in EN Control
Use EN/ENO
*1 To select this item, select "Yes" for "Use EN/ENO". However, the item cannot be used depending on the versions of the CPU module
and GX Works3 used when "Subroutine Type" is selected for "FB Type".
 MELSEC iQ-R CPU Module User's Manual (Application)
■ Applicable devices and labels
The following table lists the devices and labels that can be used by function block programs.
: Applicable, : Applicable only in instructions (Cannot be used to indicate the program step.), : Not applicable
Type of device/label
Label (other than the pointer type)
Label (pointer type)
Device
Pointer
Operation overview
■ Macro type function blocks
The program of a macro type function block is loaded by a calling source program along the execution flow. At the time of
program execution, the loaded program is executed in the same way as the main program.
Use a macro type function block when giving a higher priority to the processing speed of the program.
Execution
(Program file)
flow
Main program
FB1_a
FB1
FB2_a
FB2
(1) The FB1 program is loaded into the main program and executed.
(2) FB3 is loaded into the FB1 program.
(3) The FB2 program is loaded into the main program and executed in the same way as the FB1 program.
Description
For "Yes", the MC/MCR instructions are used to control EN. For "No", the CJ instruction is used to control EN.
Select "Yes" when instructions executed at the rising edge or falling edge are used in an FB. The operations of a
timer/counter and the OUT instruction used in an FB differ depending on the selected item. For details, refer to the
following.
Page 152 Operations of when the MC/MCR instructions are used to control EN
For "Yes", a function block with EN/ENO is created, and EN/ENO labels can be used in a program without
registering as local labels. For "No", a function block without EN/ENO is created.
For details on EN/ENO, refer to the following.
Page 26 EN and ENO
Global label
Local label
Pointer type global label
Pointer type local label
Global device
Local device
Global pointer
Local pointer
Actual structure of
main program
FB1 program
FB3 program
FB2 program
Availability
(1)
(2)
(3)
3 PROGRAM ORGANIZATION UNITS
3.3 Function Blocks (FB)
3
27

Advertisement

Table of Contents
loading

Table of Contents