Programmable Turntable CT Commands FAQ: 12 Answers for Integration Work

Turntable CT commands are short ASCII control strings that a host computer sends to a ComXim programmable turntable. Each frame starts with CT, carries a command name plus parameters, and ends with a semicolon. This FAQ answers the twelve questions that come up most often during integration: link setup, firmware gates, motion start, shutter faults, zero position, return messages, and error codes.
A CT command is a plain-text frame such as CT+START(0,1,0,10,2,36);. The turntable replies with CR+OK; when it accepts the frame, with CR+EVENT=TB_PAUSE; or CR+EVENT=TB_END; when a run milestone happens, and with CR+ERR=NN; when parsing fails. Firmware V2R05C05 supports the full command set described on this page, and every string below is copied from that official list.
Three facts decide most outcomes:
- USB units need the CH340 driver first, then open a COM port at 115200 baud.
- Wi-Fi units accept a TCP socket on port 8181 instead of a serial port.
- Every frame uses English characters only and must end with a semicolon.
What Are Turntable CT Commands and How Do They Work?
A CT command is a request frame that travels from the controller to the turntable. The device parses it, runs the action, and answers on the return channel. Commands begin with CT, replies begin with CR, and both sides end with a semicolon. That symmetry makes debugging easy, because you always know which direction a frame came from.
Support splits into two groups. System and query commands handle identity and switches, so CT+GETFWV(); and CT+GETPN(); report what the unit is. Motion commands such as CT+START(…) and CT+RUN(); move the table. Hardware-dependent commands need the matching option on board, and a missing option returns code 40.
How Is a CT Command Frame Structured?
Every frame follows the same five parts. Its header is the two letters CT, and its connector is a plus sign. Command names follow that connector, while parameters sit inside brackets. A semicolon closes the frame. CT(); is the shortest legal command at five characters, and it works as a link test.
Parameters stay strict about type and count. CT+SETSPEED(speedGrade); takes one integer from 0 to 127, while CT+START(direction,turnMode,shutter,angle,seconds,times); takes six. A wrong count returns CR+ERR=63; or CR+ERR=64;, so the reply tells you what to fix.
Which Connection Settings Do USB and Wi-Fi Units Need?
USB units need the CH340 driver before the operating system shows a COM port. Open that port at 115200 baud, and keep one rule in mind: a USB serial port is exclusive, so only one terminal can hold it at a time. Close your debug tool before your control software opens the same port, or the second caller fails silently.
Wi-Fi units behave differently. They accept a TCP socket on port 8181, and you can move the address with CT+SETIP(192.168.4.1);. That change applies after a reboot, so build the restart into your commissioning step. Each ComXim programmable turntable uses the same parser on both paths, so the frame rules never change with the transport.
Why Does the Turntable Answer CR+ERR Instead of CR+OK?
The parser checks a frame in a fixed order, and it stops at the first fault. Because that order never changes, the error code points straight at the broken part. Once you read codes as a sequence rather than a list, most faults take one edit to clear.
Which Symbols Break a Frame?
A frame shorter than five characters triggers CR+ERR=41;, and CT(); is the shortest legal command. Next comes the header check, where anything other than CT returns CR+ERR=42;. After that, the connector must be +, or you receive CR+ERR=43;.
Brackets follow in the same sweep. A missing opening bracket returns CR+ERR=45;, while a missing closing bracket returns CR+ERR=46;. Finally, a frame without the terminating semicolon returns CR+ERR=48;. Two rarer codes cover naming: CR+ERR=51; means the command name runs too long, and CR+ERR=52; means the parser cannot recognise the name at all.
Which Parameter Errors Come After the Frame Check?
Once the frame shape is correct, the parser inspects the payload. An empty parameter returns CR+ERR=61;. An over-long value returns CR+ERR=62;. Too many arguments return CR+ERR=63;, while a mismatch against the declared count returns CR+ERR=64;.
Value type and range come last. Non-numeric input is reported as CR+ERR=70; through CR+ERR=79;, where 71 marks the first argument and 79 the ninth. Out-of-range numbers follow the same pattern with CR+ERR=80; through CR+ERR=89;. In daily work, codes 71 to 79 and 81 to 89 are simply the detailed forms of the 70 and 80 families.
Which Error Code Maps to Which Fault?

| Error code | What it means | First check |
|---|---|---|
| CR+ERR=31; | Serial port timeout | Port number, baud rate, cable |
| CR+ERR=40; | Function unsupported on this model | Fitted hardware options |
| CR+ERR=41; | Frame shorter than 5 characters | Use CT(); as the minimum |
| CR+ERR=42; | Wrong header | Start the frame with CT |
| CR+ERR=43; | Wrong connector | Put + right after CT |
| CR+ERR=45; | Missing opening bracket | Check the ( symbol |
| CR+ERR=46; | Missing closing bracket | Check the ) symbol |
| CR+ERR=48; | Missing terminator | End the frame with ; |
| CR+ERR=51; | Command name too long | Shorten the name |
| CR+ERR=52; | Unknown command name | Check the spelling |
| CR+ERR=61; | Empty parameter | Fill in the value |
| CR+ERR=62; | Parameter too long | Shorten the value |
| CR+ERR=63; | Too many arguments | Match the declared count |
| CR+ERR=64; | Argument count mismatch | Count the commas again |
| CR+ERR=70; | Non-numeric parameter | Send digits only |
| CR+ERR=80; | Number out of range | Check the allowed range |
Frequently Asked Questions About Turntable CT Commands
How Do I Check the Link and the Handshake?
Q1: The turntable stays silent after I send a command. Where do I look first?
Check the port before you check the command. Confirm the COM port number, set 115200 baud, and make sure no other terminal still holds the device. Send CT(); right after that. A working link answers with CR+OK; immediately, so silence at this stage points to transport trouble rather than a bad command.
Q2: How do I confirm the link before any motion?
Send CT(); as a startup test, then read the reply. The string CR+OK; proves that the instruction system and the connection are both healthy. If you later want a quiet bus, remember that CT+ACK(0); disables the acknowledgement, so a silent console may be your own switch instead of a fault.
Which Firmware Version Do I Need?
Q3: How do I know which commands my unit supports?
Ask the device instead of guessing. CT+GETFWV(); returns the firmware string, as in FWV=FW V2R04C02;CR+OK;. The model name comes from CT+GETPN();, for example PN=MT200RUWPSL20Pr;CR+OK;. The unique electronic ID comes from CT+GETEBC();, in the form EBC=B0E3-8ADB-4343-A1A3;CR+OK;. Version gates matter here: CT+RUN(); needs V2R04C02, weight commands need V2R05C01, and the hardware-zero report CR+EVENT=TB_MARK; needs V2R05C05. On a command-controlled turntable, the model string also shows which hardware options are fitted.
Q4: Should I keep ACK, EVENT, and heartbeat enabled?
Keep all three on during commissioning. CT+ACK(onOff);, CT+EVENT(onOff);, and CT+HEARTBEAT(onOff); default to enabled, and they give you the evidence you need when timing drifts. Later, a busy production cell can disable them with argument 0 to cut traffic. Take that step only after the motion sequence runs clean.
Why Does the Table Not Start Rotating?
Q5: Why does CT+SETMODE(1); not start rotation?
Because a mode setting only selects a behaviour. The controller waits for CT+RUN(); before it moves, and that command requires firmware V2R04C02 or later. If you prefer one frame to do everything, send CT+START(direction,turnMode,shutter,angle,seconds,times); instead, since it sets the parameters and starts motion together.
Q6: Can I write the step angle as a fraction?
Yes, and the fraction form often reads better. CT+SETANGLE(22.5); and CT+SETANGLE(360/16); both produce a 22.5 degree step, so a 16-stop spin reads naturally in the second form. Step work also needs CT+SETPAUSETIME(seconds); and CT+SETREPEATTIMES(times);, because a step sequence needs both a dwell time and a cycle count.
Why Does the Camera Not Fire, and How Do I Handle Zero Position?
Q7: The camera never fires in auto mode. What should I check?
First check the shutter argument inside CT+START, where 0 means manual and 1 means auto. Next confirm the switch with CT+SETAUTOSHUTTER(1);. Then inspect the cable and the camera body, because CR+ERR=40; means this model does not support the function at all. For a phone, CT+PHONECAMCTRL(ShutterTime); takes a duration in milliseconds, and 250 to 500 suits most devices.
Q8: How do I handle zero position and drift?
Set the origin with CT+SETZERO();, then return to it with CT+TOZERO(); at any time. Firmware V2R03C02 or later adds CT+TOZEROBYDIR(direction);, where 0 returns clockwise and 1 returns counterclockwise. For the hardware sensor origin, send CT+GOTOMARK();. That command works from V2R03C02 onward, yet the report CR+EVENT=TB_MARK; appears only on V2R05C05 and later.
You can also read the current deviation with CT+GETOFFSETANGLE();. A reply of OffsetAngle= +16.12° means the table sits 16.12 degrees clockwise from the origin, while OffsetAngle= -47.29° means 47.29 degrees counterclockwise. Both values describe software offset, so a physical re-zero still needs CT+GOTOMARK();.
What Do CR+OK and CR+EVENT Mean?
Q9: I only receive CR+OK;, never an event. Is that normal?
Yes, and CR+OK; only confirms receipt. Events travel on a separate channel, which CT+EVENT(onOff); controls. In step mode, CR+EVENT=TB_PAUSE; arrives each time the table pauses, while CR+EVENT=TB_END; marks the end of the whole sequence, such as the full cycle count inside CT+START. The third event, CR+EVENT=TB_MARK;, reports arrival at the hardware origin and needs V2R05C05.
Q10: The console shows ### instead of #. What does that mean?
It means the heartbeat link is degrading. A healthy device sends one # byte every second. After three seconds without a # byte and without any CT command, the unit enters heartbeat loss state and sends ### every second. Treat that string as a transport alarm: check the cable, check the socket, and confirm that your software still polls the port.
How Do I Read Error Codes and Speed Levels?
Q11: How do I read an error code quickly?
Split the number into families first. Code 31 means a serial port timeout, and code 40 means the function is unsupported on this model, which covers a missing shutter, power LED, or RGB light. Codes 41 to 52 describe frame damage, codes 61 to 64 describe parameter problems, codes 70 to 79 mark non-numeric input, and codes 80 to 89 mark out-of-range numbers. Log the whole frame with a timestamp, because the code alone never shows which call produced it.
Q12: Why does my speed setting not match what I asked for?
Speed works in levels rather than physical units. CT+SETSPEED(speedGrade); accepts 0 to 127, and values outside that range return an error. Inside the range but above the maximum level of your model, the controller simply uses its own maximum. For small changes, CT+CHANGESPEED(1); adds one level and CT+CHANGESPEED(0); drops one. Save a working setup with CT+SAVECONF();, and read it back later with CT+GETTBCONFIG();.
How Do I Run a 90-Second Pre-Shoot Check?
First, open the link and send CT();. A clean CR+OK; tells you the transport is alive before any metal moves.
Next, record identity. Send CT+GETFWV(); and CT+GETPN();, then paste both strings into your job sheet.
Then review the stored setup with CT+GETTBCONFIG();, because a leftover configuration from an earlier job causes most “unexpected” behaviour.
After that, set the motion. Send CT+SETSPEED(4);, CT+SETANGLE(360/36);, and CT+SETPAUSETIME(2);, then start with CT+START(0,1,0,10,2,36);.
Finally, watch the return path. You should see CR+EVENT=TB_PAUSE; after each stop and CR+EVENT=TB_END; at the end. Stop early at any time with CT+SETSTOP();.
How Do I Keep the Control Link Stable Long Term?
How Should I Log Return Messages?
Log every CR+OK; and every CR+ERR=NN; with a timestamp and the frame you sent. That habit turns a rare fault into a searchable record, and it helps a supplier reproduce the problem without a site visit. Store the log beside the job rather than in a temporary console window.
How Do I Keep Command Files Clean?
Keep one canonical copy of each command in a text file, and copy from that file instead of retyping. Whitespace, smart quotes, and non-English punctuation break frames in ways the eye misses. When a team shares the rig, version that file, because two slightly different copies waste hours of debugging time.
What Wiring and Switch Rules Prevent Faults?
Power the table before you open the port, and never pull a USB cable while a job runs. Label the cable at both ends, since a swapped port looks exactly like a dead device. Disable ACK, EVENT, or heartbeat only after the sequence runs clean for a full day, and note the change in the job sheet. Where the manual and the command list disagree, follow the command list.
Key Takeaways
- Verify the link with CT(); before you send any motion command.
- Read the three error families in order: frame, parameter, and value range.
- Match every command to its firmware gate before you rely on it.
- Keep the return channel switched on until the sequence is stable.
- Save the proven setup with CT+SAVECONF(); so the next job starts from a known state.
