Common Variables & Assignment

Store a number in a VC common variable and use it in another expression.

On the OSP a common variable is a numbered box: VC1 = 10 means “put 10 in common variable 1”. There are 200 of them, VC1 through VC200. Watch the punctuation — on Okuma the round brackets ( … ) are comments, so all of this track's grouping is done with square brackets instead.

Read firstOkuma Variable TypesReference for Okuma Mill variable types including system variables (VS) and common variables (VC).

Your turn

The machine hands you the bolt-circle radius in VC2. Set VC1 to the hole count (4), then set VC3 to the circle's diameter by doubling the radius — compute it from VC2 so it follows whatever radius the machine gives, don't just type a number.

The machine gives you

radius 40:VC2 = 40
radius 25 (a hardcoded 80 fails here):VC2 = 25

Your 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.