2 - 9 2 - 9
MELSEC-Q
2 THE BASICS OF AD51H-BASIC
2.6 What are Instructions and Functions?
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
A
Y
Function
A
X
Z
Instruction
Processing
There are the following types of functions.
Function
Built-in
functions
Numerical functions
Character functions
Character functions
for input/output
Special 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.
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...