Named Variables
Give values readable names so the next programmer can follow the maths.
You don't have to count boxes. The OSP lets you name a common freely — RADIUS = 10 reads better than VC17 = 10 ever will. Local names are two letters then a few more characters, so short tags like AA11 or full words like RADIUS and DEPTH both work. Same maths, far easier to read six months later.
Your turn
The stock radius arrives in VC1. Copy it into a readable name RADIUS, then compute DEPTH as half of RADIUS. Use the names, not bare numbers.
The machine gives you
12 mm radius:
VC1 = 1220 mm radius:
VC1 = 20Your program is run once for each set of conditions. It has to work for all of them.
Loading...
This is a learning simulation — always prove out a program on the actual control before you cut metal.