EasyManuals Logo

Mitsubishi MELFA CR1D User Manual

Mitsubishi MELFA CR1D
458 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #214 background imageLoading...
Page #214 background image
4-201 Detailed explanation of command words
4MELFA-BASIC IV
FPrm (FPRM)
[Function]
Defines the order of the arguments, the type, and number for the main program that uses arguments in a
sub program (i.e., when the host program uses another program with CALL P).
[Format]
[Terminology]
<Dummy Argument> The variable in the sub program that is transferred to the main statement when
executed. All variables can be used. Up to 16 variables may be used.
[Reference Program]
<Main program>
1 M1=1
2 P2=P_Curr
3 P3=P100
4 CallP "100",M1,P2,P3 ' It can be described like "CallP "100", 1, P_Curr, P100" also.
<Sub program "100">
1 FPrm M1,P1,P2
2 If M1=1 Then GoTo 40
3 Mov P1
4 Mvs P2
5 End ' Return to the main program.
[Explanation]
(1) FPrm is unnecessary if there are no arguments in the sub program that is called up.
(2) An error occur when the type or number is different between the argument of CallP and the dummy argu-
ment that defined by FPrm.
(3) It is not possible to pass the processing result of a sub program to a main program by assigning it in an
argument.
To use the processing result of a sub program in a main program, pass the values using external vari-
ables.
[Related instructions]
CallP (Call P)
FPrm[]<Dummy Argument> [,<Dummy Argument>] ...

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELFA CR1D and is the answer not in the manual?

Mitsubishi MELFA CR1D Specifications

General IconGeneral
BrandMitsubishi
ModelMELFA CR1D
CategoryController
LanguageEnglish

Related product manuals