Before Contours can move a motor, three things happen: Contours finds the motor, you link it to one of your project's axes, and you connect the axis. This chapter covers all three, what happens when a connection is lost, which motor firmware you need, and setting up a controller.
Supported connections
Contours 3D reaches Cool Muscle motors over:
-
Ethernet: network motors (CM1-T), found by IP address on your local network, wired or Wi-Fi.
-
Serial: motors on a COM port (CM1-C), usually through a USB-to-serial adapter.
Each motor reports its own serial number. That is what ties a physical motor to an axis in your project, so the link survives a new IP address or COM port between sessions.
Contours searches every network adapter in the PC and talks to each network motor through the adapter it was found on, so your motors can be spread across more than one network port.
Note. Give each network motor a static IP address on the same subnet as the PC's network adapter. A motor never gives itself an automatic (169.254) address, and one set to DHCP waits until a DHCP server gives it an address. If a motor is cabled straight to the PC, give the PC's network port a static address on the motor's subnet as well.
Finding motors
-
Make sure every motor is powered and connected: network cable, serial cable or USB adapter plugged in.
-
Contours searches for motors when it starts. While a search runs, the status bar shows a climbing spiral and Searching for motors…; point at it to see how far the search has got.
-
To see what was found, open the Connections panel under the chart: choose Connections › Manage, press
Ctrl+M, or click the connection count on the right of the status bar (for example 0 of 3 axes connected). -
If a motor doesn't appear, click Find motors in the panel, or choose Connections › Find motors. While the search runs, its progress shows beside the Motors heading, and Find motors is unavailable until it finishes.
A search takes a few seconds. What it does:
-
It asks on every network adapter at once.
-
It tries every COM port at the same time, and leaves out a port that hasn't answered within about 3 seconds, so one unresponsive port can't hold up the others.
-
It skips Bluetooth serial ports, such as those added by wireless earbuds.
-
A serial motor that has been switched off drops out of the list at the next search. A motor that has moved to another network adapter is found there at the next search.
The Connections panel
The Connections panel is one card. Its heading carries Connect All (or Disconnect All), Find motors, a pin and a close button. Below it are two lists side by side:
-
Axes, on the left, lists every axis in your project: its Status light, its Name, the Serial No of the motor linked to it, a Connected box, and, on a linked row, an unlink button.
-
Motors, on the right, lists every motor Contours has found: its Serial No, the Axis it is linked to, and its Address (IP address or COM port). Click the small information button beside a network motor's address to see its MAC address. A motor already linked to an axis is greyed out.
Click a column heading to sort that list. Otherwise the rows stay where they are, so a motor doesn't jump away when you link it.
Figure 6.1. The Connections panel. Drag a motor from the Motors list onto an axis in the Axes list to link them. The status bar under it shows how many axes are connected; click the count to open or close the panel.
Keeping the panel open
The panel closes when you change tab, project, show, axis or profile. To keep it open, click the pin (Keep this panel open) in its heading. A pinned panel:
-
stays open as you work, and opens again the next time you start Contours
-
hides while the Record screen is open and on the Test tab, where the panel isn't available, and comes back when you leave them.
Closing the panel, with the close button in its heading, Ctrl+M, Connections › Manage or the status bar's connection count, also unpins it.
Linking a motor to an axis
-
Drag a motor from the Motors list onto the axis row that should control it. You can also drag an axis onto a motor.
-
The axis now shows the motor's serial number, and the motor shows the axis's name and is greyed out.
-
Repeat for every axis you want to drive from a real motor.
While you drag, the Drag to link badge between the lists lights up and says where to drop. The rows you can drop on are tinted and the others fade: a motor goes on an axis that doesn't have one yet, and an axis on a motor that isn't linked.
If you link the wrong motor to an axis, click the unlink button (Unlink the motor from this axis) at the end of the axis's row, then drag a different motor onto it. Unlinking a connected axis disconnects it first.
You can also link a motor from the axis itself: choose it in the Motor list on the Connection card of the axis's General tab (see chapter 7).
Connecting and disconnecting
A link only says which motor belongs to which axis. To open communication with the motor, connect the axis:
-
Tick an axis's Connected box in the Connections panel to connect it, and clear it to disconnect. Connect and Disconnect on the axis's Axis Setup controls bar do the same (see chapter 7).
-
Click Connect All in the panel's heading to connect every linked axis that isn't connected yet. Once they all are, the button reads Disconnect All.
-
Or use the Connect All box on the status bar: tick it to connect every linked axis, clear it to disconnect them all. It shows a dash when only some are connected, and a click then disconnects them all. It is unavailable while the Record screen is open. The Connect all axes button at the right of the Axes panel's toolbar does the same.
Beside the status bar's box, the connection count (for example 2 of 3 axes connected) has a dot that is green when every axis is connected, yellow when some are, and grey when none are.
Figure 6.2. The right-hand end of the status bar: the controller, the connection count and the Connect All box. While motors are being found, a spiral and Searching for motors… show here too.
A progress window, Connecting to the motors..., stays up while Contours connects. If a motor doesn't answer after a few tries, a message names the axis that couldn't connect and what to check.
The Status light on each axis row shows the motor's state: green in position, yellow-green moving, yellow disabled, red for a fault, grey not connected. Point at it to read the state, and click it to enable or disable the motor. Connecting doesn't enable a motor by itself.
Note. Enabled, Find home, Go home, Read from motor and Write to motor in Axis Setup need the axis connected, and are greyed out until it is. So do the terminal and the loads on the Motor tab (see chapter 8).
A motor takes one connection at a time. While Contours 3D is connected to a motor, Contours 2, Control Room or another copy of Contours can't connect to it, and the other way round. Disconnect in one program before you connect from another: for example, disconnect a motor in Contours 2 (or close Contours 2) before you connect it in Contours 3D. A network motor whose connection wasn't closed, because a program stopped unexpectedly or the PC lost power, can go on holding it; if nothing can connect to it, switch the motor off and on.
Caution. Wait a few seconds after disconnecting a motor before you connect it again. A motor that is disconnected and reconnected in quick succession can stop responding until it is switched off and on again (see chapter 26).
Motor firmware
Most of Contours works with any Cool Muscle motor firmware. Live update (see chapter 11) and recording (see chapter 12) are different: the motors follow positions the PC sends them as you work, and that needs version 3 motor firmware, the firmware made for Contours 3D. A CM1-C serial motor needs RT3.14.11B18 or later.
A motor with older firmware (version 2, RT3.14.10 and earlier) still connects, takes its program and shows, and runs shows with Run show and the Test tab. When you turn on Live update or start recording with it, it is refused with a message such as Pan's motor has version 2 firmware (RT3.14.10), which can't follow the PC: it needs version 3.
The Firmware card on the axis's Motor tab shows which firmware a motor has, and updates it to the firmware Contours 3D carries (see chapter 8).
If a connection is lost
If a motor's connection drops (a network cable is pulled, a serial motor's USB adapter is unplugged, the network fails, or the motor loses power or resets), Contours closes that connection and carries on:
-
A message at the bottom of the window says, for example, Lost the connection to Pan.
-
The axis shows as not connected everywhere, and you can connect it again once the motor is back.
-
If you were recording with that axis, the take stops as if you had clicked Stop, and a message explains what Save will keep (see chapter 12).
-
If a show was playing, the other motors play on, and the lost motor is left out.
After you plug a network cable back in, the motor can take 30 to 50 seconds to accept a connection again, because it is still holding the old one. If connecting fails, wait a little and try again.
A motor that resets, or a USB adapter that is unplugged, is noticed within about a second, and a pulled network cable within about 5 seconds. Contours can't yet detect a lost network motor set up for UDP, or a serial motor that is switched off while its USB adapter stays plugged in (see chapter 26).
Using a controller
A controller (a joystick or gamepad) is optional, and it is how you record motion by hand (see chapter 12). To use one:
-
Plug the controller in at any time. Contours notices controllers being plugged in and removed within a couple of seconds.
-
Choose it on the Controller card of the Controller tab in Project › Options (see chapter 23), or on the Controller card of any axis's Controller tab (see chapter 7). Contours uses one controller for every axis.
-
The status bar then reads Controller (<name>). With no controller, it reads No controller.
Each axis's Controller tab sets which of the controller's axes moves it, its direction, its ranges and its Filter lag.