plc:plc_height_map
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:plc_height_map [2019/02/18 17:15] – skirillov | plc:plc_height_map [2023/12/07 09:52] – ivan | ||
---|---|---|---|
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 |
* Header line in the log file | * Header line in the log file | ||
Line 22: | Line 22: | ||
| GVAR_POSITION_LOG_DATA | 5730 | If Logging is stopped, writing to this register does not have an effect. \\ If the Logging is started, writing any value to this register \\ will add current position \\ to the Log data array. \\ Beside of storing into the Log Array, \\ The Log position is stored into Global Variables 5731-5736 as well \\ #5731 - X, #5732 - Y, #5733 - Z \\ #5734 - A, #5735 - B, #5736 - C | | | GVAR_POSITION_LOG_DATA | 5730 | If Logging is stopped, writing to this register does not have an effect. \\ If the Logging is started, writing any value to this register \\ will add current position \\ to the Log data array. \\ Beside of storing into the Log Array, \\ The Log position is stored into Global Variables 5731-5736 as well \\ #5731 - X, #5732 - Y, #5733 - Z \\ #5734 - A, #5735 - B, #5736 - C | | ||
| GVAR_POSITION_LOG_CMD | 5740 | Begin/Eng Height Map Log \\ Writing " | | GVAR_POSITION_LOG_CMD | 5740 | Begin/Eng Height Map Log \\ Writing " | ||
+ | |||
+ | Other options for the global variable 5740: | ||
+ | * 0 = saveZMapX, | ||
+ | * 100 = loadZMap, | ||
+ | * ((ival==1)||(ival==101)) = clearZMap | ||
+ | * (ival==102) = saveZMap | ||
+ | * (ival==200) = doPlateRotation() | ||
+ | * (ival==201) = doPlateRotation3(0) | ||
+ | * (ival==202) = doPlateRotation3(1) | ||
+ | * (ival==333) = doPlateRotation3_Test | ||
+ | * (ival==999) = clearHCCalibration | ||
+ | * (ival==998) = saveHCCalibration | ||
Line 41: | Line 53: | ||
* Code line to stop Height Map logging and save collected data to a file - < | * Code line to stop Height Map logging and save collected data to a file - < | ||
- | 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 63: | ||
</ | </ | ||
- | This is just example of storing | + | This is just an example of storing |
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 84: | ||
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 94: | ||
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 "/ | ||
+ | < | ||
+ | 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</ | ||
- | A time stamp will be added to the log filename. For example, if File name given is "/ | ||
<code C> | <code C> | ||
; height-map.nc | ; height-map.nc |
plc/plc_height_map.txt · Last modified: 2023/12/07 09:55 by ivan