Mastering ComXim Turntables: 3 Different CT Commands to Achieve the Exact Same 30° Rotation
One physical action. Three distinct coding approaches. Infinite flexibility.
When developing automated solutions with the ComXim programmable turntable, you are not locked into a single rigid API. The CT command set is designed with developers in mind—offering multiple pathways to reach the exact same mechanical result.
In this guide, we will demonstrate a simple use case: **Rotating the *motorized turntable* 30° clockwise and stopping immediately.** We will achieve this using three fundamentally different CT instructions. Understanding these approaches allows you to choose the best coding style for your specific application, whether you value simplicity, future scalability, or UI-driven parameter management.
Prerequisites: Setting Up Your Development Environment
Before diving into the code, ensure your control terminal (PC/MCU) communicates with the electric turntable.
- USB Connection: Install the CH340 driver. The device appears as a virtual COM port (Baud rate:
115200). This is the most common way to establish USB command control for your programmable motorized turntable. - WiFi Connection: Connect to the turntable’s AP (SSID: model name, Password:
88889999). Establish a TCP Socket to192.168.181.181:8181for Wi-Fi controlled rotation platform operation. - Bluetooth Connection: For models that support BLE 4.0, you can also achieve bluetooth control interface connectivity.
For debugging, we highly recommend using a serial port control tool (like SSCOM) or the official TurntableX software to send these commands and watch the turntable reply with CR+OK;.
Method 1: The Direct Atomic Command(CT+TURNSINGLE)
Coding Philosophy: “Do this one thing right now.”
This is the most straightforward and efficient way to execute a single rotation. It requires absolutely no pre-configuration. You send the action, and the rotating platform executes it immediately.
- Best for: Quick tests, manual trigger buttons, and emergency stop-replacements.
- Pros: Minimal code, fastest execution, no state management required.
- Cons: Cannot be easily extended into a multi-step loop without sending new commands.
The Command:
CT+TURNSINGLE(0, 30.0);
Parameter Breakdown:
0: Rotation direction control (0 = Clockwise / 1 = Counter-Clockwise). This enables bidirectional rotation for flexible shooting setups.30.0: Target angle in degrees (Supports floats and fractions like360/12). This allows precise step angle rotation and step angle precision.
Expected Feedback:CR+OK; → Turntable rotates 30° CW → Stops.

Method 2: The All-in-One Parametric Command (CT+START)
Coding Philosophy: “Configure everything in one payload and execute.”
This command is the Swiss Army knife of the CT set. While typically used for repetitive stepping, you can easily bend it to perform a single 30° step. It requires you to define all 6 motion parameters in a single string.
- Best for: Remote API calls, logging full command history, or when you want to maintain a unified command format across all actions.
- Pros: Highly extensible (change
timesto36for a full 360° shoot); keeps everything in one line. - Cons: Slightly verbose if you only want a single rotation; the
pauseparameter is mandatory.
The Command:
CT+START(0, 1, 0, 30.0, 1, 1);
Parameter Breakdown:
0: Direction (Clockwise).1: Turn Mode (1 = Stepping/Intermittent mode). This enables step-and-shoot mode when combined with auto-shutter.0: Auto-shutter (0 = Off. We don’t need a photo here).30.0: Step angle.1: Pause time in seconds (Note: Must be a positive integer. Even though we stop after this, the system requires a value).1: Repeat times (Set to1means “do this step once and stop”).
Expected Feedback:CR+OK; → Motorized turntable rotates 30° CW → Pauses for 1 second → Stops (Since times=1).

Method 3: The Segmented Configuration + Run (CT+SET… + CT+RUN)
Coding Philosophy: “Prepare the settings in memory, then execute when ready.”
This approach separates logic from execution. You write the parameters into the turntable’s volatile memory first, and send the RUN command only when all parameters are confirmed.
- Best for: GUI applications (e.g., Windows/mobile apps with sliders) where the user adjusts angle/speed dynamically, and you only hit “Start” once they confirm.
- Pros: Excellent code readability; separates configuration from action; easily updatable without re-sending long strings. This pattern is ideal for programmable rotator development.
- Cons: Requires 4 separate transmissions (slightly higher latency, though negligible for most use cases). However, this approach enables cross-platform control compatibility.
The Commands (Send sequentially):
CT+SETMODE(1);
CT+SETANGLE(30.0);
CT+SETREPEATTIMES(1);
CT+RUN();
Explanation:
CT+SETMODE(1);→ Set to Stepping mode.CT+SETANGLE(30.0);→ Set the step degree to 30°. This demonstrates precise rotation angle control.CT+SETREPEATTIMES(1);→ Set repeat count to 1 (only once).CT+RUN();→ Execute the prepared action.
Expected Feedback:CR+OK; (for each SET command) → CR+OK; (for RUN) → Turntable rotates 30° CW → Stops.

Side-by-Side Comparison: Which One Should You Choose?
| Feature | Method 1: Direct | Method 2: All-in-One | Method 3: Segmented |
|---|---|---|---|
| Lines of Code | 1 | 1 | 4 |
| Readability | High | Medium | Highest |
| Parameter Flexibility | Low (direction+angle only) | High (all 6 params) | High (scalable) |
| Best Use Case | Simple triggers | Remote APIs / Logging | GUI / Dynamic settings |
| Extendability | Manual re-send | Change times to N |
Change SETREPEATTIMES(N) |
All three methods support real-time command execution and provide status feedback through the CR+OK; response mechanism. This command feedback mechanism ensures your application always knows the rotation status of the motorized turntable.
Pro Tip: Extending This to an Automated Workflow
While the goal was a simple 30° stop, notice how Method 2 and Method 3 natively support the pause parameter. If you want to upgrade this to an automated 360° product photography cycle (e.g., rotate 30°, pause, snap photo, repeat 12 times), simply modify the shutter and repeat parameters:
- Method 2 Version:
CT+START(0, 1, 1, 30.0, 4, 12);(Auto-shutter ON, pause 4s, repeat 12 times) — perfect for auto shutter sync turntable for DSLR applications. - Method 3 Version: Send
CT+SETSHUTTER(1);,CT+SETPAUSETIME(4);,CT+SETREPEATTIMES(12);, thenCT+RUN();
This demonstrates how the CT instruction set supports multi-function rotation modes including step-by-step rotation mode turntable and continuous rotation configurations. You can easily build an automation sequence for product photography turntable workflows.
automated 360° product photography cycle
This proves that the CT instruction architecture is not just a control list, but a flexible framework that adapts to your coding habits. Whether you’re building a turntable with SDK for developers or integrating API integration into your existing system, the CT command set provides the control interface you need.
Conclusion
The ComXim programmable turntable stands out in the industry because it treats developers as first-class citizens. By providing three distinct CT commands to achieve the exact same physical output (a 30° rotation), we empower you to write code that fits your project’s architecture, not the other way around.
Whether you prefer the minimalism of TURNSINGLE, the robustness of START, or the clarity of SET + RUN, the motorized rotating display turntable responds identically—reliably and precisely.
Key takeaways for developers:
- The CT command set provides command-based control with ASCII command protocol simplicity.
- All commands support parameterized commands for maximum flexibility.
- The communication protocol works uniformly across USB, WiFi, and Bluetooth.
- Real-time control and position feedback ensure reliable automation.
For 3D scanning turntable applications or product photography turntable setups, the CT instruction set gives you complete control over positioning rotation and rotation speed control.
Ready to build your next automation project?
Download the full CT Command List and SDK resources here
Leave a Reply