Contours
V3D V2
V3D V2

3. Key Concepts

Contours is built on a short list of ideas. This chapter explains each of them and how they fit together. The rest of the guide uses these words as they are defined here.

Projects

A project holds all your work for one machine or installation: its axes, its shows, its axis groups and its rigged 3-D model. It is saved as one file, with the extension .cntp. The name of the open project is in the window's title bar, for example Contours 3D - SR joint. Contours has one project open at a time. Chapter 5 covers projects.

Axes and motors

An axis stands for one motor. Each axis has a name, a colour used for it on every chart, the units you work in (millimetres, degrees, or whatever suits the mechanism) and how they relate to the motor's turns, and the motor's settings: its resolution, how it follows a controller, how it moves to a position, how it finds home, and its own motor program.

An axis is linked to a real motor by the motor's serial number. Once the axis is connected, Contours can move the motor and read back its position, speed and torque. A project can have axes whose motors aren't connected, or aren't there at all: you can build and simulate shows without any motors. See chapter 6 and chapter 7.

Shows, profiles and takes

A show is one performance: one complete piece of motion for every axis, played together. A project can hold as many shows as you need, and every show uses the project's axes.

Inside a show, each axis has a profile, which holds that axis's motion in the show. Adding an axis gives every show a profile for it.

A profile's motion is its take: positions, evenly spaced in time at the take's interval, usually 100 ms. A take can come from:

However it was made, a take is stored and played the same way, and you can change it in the point editor (chapter 13). A new recording or import replaces the take that was there. A profile with no take yet says No take.

A show lasts as long as its longest take. A show with no takes yet is as long as the chart length in Options.

The SR joint's show Circle expanded in the Shows list with its two profiles, and their takes on the time chart

Figure 3.1. A show and its profiles in the Shows list, and their takes on the chart: one colour for each axis.

The spline

A motor doesn't jump from one point of a take to the next. It follows a smooth curve through them, the spline, worked out one millisecond at a time. The spline goes through every point, stays flat where the take holds still, and doesn't overshoot a sudden change.

The line you see on the chart is this spline, worked out the way the motor works it out, so the chart, the path view and the 3-D model show where the motor will really be, and Live update sends the motors the same positions. The take's own points appear when you edit the take, and on the Test tab when you ask for them.

Note. A motor with version 2 firmware plays a slightly different curve, which can overshoot a sudden change a little. Version 3 firmware plays the curve Contours draws.

Axis groups

An axis group names two or three axes that move together in space, such as the X and Y of a gantry or the pan and tilt of a camera head, and says which is X, Y and Z. Contours uses it to draw a show as the path those axes trace together, beside the time chart or instead of it. A project can have several groups. Groups only change what you see; they never change how the motors move. See chapter 17.

Models and rigs

A project can also hold a 3-D view of the machine itself, which the show poses as it plays. Chapter 18 to chapter 21 cover it in full; these are the words they use.

  • Model: your machine's CAD model, a STEP or GLB file made of parts. The project links to the file and never changes it. A rig can use several models, for example a mechanism and the motors that drive it.

  • Rig: how the model's parts move. It is saved in the project, and is made of bodies, joints, drives and cables.

  • Body: a set of parts that move together as one piece, such as an arm with its screws and bearings. Parts that are in no body stay where they are: they are the ground.

  • Joint: how a body can move against its parent, the body it hangs from (or the ground). A revolute joint turns about an axis, like a hinge; a prismatic joint slides along a line, like a drawer. There are others for screws, balls, slots and more (chapter 20).

  • Drive: what sets a joint's position. A joint can be driven by an axis (with a ratio, an offset and limits), passive (placed by the rest of a linkage, as a coupler link is), or it can follow another joint, as one gear follows another.

  • Mates: a SolidWorks assembly can bring its own mates with it. Contours then moves the parts the way the mates do, and each limit mate becomes a drive you can link to an axis.

  • Cable: a line drawn through points on bodies, such as a pull cable or a tube, which bends as the bodies move. It is drawn only; it doesn't move anything.

When a show plays, each axis's position sets the joints and drives it drives, and the model is posed to match.

The Joint types rig in the Model window with a revolute joint chosen and its axis drawn

Figure 3.2. A rig in the Model window: bodies, each with the joint it hangs by, and the chosen joint's axis drawn on the model.

Four ways to play a show


What moves

Where you start it

Simulate

Nothing but the screen: the cursor runs along the show and the path and the model follow it. No motor moves, connected or not.

The floating block on the Shows tab's chart (chapter 11).

Live update

The motors you switch on follow the cursor as you move it along the show, and follow your edits in the point editor.

The same block (chapter 11).

Run show

Every connected motor in the show plays it, from the cursor, streamed from the PC as it plays.

The same block (chapter 11).

A test run

The motors you tick play the show from the start, streamed from the PC or from the shows stored in each motor, with their position, speed and torque drawn as they go. It can loop.

The Test tab (chapter 22).

What a motor holds

Each motor keeps two things that Contours puts there, and keeps them when it is switched off:

  • Its program. Contours' default program sets the motor up the way Contours expects (its resolution, its speeds and its homing settings), and an axis can add code of its own. Run show and test runs need it: a motor with no program is left out of the run, and Contours names it. You load the program with Load motor (chapter 9) or from the axis's Motor tab (chapter 8).

  • Its shows. Load motor can also write each show's take for that axis into the motor's memory, in the project's show order. A test run from the motors' memory plays them from there, with nothing streamed from the PC. A stored show is a copy: after you change a take, or the motor's resolution, load the shows again.

Simulate, Live update and Run show don't use the stored shows: they always play the takes in the project.

How it fits together

How the parts of a project relate

Figure 3.3. How the parts of a project relate. Profiles, axis groups and drives all refer to the axes; each axis is linked to one motor; the model files stay outside the project and are linked from its rig.

In words:

  • The project holds axes, shows, axis groups and a rig.

  • Each show has a profile for every axis, and each profile holds that axis's take, which the motor plays as a spline.

  • An axis group picks two or three axes to draw as a path.

  • The rig links to the model files and says how their parts move; its drives are set by the axes.

  • Each axis is linked to one motor, which holds a program and, once loaded, the shows.