Common ( Sets Variable And Others To Be Passed To The Program To Be Read ) - Mitsubishi QD51 Programming Manual

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
COMMON
Instruction
• Sets variable and others to be passed to the program to be executed by the CHAIN
instruction.
COMMON
Syntax
data to be passed
COMMON A$, B%( )
Examples
• The COMMON instruction specifies variables or arrays to be passed to the program that
Description
will be executed by the CHAIN instruction.
• In <data to be passed>, specify variables and others to be passed to the program that is
read by the CHAIN instruction.
• To specify an array, write only parentheses after the array name.
A%( ), B#( ), C$( )
• If there is an error in the COMMON instruction, an error occurs when the CHAIN instruction
is executed.
• To pass all variables and arrays, specify the ALL option in the CHAIN instruction.
• When <data to be passed> is specified in the COMMON instruction and the ALL option is
specified in the CHAIN instruction, everything is passed regardless of the <data to be
passed> specification in the COMMON instruction.
11 - 31
COMMON
<data to be passed> [, <<data to be passed >, ... ]
• • • •
• • • •
REMARK
• The COMMON instruction is valid even if it is described in a part of a program.
• Write the COMMON instruction in the program that executes the CHAIN
instruction.
• See the CHAIN instruction.
Specify a variable or array that is passed to the
program to be executed by the CHAIN instruction.
Passes A$ and all elements of array B% to the
program to be executed by the CHAIN instruction.
MELSEC-Q
11 - 31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents