CT Commands Part 2: Basic Motion Setup for Programmable Motorized Turntable

Overview of The Command Set
- First of all, this group of CT commands forms the basic motion configuration command set. Accordingly, you use these commands to define the turntable zero point, return to origin, set rotation direction, select working mode, define rotation angle, adjust pause duration and set loop repetition counts.
- Meanwhile, these commands work with the full range of ComXim programmable electric turntables. Furthermore, communication links do not limit command execution. USB, WiFi and BLE Bluetooth all support sending these instructions. In other words, no matter which channel you choose, you keep the identical command text.
- Besides, this command set builds the underlying foundation for automated product photography and 3D object scanning. Once paired with the ComXim programmable intelligent turntable, you build a fully automatic shooting workflow without manual operation.
- Specifically, this set brings clear core advantages.
- First, it delivers unified command syntax. The command text stays identical no matter which communication channel you use.
- Second, it offers fine controllable parameters. You customize angle values, pause time and repetition counts freely.
- Third, it supports secondary development. Therefore, you embed these commands into custom scripts to finish multi‑angle object shooting in batches.
- Fourth, it provides hardware zero marker support. As a result, it keeps consistent angle references for repeated scanning tasks.
Detailed Applicable Scenarios
Automated E‑commerce Product Photography
- To start with, you want the turntable to rotate a fixed angle each step, pause for camera capture, and loop through a full circle.
- For this reason, this workflow suits independent store product images and Amazon listing photos perfectly.
3D Scanning and Modeling
- Next, scanning software requires the turntable to return to a unified zero point. This setting eliminates position offset between multiple scanning sessions.
- Accordingly, you align every scan to the same starting angle.
Automatic Exhibition Display
- Furthermore, showroom demo units need back‑and‑forth swing or step‑by‑step rotation without on‑site operators.
- Consequently, this command set fits unattended display scenarios very well.
Automated Quality Inspection
At the same time, machine vision systems require fixed angular positioning to check surface defects on workpieces in batches.
Custom Secondary Development
In addition, programmers write host computer software and call these commands to link the turntable with automatic camera shutter triggers.
Command Syntax and Full Parameter Breakdown
Next up, we break down syntax, parameters, valid value ranges and usage restrictions for all seven commands one by one.
CT+SETZERO();
- Syntax format: CT+SETZERO();
- This command carries no input parameters.
- Function description: You mark the current physical position of the turntable as the system zero point.
- Execution logic: The turntable does not rotate. On the contrary, it only updates internal registers and saves the current position as the 0‑degree reference.
- Usage note: Executing this command triggers no physical rotation. Many new users confuse SETZERO with TOZERO.
- Format restriction: Do not enter any numbers inside the parentheses. Once you add parameters, the turntable rejects the command.
CT+TOZERO();
- Syntax format: CT+TOZERO();
- This command carries no input parameters.
- Function description: You drive the turntable to physically rotate back to the pre‑defined zero position.
- Execution logic: The turntable reads the saved zero point after power on; after receiving this command, then it rotates automatically.
- Usage note: Do not block the rotating turntable manually during homing movement.
- Format restriction: Do not fill any values inside parentheses, otherwise the command returns an error.
CT+SETDIR(direction);
- Syntax format: CT+SETDIR(direction);
- Parameter: direction, integer value for rotation direction.
- Valid values: 1 = clockwise rotation, 0 = counter‑clockwise rotation.
- Function description: You set the rotation direction for all subsequent turntable movements.
- Execution logic: After you set the direction, later angle steps and loop actions follow this selected direction.
- Usage note: SETDIR only updates direction configuration. It does not trigger turntable rotation.
- Format restriction: The parameter accepts only 0 or 1. If you input other integers, the turntable ignores this setting.
CT+SETMODE(turnMode);
- Syntax format: CT+SETMODE(turnMode);
- Parameter: turnMode, integer number for working mode selection.
- Value definitions:
- 0 = Continuous mode (default)
- 1 = Repeat stepping mode
- 2 = Swing mode
- Function description: You switch the turntable operating mode.
- Execution logic: After you finish mode selection, angle, pause and loop commands take effect under that mode.
- Usage note: We recommend you change modes while the turntable stays stationary.
- Conversely, if you switch modes during rotation, the motion may behave abnormally.
- Format restriction: You use integers from 0 to 4 only. Other values cannot be recognized;
- therefore, the active mode remains unchanged.
CT+SETANGLE(angle);
- Syntax format: CT+SETANGLE(angle);
- Parameter: angle, single step rotation angle, integer or float number.
- Valid range: 0 ~ 360. The unit is degrees.
- Function description: You define the rotation angle for a single stepping movement.
- Execution logic: It works under single step, repeat step and multi‑step circle modes; by contrast, continuous rotation mode ignores this angle parameter.
- Usage note: If the angle exceeds 360, the turntable caps it at 360. Negative angles are not supported. Instead, you switch rotation direction via SETDIR.
- Format restriction: Never input negative numbers. Once negative values arrive, the hardware discards negative angle commands directly.
CT+SETPAUSETIME(seconds);
- Syntax format: CT+SETPAUSETIME(seconds);
- Parameter: seconds, waiting time after each rotation step, positive integer only.
- Valid range: 0 ~ 60. Unit is seconds. Decimal values are not supported. For example, you can enter 4 or 5, but not 2.5.
- Function description: You set the dwell time after the turntable finishes each rotation step.
- Execution logic: This parameter activates in repeat stepping, full circle multi‑step and swing modes; however, continuous rotation does not create pause intervals.
- Usage note: This pause window hosts the automatic shutter trigger. By default, the shutter fires at the 2nd second of the pause period.
- Format restriction: Negative values are invalid. Once you enter a value over 60, the device clamps it to 60 seconds automatically.
CT+SETREPEATTIMES(times);
- Syntax format: CT+SETREPEATTIMES(times);
- Parameter: times, total repeat cycles, integer number. Valid range: 0 ~ 999; 0 means infinite looping.
- Function description: You set how many times the full step sequence repeats.
- Execution logic: Repeat stepping, swing and multi‑step circle modes read this parameter. Meanwhile, when you set it to 0, the sequence runs continuously until a stop command arrives.
- Usage note: When infinite loop is active, you must send a stop command to halt the turntable.
- Format restriction: The device discards negative inputs directly.
Step‑by‑Step Practical Tutorial

Step One: Device Preparation
First of all, you connect the power supply for the ComXim programmable intelligent turntable and turn on the power switch. Next you select your communication channel: USB, WiFi or Bluetooth. Afterwards, you open TurntableX software or the web console on your PC.
Step Two: Establish Communication
Next, you verify the heartbeat handshake. Only after the link stabilizes can the device receive your commands correctly.
Step Three: Configure Basic Parameters
Then, you send SETDIR, SETMODE, SETANGLE, SETPAUSETIME and SETREPEATTIMES commands sequentially. At this stage, the turntable only saves parameters and does not rotate.
Step Four: Start Turntable Motion
After finishing parameter setup, you send the run command. Then the turntable executes the movement following your defined parameters.
Step Five: Monitor Execution Feedback
At the same time, you listen for return messages from the turntable to confirm each command receives acknowledgement. If any command reports an error, you troubleshoot the parameter immediately.
Step Six: Stop and Reset
Lastly, you send a stop command to pause operation. If you need to recalibrate the reference point, you run SETZERO(); again.
Practical Command Example
- Use case: E‑commerce product 360° photo capture. Clockwise rotation, 36 steps for a full circle, 10 degrees per step, 4 seconds pause each step, run 36 cycles.
- You send the following commands in sequence:
- CT+SETDIR(0);
- CT+SETMODE(1);
- CT+SETANGLE(10);
- CT+SETPAUSETIME(4);
- CT+SETREPEATTIMES(36);
- CT+RUN();
- Explanation: First, you set clockwise rotation and activate repeat stepping mode. Second, you rotate 10 degrees each step, hold for 4 seconds, and repeat the sequence 36 times to complete one full circle. After all parameters are configured, you must send CT+RUN(); to trigger the turntable to start the full workflow.
- Besides, you can copy this command sequence directly for automatic 360‑degree product photography on your WooCommerce store, paired with camera shutter triggering.
Common Errors and Troubleshooting

