<< Click to Display Table of Contents > Flash Motion Control |
![]() ![]() ![]() |
Command |
Description |
---|---|
Execute motion by G-Code line. |
Table 125: Overview Commands Flash Motion Control
Execute motion by G-Code line |
|
|||
---|---|---|---|---|
Description |
The command GCL executes a motion command for the stepper type 14 motion controller of the USC-Card. The motion command is a G-code line given by <Par1>. For detailed information on the G-Code commands listed below see Motion commands. |
|||
<GCodeLine>
|
Value: <string> |
Function |
||
empty |
Not available. This parameter is obligatory. |
|||
M46 |
Enable the stepper execution. Without this command, no further stepper execution is possible. |
|||
M0 |
Disable the stepper execution and abort all moves. |
|||
G90 |
Switch to absolute mode. |
|||
G91 |
Switch to relative mode. |
|||
F? |
Define the speed of the movement in mm/s. The value for ? is a floating point value. |
|||
G1#? |
Define the movement of axis # with value ? (floating point value). Possible values for # are X, Y, Z, A, B and C. X is always the first axis as defined with 'axis=0' in sc_motion_stepper_settings.txt. Y is the second axis and so on. Combination of several axes is possible e.g. G1X1Y2.5Z10. |
|||
G28#1 |
Start the homing procedure for the axis defined with #. Possible values for # are X, Y, Z, A, B and C. X is always the first axis defined. Combination of several axes is not possible. |
|||
Example |
Define an axis of motion controller type 14 in SAMLight with homing and specify the home switch input bit. Store these settings to your USC-Card (via Settings - System - Optic - Advanced - Store). Then, use the following FCI commands: |
|||
Command |
Return |
Note |
||
GCL M46 |
0: |
Enable stepper execution. |
||
GCL G28X1 |
0: |
Start homing procedure for the first axis. |
||
GCL G91 |
0: |
Define relative movement. |
||
GCL G1X3Y8 |
0: |
Move relative 3mm with the first and 8mm with the second axis. |
||
Notes |
•The command GCL can be used to execute a motion command for the motion type 14. •The stepper settings need to be adjusted and stored (with the SAMLight store button and not with the store button in sc_setup) to the USC-Card prior to execution of a stepper-relevant G-code line. |
|||
Save |
N/A |
|||
Restriction |
None |
|||
Errors |
•2: Too few parameters •9: Internal Error |
Table 126: GCL