plc:motion_commands_from_plc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plc:motion_commands_from_plc [2021/11/02 15:25] – ivan | plc:motion_commands_from_plc [2021/11/02 17:03] – skirillov | ||
---|---|---|---|
Line 58: | Line 58: | ||
Example <code c> | Example <code c> | ||
g0moveA(0, | g0moveA(0, | ||
- | timer=10; do{timer--; | + | timer=200; do{timer--; |
+ | //wait 10ms , motion should start, motion state will turn to **0** | ||
do{ code=gvarget(6060); | do{ code=gvarget(6060); | ||
</ | </ | ||
Line 83: | Line 84: | ||
gvarset(7080, | gvarset(7080, | ||
g0moveA(absolute, | g0moveA(absolute, | ||
- | timer=10; do{timer--; | + | timer=200; do{timer--; |
do { code=gvarget(6060); | do { code=gvarget(6060); | ||
}; | }; | ||
Line 115: | Line 116: | ||
==== Option 2 ==== | ==== Option 2 ==== | ||
+ | |||
+ | //NOTE: At the time of writing this manual, Option 2 for motion control is available in the Testing branch of myCNC firmware (version 15,050 and above). For firmware update instructions, | ||
If bit #13 is set for the axis mask, then Option 2 of the PLC motion command is used (instead of Option 1, described above). In this case the control board itself will handle all calculations necessary for the positioning motion without the support of myCNC software. As a result, the controller does not need to communicate with the Host PC and the movement will be started immediately (unlike Option 1, where extra communication with the Host PC leads to an additional delay of about 100-150ms). | If bit #13 is set for the axis mask, then Option 2 of the PLC motion command is used (instead of Option 1, described above). In this case the control board itself will handle all calculations necessary for the positioning motion without the support of myCNC software. As a result, the controller does not need to communicate with the Host PC and the movement will be started immediately (unlike Option 1, where extra communication with the Host PC leads to an additional delay of about 100-150ms). |
plc/motion_commands_from_plc.txt · Last modified: 2024/05/13 15:49 by ivan