Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 32

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

Advertisement

• Passing the argument
The instruction used to pass the argument differs depending on the class and data type of the argument. The following table
summarizes the instructions that can be used to pass the argument.
Argument
Data type
class
VAR_INPUT
Bit
VAR_IN_OUT
Word [unsigned]/bit string [16 bits]
Double word [unsigned]/bit string [32 bits]
Word [signed]
Double word [signed]
Single-precision real number
Double-precision real number
Time
String
String [Unicode]
Array, Structure
• Calling the program
A total of 10 steps are required to call the function block program.
• Passing the return value
The instruction and the number of steps used for passing the return value are identical to those for passing the argument.
Argument
Data type
class
VAR_OUTPUT
Same as for passing the argument
VAR_IN_OUT
• EN/ENO
The following table lists the number of steps required for EN/ENO.
Item
EN
ENO
The number of steps may increase or decrease, depending on the following conditions.
• The actual argument or return value of the function block are index-modified.
• The address specifying the device exceeds 16 bits in length.
• Digit specification is performed.
■ Program
The number of steps required for a function block program is the total number of instruction steps, like usual programs.
For the number of steps required for each instruction, refer to the following.
 MELSEC iQ-R Programming Manual (Instructions, Standard Functions/Function Blocks)
3 PROGRAM ORGANIZATION UNITS
30
3.3 Function Blocks (FB)
Number of steps
3
2
Instruction used
LD+OUT
LD+MOVB
(Either of the instruction sets is used
depending on the combination of
programming language, function, and input
argument used.)
LD+MOV
LD+DMOV
LD+EMOV
LD+EDMOV
LD+DMOV
LD+$MOV
LD+$MOV_WS
LD+BMOV
Instruction used
Same as for passing the
argument
Number of steps
For the number of steps required for
each instruction, refer to the following.
 MELSEC iQ-R Programming
Manual (Instructions, Standard
Functions/Function Blocks)
Number of steps
Same as for passing the argument

Advertisement

Table of Contents
loading

Table of Contents