User Tools

Site Tools


plc:plc_height_map

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:plc_height_map [2019/02/18 17:15] skirillovplc:plc_height_map [2019/02/21 10:41] skirillov
Line 12: Line 12:
   * Log file name,    * Log file name, 
   * Axes list to record in the log   * Axes list to record in the log
-  * Log line format+  * Log line format - C-style format definition to print selected axes, for example, print positions as G-code linear interpolation line <code>G90 G1 X%8.2f Y%8.2f Z%8.3f</code>
   * Header line in the log file   * Header line in the log file
  
Line 41: Line 41:
   * Code line to stop Height Map logging and save collected data to a file - <code>M80 P0</code>   * Code line to stop Height Map logging and save collected data to a file - <code>M80 P0</code>
  
-Another example - code to add current position to the log file - code M85+Another example - code to add the current position to the log file - code M85
  
 <code C M85.plc> <code C M85.plc>
Line 51: Line 51:
 </code> </code>
  
-This is just example of storing postion to the log. +This is just an example of storing position to the log. 
  
 To get a real example of Height sensing and Logging we have to  To get a real example of Height sensing and Logging we have to 
Line 72: Line 72:
 G91 G0 Z-30 F50 (Slow probe screen surface) G91 G0 Z-30 F50 (Slow probe screen surface)
 G04 P0.1 (Pause) G04 P0.1 (Pause)
-M85 (Save the coordinates in log)+M85 (Save the coordinates in the log)
 G90 G90
  
Line 82: Line 82:
 G-code program example for getting height map log is below G-code program example for getting height map log is below
  
 +
 +A time stamp will be added to the log filename. For example, if a file name is given as "/home/sk/height.map", then actual height map files will be stored under names
 +<code>
 +height-map-2018-09-09-17-14-36
 +height-map-2018-09-09-19-29-43
 +heights.map-2019-02-18-16-10-19
 +heights.map-2019-02-18-16-48-16</code>
  
  
-A time stamp will be added to the log filename. For example, if File name given is "/home/sk/height.map", then actual height map files will be stored under names 
 <code C> <code C>
 ; height-map.nc ; height-map.nc
plc/plc_height_map.txt · Last modified: 2023/12/07 09:55 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki