
Introduction to Programming
Chapter 10
10-5
(4) O Word Program Name
The program name, i f on the tape, must follow the program start code.
When outputting to tape, the program name can be determined by:
Program Name: If:
Manuallykeying in theprogramname -- --
Selected fromthefirstblockofthe
program
No namehasbeen manually keyedi n and the first
blockcontainsanO word,: (forEAIformat), or N word
aftertheprogramstartcode.
Selected formtheprogramdirectory No name hasbeenmanuallykeyed in and no name
exists in the firstblock oftheprogram. For theprogram
nametobe takenfromthedirectoryscreen,the
programmustbe storedonthatdirectorywith theletter
O followedbyup to 5 numericdigits. In thiscase,the
control generatesan O word blockasthe firstblockof
theprogram written to tape.
No nameisused Aprogramis stored on tapewith no programname if
none ofthe above namingconditionsaremet.
(5) Part Program Section
A part program is made of blocks of information. Individual blocks
contain words that the control can interpret. Individual words are made up
of an address with a numeric value. For details on words and addresses,
see the remaining sections of this chapter.
This section should include a program name, program blocks, comments,
and end-of-program. Each block in the part program is separated by an
EOB code. The control displays a semicolon “;” to indicate the presence
of an EOB code.
(6) Comment
Information punched between the control out code “(” and the control in
code “)” within the program section is considered a comment and is not
handled as significant information (even though it is copied to and from
control memory or tape). Any number of comments can be included in a
part program interspersed with program blocks or words.
Example 10.1
Comments in Part Programs
X1.Z1.(START MOTION);
(CALL SUBPROGRAM 1);
(12345);
Each of the above program blocks contains a comment. The control does
not regard the comment as significant information, except when it appears
in the first block of the program. In this case, the comment is displayed on
the program directory screen as part of the program name.
Comentarios a estos manuales