
61
2]
Use uppercase characters for instructions, variables and flags.
While not case sensitive, this makes them stand out.
3]
Comment heavily in lower case characters.
4]
Create subroutines in separate blocks instead of in the main
program.
5]
Do not use word processor applications for program develop-
ment as quotes and apostrophes are handled differently and
may not be recognized as such by the MicroLYNX!
6]
Remember the six-P rule:
P
roper
P
rior
P
lanning
P
recludes
P
oor
P
erformance.
P r o g r a m D e v e l o p m e n t S t e p s
Like any project, successful development of a LYNX program includes several
planned steps. Following these steps in developing a program will reduce the
time it takes to create a completed, functioning program.
S t e p 1 : P l a n n i n g
Define what steps the program will take from start to end. A flowchart is the
easiest way to do this. Following is an example flowchart for a program that will
move the motor a certain distance at a certain velocity, reduce speed, activate an
output, disable the output, cease motion and return to origin.
Figure 11.1: Flowchart Used for Program Planning
S TA R T
Tu rn O u tpu t O F F
a t 1 0 R e vs
M o ve to 4 .2 5
re vs at 10 R P S
S to p M o ve A t
1 0.5 R e vs
R e du ce sp ee d
to 2 R P S
R e tu rn to O rigin
a t 1 0 R P S
Tu rn o u tp ut on
a t 5 revs
E N D
A
A
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from