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 [2017/09/26 23:49] skirillovplc:motion_commands_from_plc [2018/04/26 17:03] skirillov
Line 5: Line 5:
  
 Procedure **g0moveA** is used to send motion command from PLC to motion controller. Procedure **g0moveA** is used to send motion command from PLC to motion controller.
-Procedure has 3 parameters - <code c>g0moveA(flags, axes_mask, distance)</code>+Procedure has 3 parameters - <code c>g0moveA(flags, axes_mask, distance);</code>
   * **flags**   * **flags**
     * bit 0 - absolute programming (0 - incremental, 1- absolute)     * bit 0 - absolute programming (0 - incremental, 1- absolute)
Line 20: Line 20:
  
 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)
-g0moveA(1,14,0);// Move axis Z to Position =0 (absolute)+g0moveA(1,4,0);// Move axis Z to Position =0 (absolute)
 </code> </code>
  
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