Please read the Programmable Motorized Rotary Stage User Guide before beginning your development work.

ComXim Electric Turntable CT Command List – FW V2R05C01-EN

ComXim Electric Turntable CT Command List

Firmware Version: V2R05C01-EN

Complete command reference for turntable control and configuration

Last Updated: 2025-06-12
1000px
Command Params Description Version Notes
System Commands
CT(); 0 CT startup test, testing whether the instruction system and communication connection are normal. V2R02C01
CT+ACK(onOff); 1 ACK Feedback Switch (Default: ON)
onOff:
  • 0: Disabled
  • 1: Enabled (default)
V2R02C01
CT+EVENT(onOff); 1 Event Switch (Default: ON)
onOff:
  • 0: Disabled
  • 1: Enabled (default)
V2R02C01
CT+HEARTBEAT(onOff); 1 Heartbeat switch (default: ON)
onOff:
  • 0: Disabled
  • 1: Enabled (default)
V2R02C01
CT+SETIP(ipAddr); 1 Set device IP address (Wi-Fi version, takes effect after reboot)
Example: CT+SETIP(192.168.4.1);
V2R03C01 only Wi-Fi
Query Commands
CT+GETTBCONFIG(); 0 Get saved device configuration (return values match CT+SAVE command listing). V2R02C01
CT+GETPN(); 0 Get product model name
Returns example: PN=MT200RUWPSL20Pr;CR+OK;
V2R02C01
CT+GETEBC(); 0 Get product unique electronic ID
Returns example: EBC=B0E3-8ADB-4343-A1A3;CR+OK;
V2R02C01
CT+GETFWV(); 0 Get firmware version
Returns example: FWV=FW V2R04C02;CR+OK;
V2R02C01
CT+GETOFFSETANGLE(); 0 Get turntable’s current offset angle from zero point (supported after FW V2R03C01)
Example returns:
OffsetAngle= +16.12° (16.12° clockwise from origin)
OffsetAngle= -47.29° (47.29° counterclockwise from origin)
V2R03C02
Turntable Control Commands
CT+IRDISABLE(onOff); 1 IR remote disable switch
onOff:
  • 0: No (keep enabled)
  • 1: Yes (disable)
V2R02C01
CT+SPKMUTE(onOff); 1 Turntable mute switch
onOff:
  • 0: Unmuted (default)
  • 1: Muted
V2R02C01
CT+SAVECONF(); 0 Save device configuration with the following content:
Turntable parameters:
  • Rotation direction:
    • 0: Left (clockwise)
    • 1: Right (counterclockwise)
  • Rotation mode:
    • 0: Continuous
    • 1: Intermittent
    • 3: Swing (not supported)
  • Auto shutter:
    • 0: Disabled
    • 1: Enabled
  • Rotation angle: Positive float (degrees)
  • Pause time: Positive integer (seconds)
  • Repeat count: Positive integer (times)
  • Speed level: Positive integer (if exceeds maximum supported level, uses maximum)
If product supports LED lighting:
  • Power LED parameters:
    • Power LED1 brightness level: 0 or positive integer (invalid if out of range)
    • Power LED2 brightness level: 0 or positive integer (invalid if out of range)
    • Power LED3 brightness level: 0 or positive integer (invalid if out of range)
    • Power LED4 brightness level: 0 or positive integer (invalid if out of range)
    • Power LED5 brightness level: 0 or positive integer (invalid if out of range)
    • Power LED6 brightness level: 0 or positive integer (invalid if out of range)
  • Color LED parameters:
    • Save RGB values of RGB LEDs
V2R02C01
CT+SETSTOP(); 0 Set turntable stop V2R02C01
CT+SETSPEED(speedGrade); 1 Set turntable speed level
speedGrade: Positive integer (0~127, error if out of range)
Note: If within 0~127 but exceeds turntable’s max supported level, uses maximum speed
Example: Current level=5 → After CT+SETSPEED(3);, level=3
V2R02C01
CT+CHANGESPEED(speedUpOrDown); 1 Adjust turntable speed level
speedUpOrDown:
  • 0: Decrease speed (reduce by 1 level)
  • 1: Increase speed (add 1 level)
V2R02C01 Example: CT+CHANGESPEED(1);
CT+SETZERO(); 0 Set current position as zero point V2R02C01
CT+TOZERO(); 0 Return turntable to previously set zero position V2R02C01
CT+SETDIR(direction); 1 Set turntable rotation direction (direction setting only)
direction:
  • 0: Left (clockwise) (default)
  • 1: Right (counterclockwise)
V2R02C01
CT+SETMODE(turnMode); 1 Set turntable rotation mode
turnMode:
  • 0: Continuous mode (default)
  • 1: Step-repeat mode
  • 2: Swing mode
Note:
1. Mode setting alone won’t start rotation – must use with CT+RUN();
2. Step-repeat and swing modes require additional parameters (see START command)
V2R02C01
CT+SETANGLE(angle); 1 Set rotation angle (for non-continuous modes)
angle: Positive float or fraction (degrees)
Examples:
CT+SETANGLE(22.5); → 22.5° (360/16)
CT+SETANGLE(360/16); → 22.5° (equivalent)
Note: Both formats valid (fraction format useful for setting stops per rotation)
V2R02C01
CT+SETPAUSETIME(seconds); 1 Set step rotation pause time (for non-continuous modes)
seconds: Positive integer (unit: seconds)
V2R02C01
CT+SETREPEATTIMES(times); 1 Set turntable step repeat count (for non-continuous modes)
times: Positive integer (unit: times)
V2R02C01
CT+START(direction,turnMode,shutter,angle,seconds,times); 6 Turntable Multi-Parameter Setup Command
CT+START(direction,turnMode,shutter,angle,seconds,times);
Parameters:
  • direction: 0=Left (CW), 1=Right (CCW)
  • turnMode: 0=Continuous, 1=Step, 2=Swing (unsupported)
  • shutter: 0=Manual, 1=Auto
  • angle: Positive float (degrees)
  • seconds: Positive integer (seconds)
  • times: Positive integer (cycles)
V2R02C01
CT+TRUNSINGLE(direction,angle); 2 Set single rotation
direction: 0=Left (clockwise), 1=Right (counterclockwise) angle: Positive float (degrees)
V2R02C01 Deprecated Commands
CT+TBRESET(); 0 Restore device factory configuration. V2R02C01
CT+TOZEROBYDIR(direction); 1 Return to origin by specified direction (supported after FW V2R03极狐C01)
direction:
  • 0=Clockwise (left) return
  • 1=Counterclockwise (right) return
V2R03C02 Use CT+TOZERO() instead
CT+AUTOCALIBRATE(mode); 1 Enable/disable turntable auto calibration and calibration method (supported after FW V2R03C01)
mode:
  • 0: Calibration disabled
  • 1: Calibration enabled – calibration table method (requires pre-loading calibration data)
  • 2: Calibration enabled – adaptive compensation method
V2R03C02
CT+AUTOSLEEP(time); 1 Set turntable auto sleep time (0~30 minutes, 0=disable)
Example: CT+AUTOSLEEP(5); // Set auto sleep after 5 minutes of inactivity
V2R03C02
CT+GOTOMARK(); 0 Return to hardware zero point and set as new zero (supported after V2R03C02) V2R03C02 Hardware-dependent
CT+TURNSINGLE(direction,angle); 2 Set single rotation (supported from FW V2R04C01)
Note: Functionally identical to TRUNSINGLE command (corrected spelling error).
Recommended to use TURNSINGLE directly.
Parameters:
  • direction: 0=Left (CW), 1=Right (CCW)
  • angle: Positive float (degrees)
V2R04C02 Replace with: CT+TRUNSINGLE(1,60.0);
CT+RUN(); 0 Start turntable rotation (use after individual parameter settings) V2R04C02
DSLR or Smartphone Camera Control Commands
CT+SETAUTOSHUTTER(onOff); 1 Set turntable auto shutter
onOff:
  • 0: Manual
  • 1: Auto (default)
V2R02C01
CT+SETSHUTTER(timing, duration); 2 Set shutter timing and duration (for compatible devices)
timing:
  • 0: Pre-rotation
  • 1: Post-rotation
duration: Shutter open time in milliseconds (100-2000)
V2R03C02 Requires compatible camera module
CT+CAMERACTRL(focusOnOff,captureOnOff); 2 DSLR camera control
focusOnOff:
  • 0: Focus stop
  • 1: Focus start
captureOnOff:
  • 0: Capture stop
  • 1: Capture start
V2R02C01 CT+START command automatically triggers shutter in full-auto mode
CT+PHONECAMCTRL(ShutterTime); 1 Smartphone camera control
ShutterTime: Shutter signal duration (ms), recommended range 250-500 (may vary by device)
V2R04C02 CT+START command automatically triggers shutter in full-auto mode
Lighting Commands (Hardware-dependent)
CT+SETRGBC(r,g,b,effect); 4 Set RGB color and effect for color LEDs
r, g, b: Color values (0-255) effect:
  • 0: Solid color
  • 1: Breathing effect
  • 2: Pulsing effect
  • 3: Color cycle
V2R02C01 Product-specific support
CT+SETRGBCOLOR(Red,Green,Blue); 3 Set RGB LED values
Red (Red channel): Set red channel value of RGB, range 0~255, pure red setting: CT+SETRGBCOLOR(255,0,0); Green (Green channel): Set green channel value of RGB, range 0~255, pure green setting: CT+SETRGBCOLOR(0,255,0); Blue (Blue channel): Set blue channel value of RGB, range 0~255, pure blue setting: CT+SETRGBCOLOR(0,0,255);
For other colors, refer to RGB color model settings, example standard purple RGB: CT+SETRGBCOLOR(128,0,128);
V2R02C04
CT+SETLEDB(lightId, brightness); 2 Set brightness for individual light
lightId: ID of the light (1-6) brightness: Brightness level (0-100)
V2R02C01 Product-specific support
CT+POWERLED(ledNum,lightGrade); 2 Set power LED brightness level
ledNum: LED number (positive integer, refer to specific device definition, invalid if out of range; 0 means all power LEDs supported by the device) lightGrade: Brightness level (0 or positive integer, refer to specific device definition, invalid if out of range)
For MT450, ledNum is always 1.
V2R02C01
CT+KNOBDISABLE(onOff); 1 Dimming knob disable switch
onOff:
  • 0: No (do not disable)
  • 1: Yes (disable)
Under normal circumstances, both the knob and CT commands can control the lighting simultaneously. If complete knob shielding is required, this command can be used.
V2R02C01
CT+COLORLED(led1onOff,led2onOff,led3onOff); 3 Set color LED switch
ledxonOff(x=1~3): (0 or 1, 0=OFF 1=ON, other values invalid)
V2R02C01
Weight Measurement Settings & Queries (Hardware-dependent)
CT+SETWEIGHTSCALE(Num,Weight); 2 Set current weight calibration value (for weight calibration)
Num: 0~5, specifies which calibration value to set.
  • Num=0 sets offset (tare weight)
  • Num=1~5 sets 5 calibration values
Weight: Actual weight for calibration, precision 0.1kg (positive float, unit: kilograms (kg))
Examples:
CT+SETWEIGHTSCALE(0,0);// Sets current product as no-load. If loaded, recalibrates to 0kg (equivalent to tare).
CT+SETWEIGHTSCALE(1,0.5); // Calibrates 1st value as 0.5kg.
CT+SETWEIGHTSCALE(2,5.0); // Calibrates 2nd value as 5.0kg.
CT+SETWEIGHTSCALE(3,10); // Calibrates 3rd value as 10.0kg.
CT+SETWEIGHTSCALE(4,50); // Calibrates 4th value as 50.0kg.
CT+SETWEIGHTSCALE(5,150); // Calibrates 5th value as 150.0kg.
The product is factory-calibrated. Regular users can use directly without recalibration.
V2R05C01
CT+GETWEIGHTSCALE(); 0 Get current weight calibration values (for manual verification after calibration)
Example returns:
In_ROM_Set_Offset=-4243
In_ROM_Weight_Scale[0] = 6.32
In_ROM_Weight_Scale[1] = 6.36
In_ROM_Weight_Scale[2] = 6.37
In_ROM_Weight_Scale[3] = 6.37
In_ROM_Weight_Scale[4] = 6.37
In_ROM_Weight_Scale_Average = 6.36
V2R05C01
CT+GETWEIGHTBYkg(); 0 Get current load: unit kg
Example returns:
CurLoad(kg)=15.5kg indicates current load is 15.5kg
CurLoad(kg)=130.7kg indicates current load is 130.7kg
V2R05C01
EVENT FEEDBACK (Turntable -> Controller)
CR+EVENT=param; Turntable returns key events to the upper-level controller
This function can be enabled/disabled via “CT+EVENT(onOff);” command.
EVENT event feedback: param is the event parameter:
  • CR+EVENT=TB_PAUSE;: Turntable paused. This information is returned when rotation completes once in step-repeat mode (intermittent rotation mode) and pauses.
  • CR+EVENT=TB_END;: Action completed. Turntable finishes all actions, for example when completing the specified number of rotations (times) in the CT+START(direction,turnMode,shutter,angle,seconds,times); command.
V2R02C02
CT+EVENT:ROTATION_START; 0 Sent when turntable starts rotating V2R02C01 Event type
CT+EVENT:ROTATION_COMPLETE; 0 Sent when turntable completes a full rotation cycle V2R02C01 Event type
CT+EVENT:SHUTTER_TRIGGER; 0 Sent when shutter is triggered V2R03C02 Event type
Heartbeat Mechanism (Turntable -> Controller)
Heartbeat “#” or “###” For communication link detection between device and terminal. The device and terminal exchange heartbeat bytes “#” to notify each other’s connection status.
This function can be enabled/disabled via “CT+HEARTBEAT(onOff);” command.
Behavior:
  • “#” or “###” – The device and terminal exchange heartbeat byte “#”.
  • Under normal conditions, the device sends one “#” byte to the terminal every 1 second.
  • If the device does not receive a “#” byte within a certain period (3 seconds) and no CT command is received, it enters a heartbeat loss state. Subsequently, it sends the “###” string every 1 second to notify the terminal of heartbeat loss, until the device receives a “#” byte again, at which point it exits the heartbeat lost state.
V2R02C01
Turntable feedback messages to upper-level controller
CR+OK; Turntable returns feedback information to the upper-level controller
CR+OK; indicates the turntable correctly received the command.
V2R02C01
CR+ERR=param;
param is the error code: refer to error code definitions for details.
CR+ERR=param; param is the error code, see error code definitions (Turntable->Controller).
V2R02C01
Error code definitions (Turntable -> Controller)
CR+ERR=31;
CR+ERR=40;
CR+ERR=41;
CR+ERR=42;
CR+ERR=43;
CR+ERR=45;
CR+ERR=46;
CR+ERR=48;
CR+ERR=51;
CR+ERR=52;
CR+ERR=61;
CR+ERR=62;
CR+ERR=63;
CR+ERR=64;
CR+ERR=70;
CR+ERR=80;
Error Code Definitions:
  • 31: Serial port timeout error
  • 40: Unsupported function (e.g. shutter/power LED/RGB LED not available on this model)
  • 41: CT command too short (<5 chars, minimum is “CT();”)
  • 42: Invalid CT command header (must be “CT”)
  • 43: Invalid CT command connector (must be “+”)
  • 45: Invalid parameter start symbol (must be “(“)
  • 46: Invalid parameter end symbol (must be “)”)
  • 48: Invalid command terminator (must be “;”)
  • 51: Command name too long
  • 52: Invalid command name
  • 61: Empty parameter
  • 62: Parameter too long
  • 63: Parameter count exceeds limit
  • 64: argument count mismatch
  • 70-79: Non-numeric parameter (71=1st param, 72=2nd param…79=9th param)
  • 80-89: Numeric parameter out of range (81=1st param, 82=2nd param…89=9th param)
V2R02C01
Total Commands
56
Categories
11
Latest Version
V2R05C01

ComXim Electric Turntable Command List | Firmware Version: V2R05C01-EN