Denso RC5 Specifications Page 215

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 214
Chapter 9 Declaration Statements
9-1
9.1 Program Name
PROGRAM (Statement)
Function
Declares a program name.
Format
PROGRAM <Program name> [(<Argument>[,<Argument>...])]
Explanation
This statement declares the character string designated in <Program name> as
the program name.
Declare a program name on the first line of the program. If there is no program
name declaration on the first line, the file name becomes the program name.
When the program name has a name in a PRO <Number> format, an
argument cannot be used.
The first character of a program name must be an alphabetic letter. A
maximum of 64 letters can be used for program name.
For <Argument>, the argument data sent from the calling side is applied. If a
variable is sent as an argument using a CALL statement and the value of the
variable specified with <Argument> in the PROGRAM statement is changed,
the value of the variable specified in <Argument> on the calling side also
changes.
The <Argument> type must be the same type as that in the CALL statement.
The type is expressed as follows using a postposition or AS expression.
PROGRAM SUB0 (aa%, bb!)
PROGRAM SUB0 (aa AS INTEGER, bb AS SINGLE)
If an array variable is used in <Argument>, enter the maximum value of the
array subscript defined in the DIM statement as well as the number of
subscripts.
A maximum of 32 <Argument>’s can be used.
Programs which can be started from the operating panel and external devices
are only programs of PRO <number>.
Related Terms
CALL
Example
PROGRAM PRO1 'Declares PRO1 as the program name.
PROGRAM SUB2 ( la, lb%, lc# ) 'Declares SUB2 which includes arguments of la, lb%,
'and lc# as a program.
PROGRAM SUB3 ( lb%( 12, 5 ) ) 'Declares SUB3 as a program and receives arguments
'with a two-dimensional array of lb%. In this example
'the array
'subscripts are 12 and 5.
PROGRAM SUB0 ( la%, lb! )
PROGRAM SUB0 ( la As Integer, lb As Single )
Page view 214
1 2 ... 210 211 212 213 214 215 216 217 218 219 220 ... 691 692

Comments to this Manuals

No comments