What Are Instructions And Functions - Mitsubishi QD51 Programming Manual

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

Advertisement

2 THE BASICS OF AD51H-BASIC

2.6 What are Instructions and Functions?

2 - 9
Only instructions or functions that follow the BASIC syntax can be written in BASIC
statements. The section describes what instructions and functions are.
• Instructions
Each BASIC instruction instructs a certain processing to take place. For example,
when the PRINT instruction is used, characters will be displayed on the screen.
• Functions
Functions in BASIC return a single value in response to 1 or multiple arbitrary input
values.
Functions can only return values. Therefore, in order to use the results, they are
used in conjunction with instructions.
X
Function
X
Y
Function
Z
There are the following types of functions.
Function
Built-in
functions
User-defined functions
Built-in functions are functions already provided with BASIC. User-defined functions
are functions defined by the user using the DEFFN instruction.
A
Processing
Instruction
A
Numerical functions
Character functions
Character functions
for input/output
Special functions
MELSEC-Q
2 - 9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents