GCODES FOR X CONVEYOR¶
Detect X Conveyor COM Port¶
If you wanna know that the COM port which connected was
X Conveyor or not, you can send command
IsXConveyor. If the COM port is connected to conveyor, it will response
IsXConveyor >>> YesXConveyor
M310 - Set Motion Mode¶
Set the motion mode of the conveyor belt.
[value] = 0: Auto Mode (Conveyor will run continously and its speed is adjusted by the potentiometer).
[value] = 1: Serial Mode (Conveyor will be controlled by the signal send to the serial port).
M310 1 ;change control mode to Serial Mode
M311 - Set Speed In Serial Mode¶
Set the speed of the conveyor belt when it is in Serial Mode. This speed will be kept exactly when running. With a positive value it will move in one direction and with a negative value it will move in the opposite direction.
[value]: Conveyor speed in mm/s.
M311 200 ;set speed is 200 mm/s. M311 -200 ;set speed is 200 mm/s but in opposite dir.
M312 - Set Position¶
Conveyor will move to a specified position relative to the current position.
[value]: Position in mm.
M312 123 ;move to position 123
M313 - Set Speed In Position Move¶
Set the speed of the conveyor belt when it is running to desired position of M312.
[value]: Speed in mm/s.
M313 300 ;move to position 123