Invalid Direction Parameter
- Issue: You send SETDIR(2), yet the rotation direction stays unchanged.
- Root cause: The direction parameter only accepts 0 and 1. Value 2 counts as invalid; therefore, the device drops the command and keeps the original direction.
- Solution: You update the parameter. Use SETDIR(1) for clockwise or SETDIR(0) for counter‑clockwise rotation.
Out‑of‑Range Mode Number
- Issue: You send SETMODE(5), but the working mode remains the same.
- Root cause: Valid turnMode values range from 0 to 4. Number 5 falls outside the defined mode list; consequently, the hardware rejects the mode update.
- Solution: You select mode numbers from 0 to 4.
Negative Pause Time
- Issue: You send SETPAUSETIME(-3), but the pause time does not apply.
- Root cause: Pause time cannot take negative values. For this reason, the device filters negative input automatically.
- Solution: You input numbers greater than or equal to zero, for example SETPAUSETIME(3).
Turntable Does Not Respond
- Issue: The turntable does not respond to any sent commands.
- Troubleshooting checklist: First, you check the communication channel. Second, confirm the CH340 USB driver installs correctly. Third, if you use WiFi, verify you connect to the turntable hotspot. Last, you check the semicolon at the command end. A missing semicolon causes parsing failure.
Angle Exceeds Limit
- Issue: You send SETANGLE(450), but the turntable will not rotate 450 degrees.
- Root cause: The maximum angle limit is 360, and the hardware caps values exceeding this limit automatically.
- Solution: You keep angle values between 0 and 360.
Safety Guidelines and Equipment Maintenance
- Before operation, first you place the turntable on a flat and stable workbench. Do not exceed the rated torque limit. For oversized items, you recalculate the effective load.
- During operation, keep your hands away from the rotating surface. Meanwhile, never block the rotating table forcibly, or you may damage the internal stepper motor.
- If you run infinite continuous cycles for long periods, we recommend you pause the device for 10 minutes every two hours for heat dissipation.
- At the same time, you keep the communication ports dry. Prevent dust and liquid from entering the housing connectors.
- When you change parameters, do so while the turntable stays stationary. Conversely, frequent mode switching during running causes motion disorder.
- Lastly, you inspect the power adapter regularly. Use the original matching power supply, because abnormal voltage can burn the control board.
FAQ Section
- Q1: What is the core difference between SETZERO and TOZERO?
- A1: SETZERO marks the current position as zero without rotating. In contrast, TOZERO makes the turntable physically rotate to the previously saved zero point.
- Q2: Do I need to run SETZERO every time after I place a new object?
- A2: We recommend you run SETZERO before each new shooting task. This way, it aligns the baseline and guarantees a consistent starting angle for all captured photos.
- Q3: How does SETPAUSETIME pause length relate to camera shutter trigger?
- A3: The pause interval includes the shutter trigger window. The shutter signal fires at the 2nd second by default. For this reason, leave enough pause time for camera focusing and image capture.
- Q4: SETREPEATTIMES(0) enables infinite loop. How can I stop the turntable?
- A4: You need to send a dedicated stop command to end the movement. After that, the turntable continues looping until it receives the stop instruction.
- Q5: Can these CT commands work over both Bluetooth and WiFi?
- A5: Yes. In other words, this CT command set uses identical syntax for USB, WiFi and BLE Bluetooth. You do not rewrite the command text for different channels.
- Q6: Can I modify SETDIR direction while the turntable is rotating?
- A6: The device can receive the command technically, but we strongly advise against this practice. Root cause: A mid‑run direction change creates mechanical impact and risks motor damage. So you adjust the direction while the turntable is stationary.
- Q7: Are these commands compatible with T weighing model turntables?
- A7: Yes. Besides, zero point and motion control commands work for MT, NT, UT series including T weighing variants. However, the weighing function uses separate CT commands outside this article.
- Q8: Under multi‑step one‑circle mode, will the turntable start rotating right after I send parameter commands?
- A8: No. In other words, configuration commands like SETDIR and SETMODE only save parameters. You need to send the start command to trigger the full shooting sequence.
Conclusion
All in all, this chapter covers seven core CT motion configuration commands. SETZERO marks the zero reference, and TOZERO performs the homing movement. Next, SETDIR controls the rotation direction. Furthermore, SETMODE switches between five working modes. Meanwhile, SETANGLE defines the per‑step rotation angle. SETPAUSETIME controls dwell time after each step. SETREPEATTIMES sets repeat cycles of your whole workflow. This command set lays the foundation for automated product shooting and 3D scanning pipelines. Accordingly, you embed these instructions into custom host scripts to run fully automated capture together with cameras. When you pair the commands with the ComXim programmable intelligent turntable, you raise photo production efficiency for your WooCommerce store and cut manual shooting workload. Always follow parameter limits strictly, and adjust settings when the turntable stops. In this way, you minimize hardware faults and keep your shooting pipeline stable.
Leave a Reply