User Tools

Site Tools


plc:motion_commands_from_plc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
plc:motion_commands_from_plc [2018/04/26 17:03] skirillovplc:motion_commands_from_plc [2020/12/15 08:52] 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 |
 +| bit 6 | 0x40 |
  
 Examples:<code c>g0moveA(0,1,1000);// Move axis X to 10mm from current position (incremental) Examples:<code c>g0moveA(0,1,1000);// Move axis X to 10mm from current position (incremental)
Line 23: Line 34:
 </code> </code>
  
-Easy to see that only 1 distance value programmed in **g0moveA** procedure. **Delayed start** is used to program simultaneous 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.+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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki