Miscellaneous structure instruction, Miscellaneous structure instructions summary – Rockwell Automation 1398-PDM-xxx IQ Master Version 3.2.4 for IA-2000 and IQ-5000 Positioning Drive Modules, IQ-55 User Manual

Page 175

Advertising
background image

IQ Programming Structure • Miscellaneous Structure Instruction

153

Publication 1398-PM601A-EN-P — October 2000

TUTORIAL

Miscellaneous Structure Instruction

As you write any program, one of your goals should be to make the program easily understood by others
that may be required to read or maintain the program in the future. The following are guidelines that
will make your programs easier to develop and maintain:

Use a lot of comments. There is no such thing as having too many comments in a program. These
comments will be invaluable in the future when you or someone else attempts to modify the pro-
gram to add new features into your application.

Use the ASSIGN command to assign meaningful names to variables, inputs and outputs. This will
make the program easier to write, read, and debug.

Keep a revision history of program modifications embedded in the comments at the top of your
application program.

Miscellaneous Structure Instructions Summary

The following is a summary of the miscellaneous structure related commands discussed in this section.
Refer to Part 5

Language Reference for more detailed information.

Name

Description

PGMTYPE = type

Compiler option for program type

DEBUG = ON/OFF

Compiler option for debug information

ASSIGN name text

Assign a name to a text string or variables

TITLE "name"

Define a program title

;comment

Comment in the program

END

End of the program

Advertising