Writing and editing a program, Writing, The editor mode – Marathon Computer UNIPRO V3.5 User Manual

Page 155

Advertising
background image

MMI Product Documentation

Unipro 3.5 Process Control 1 Aug. 1997

A limit statement between an inquiry and a branch just sets a
definite time to wait for the inquiry to become true. It has no
effect on the outcome of the inquiry or where the program
branches to. It only effects the length of the time delay.
If a branch statement is not preceded by an inquiry, or any
conditional statement, the branch is automatically assumed
TRUE.
An unconditional branch is one in which the steps specified for
true and false are the same. An unconditional branch to step 1
(b 01.01) will cause a program to loop back to the beginning of
the program every time the above statement is encountered.
The difference between a b 01.01 and a J 0000 is that the jump
reloads the program and would therefore pick up any changes
edited into the program after it was initially started.

Writing and Editing a Program

Writing

Before a program can ever be written into the UNIPRO, the
author must understand and perform the following process:

1.

Determine what the program is to do,

2.

Write, revise, and rewrite an algorithm
(program in words) until part 1 works,

3.

Construct the program for the UNIPRO
using the OPCODEs listed in
"Programmer Alphabet".

The Programmer Editor can be used to create a new program
or modify an already existing program. While in Program Edit
mode, the unit continues to control the furnace (as long as the
Auto LED is on), and a running program continues if the
program LED is on.

The Editor Mode:

Advertising