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 [2017/09/26 23:49] – skirillov | plc:motion_commands_from_plc [2020/12/15 09:11] – ivan | ||
---|---|---|---|
Line 18: | Line 18: | ||
* bit 5 - C axis | * bit 5 - C axis | ||
* **distance** - distance to go - integer value in 0.01 units (mm or inch depends on CNC setup) | * **distance** - distance to go - integer value in 0.01 units (mm or inch depends on CNC setup) | ||
+ | |||
+ | NOTE: Use the bit conversion: | ||
+ | |||
+ | ^ bit ^ converted value ^ | ||
+ | | bit 0 | 0x01 | | ||
+ | | bit 1 | 0x02 | | ||
+ | | bit 2 | 0x04 | | ||
+ | | bit 3 | 0x08 | | ||
+ | | bit 4 | 0x10 | | ||
+ | | bit 5 | 0x20 | | ||
Examples:< | Examples:< | ||
- | g0moveA(1,14,0);// Move axis Z to Position =0 (absolute) | + | g0moveA(1,4,0);// Move axis Z to Position =0 (absolute) |
</ | </ | ||
- | Easy to see that only 1 distance value programmed in **g0moveA** procedure. **Delayed start** is used to program | + | Easy to see that only 1 distance value programmed in **g0moveA** procedure. **Delayed start** is used to program motion in several coordinates. Delayed start bit tells to Motion controller to not start motion but just store distance position for future motion. Distance for several axes can be setup with selayed start bit, then the last procedure with no delayed start will start motion in all programmed positions. |
Example <code c> //need to move to absolute position (100,50,20) | Example <code c> //need to move to absolute position (100,50,20) |
plc/motion_commands_from_plc.txt · Last modified: 2024/02/21 13:58 by ivan