Two things go into a motor from Contours, and stay there when it is switched off:
-
Its program: Contours' default program, written for the axis, and the axis's own program from its Motor tab (see chapter 8). Run show and every Test run need it.
-
Its shows: the axis's take from every show in the project, kept in the motor's memory so that the Test tab can run a show from Motor Memory instead of streaming it from the PC (see chapter 22).
The load window puts either or both into one motor or every connected motor, and says first what each will get.
When to load
|
After you |
Load |
|---|---|
|
Set up a new motor, or link another motor to an axis |
Program and Shows |
|
Change an axis's own program on its Motor tab |
Program |
|
Change an axis's Run To speed or acceleration, or its homing settings |
Program |
|
Change an axis's motor resolution |
Program and Shows |
|
Add, delete, move or change shows, when you run from Motor Memory |
Shows |
Streaming a show (Run show, or a Test run from Stream) doesn't need the shows loaded, only the program.
Opening the load window
-
Load motor, at the foot of the Axes panel, loads the selected axis's motor.
-
Load all motors, beside it, loads every axis's motor at once.
-
On the Test tab, Load all motors appears beside Run from when you choose Motor Memory. It is the same as the button on the Axes panel.
Nothing is written until you click Load in the window.
Figure 9.1. The load window before anything is loaded. What to load is at the top; each axis's row says what its motor will get.
Choosing what to load
The What to load card has two ticks:
-
Program: Contours' default program and the axis's own code from its Motor tab, saved in the motor.
-
Shows: every show's take, kept in the motor's memory for a Test run from Motor Memory.
Both are ticked the first time. The window keeps them as you last left them while Contours is open, for Load motor and Load all motors alike.
Each axis's row
The Axes card has a row for each axis: just the selected one for Load motor, every axis for Load all motors. Under the axis's name, a line for its program and a line for its shows say what will go:
-
Program: Contours' default program for an axis with no program of its own, or, for example, Pan's program (14 lines). If the program can't go as it is, the line says why in red.
-
Shows: for example 3 shows, 11% of its memory, or No takes: nothing to load. Shows that don't fit say how much of the memory they need, with each show's share under it.
-
A part you haven't ticked says Not loaded. If Program isn't ticked and the motor has no program at all, its line warns that Run show and the Test tab will leave that motor out.
An axis whose motor isn't connected is listed as Not connected: left out, and one whose motor is waiting for a firmware load (see chapter 8) as Waiting for a firmware load: left out. Connect the motors you want loaded first (see chapter 6).
When Load waits
Load is unavailable while something would make the load go wrong, and the bar at the foot of the window says what, in red:
|
The window says |
What to do |
|---|---|
|
Tick Program, Shows or both. |
Tick what you want loaded. |
|
No axis here has a connected motor. |
Connect the motors first. |
|
Pan: the program can't be loaded as it is. Fix it in the Motor tab, or untick Program. |
The axis's row says why: compile the program, fix what doesn't compile, or fix what it refuses (see below). |
|
Pan: the shows don't fit the motor's memory. Shorten them, or untick Shows. |
See Shows that don't fit, below. |
|
The program changes Pan's pulses a turn, so the shows must go too: tick Shows. |
See After a resolution change, below. |
|
A show is playing on a motor: stop it first. |
Stop the show, or wait for it to end. |
|
Firmware is going into a motor: wait for it to finish. or A program is loading into a motor: wait for it to finish. |
Wait. |
A program changed since its last compile
If you have changed an axis's program since you last compiled it, its row says Changed since its last compile: compile it in its Motor tab. A load sends the compiled program, not the text you are editing. Contours won't load an earlier compile of a program you have since changed, or a program you haven't seen compile, so the motor always gets the program you checked. Open the axis's Motor tab, click Compile, fix anything it reports, and open the load window again.
A program that would change bank 1 or a setting Contours makes is refused in the same way (see chapter 8). So is a home speed or offset the motor can't take at its resolution: change it on the Homing tab.
Shows that don't fit
Before anything is written, Contours checks that each motor's memory can hold all of the project's shows for its axis. If one can't, nothing is loaded into any motor: motors holding different sets of shows would play out of step. The axis's row says, for example, They need 112% of its memory: they don't fit., and lists each show's share. Shorten or delete shows, or record or import them at a longer interval, then load again.
How much a motor holds depends on its firmware, and Contours reads it from the motor. With version 2 firmware, a motor holds about 24 minutes of takes at a 100 ms interval (about 4.8 minutes at 20 ms), for all of the project's shows together. A motor with version 3 firmware (RT3.14.11) holds about twice as much: about 51 minutes at 100 ms, or about 10 minutes at 20 ms.
The import warns you when a take alone is longer than its motor can hold (see chapter 14).
After a resolution change
A motor keeps its shows as positions in its own pulses. If its resolution changes the number of pulses in a turn, the same numbers mean a different place: shows loaded at 50,000 pulses a turn would play 50 times too far at 1,000. So:
-
The axis's program sets the motor's resolution. When a program would change the pulses a turn of a motor that holds shows, the window won't load the program without the shows. Tick Shows too.
-
Within one load, the shows go in after the program, once the motor has said it is at its new resolution. If it doesn't say so, the shows aren't loaded, and the row says why.
-
Until the shows are loaded again, the axis's Units and gearing card says so (see chapter 7), and the Test tab leaves that axis out of a run from Motor Memory.
A motor with version 2 firmware plays shows only at 50,000 pulses a turn, so shows can't be loaded into it at a coarser resolution.
Loading
Click Load. Every motor loads at the same time; each takes its program first, then its shows. Each line on the rows shows a bar and a percentage while it goes, then how it went, in green or red:
-
a program: Saved in the motor at and the time
-
shows: Loaded in the motor at and the time.
A program that didn't load leaves its motor's shows unloaded: Not loaded: the program didn't load first.
A program takes a few seconds. Shows take longer: roughly 10 seconds for each minute of takes at a 100 ms interval, and five times that at 20 ms, so a long set of shows can take several minutes. If the selected axis's Motor tab is open, its terminal shows the program's lines as they go.
When every motor has finished, the bar at the foot says, for example, Loaded into 3 motors., or Not everything was loaded: each axis says why. Click Done to close the window.
Figure 9.2. The load window after loading. Each axis says what its motor got.
Cancelling
-
Before you click Load, Cancel,
Escor the close button closes the window. Nothing is written. -
During a load, Cancel (or
Esc, or the close button) stops the shows at once, and the button reads Stopping…. A program already going in finishes, because a motor cut off part way would be left with half a program, and its shows then don't start.
The window stays open to say what each motor got. A motor whose shows were stopped part way says Stopped part way: load the shows again before a Test run from Motor.
How the shows are kept in a motor
Each show goes into the same place in every motor: the first show in the Shows list is each motor's show 1, the second its show 2, and so on, even in a motor whose axis isn't in every show (it gets an empty show in that place). That is how a run from Motor Memory starts the same show in every motor.
So load the shows again after you add, delete or reorder shows, or change any take, before you run from Motor Memory. A motor runs whatever it was last given.
A motor with no program
Contours asks each motor, as it connects, whether it has a program in bank 1. A motor that has none can't play a show, so:
-
Run show leaves it out and says so, for example Pan is left out: its motor has no Contours program. If no motor in the show can play, a message says so and nothing starts (see chapter 11).
-
The Test tab leaves its row out of a run, and names it first in the line above the Start button (see chapter 22).
Load its program, with Load motor or the Motor tab's Load to motor, and it plays again. Contours checks only that bank 1 has a program; a motor whose bank 1 was changed by another tool may still not play shows. Load its program from Contours to be sure.