User Tools

Site Tools


plc:plc_thc_api

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
Last revisionBoth sides next revision
plc:plc_thc_api [2017/11/10 00:54] skirillovplc:plc_thc_api [2017/11/10 00:59] skirillov
Line 14: Line 14:
  
 ^ Variable Name ^ Value ^ Comment ^ ^ Variable Name ^ Value ^ Comment ^
 +^ THC #1 Registers ^^^
 | GVAR_THC0_CONTROL | 7570 | THC #0 Control register.\\ Writing 0 to this register will turn THC off.\\ Writing 1 - Immediate (No delay) start THC\\ with pre-defined  Reference Value\\ Writing 2 - Start THC with Delay\\ (THC on delay parameter in THC settings) and pre-defined Reference Value\\ Writing 3 - Update Reference Value (Measure ADC channel)\\ and Immediate Start THC with new Reference\\ Writing 4 - After Delay update Reference Value\\ (Measure ADC channel) and Start THC with new Reference | | GVAR_THC0_CONTROL | 7570 | THC #0 Control register.\\ Writing 0 to this register will turn THC off.\\ Writing 1 - Immediate (No delay) start THC\\ with pre-defined  Reference Value\\ Writing 2 - Start THC with Delay\\ (THC on delay parameter in THC settings) and pre-defined Reference Value\\ Writing 3 - Update Reference Value (Measure ADC channel)\\ and Immediate Start THC with new Reference\\ Writing 4 - After Delay update Reference Value\\ (Measure ADC channel) and Start THC with new Reference |
 | GVAR_THC0_INPUT | 7571 | Writing to this register will change ADC channel\\ used for THC control.\\ ADC numeration starts from 0x10\\ 0x10 - ADC #0\\ 0x11 - ADC #1\\ 0x12 - ADC #2\\ 0x13 - ADC #3\\ 0x14 - ADC #4\\ 0x15 - ADC #5\\ 0x16 - ADC #6\\ 0x17 - ADC #7\\ | | GVAR_THC0_INPUT | 7571 | Writing to this register will change ADC channel\\ used for THC control.\\ ADC numeration starts from 0x10\\ 0x10 - ADC #0\\ 0x11 - ADC #1\\ 0x12 - ADC #2\\ 0x13 - ADC #3\\ 0x14 - ADC #4\\ 0x15 - ADC #5\\ 0x16 - ADC #6\\ 0x17 - ADC #7\\ |
Line 37: Line 38:
 | GVAR_THC3_OFFSETZ | 7588 | See THC #0 above | | GVAR_THC3_OFFSETZ | 7588 | See THC #0 above |
 | GVAR_THC3_ENABLED | 7589 | See THC #0 above | | GVAR_THC3_ENABLED | 7589 | See THC #0 above |
 +
 +
 +Examples.
 +Switch On THC#0 and THC#1 in **M03** Oxyfuel Gas Cutting ON procedure (2x gas cutting heads configuration). Pre-defined Reference Value is used, THC will be started after delay, defined in Cfg->Technology->THC configuration dialog, **THC delay, s** item.
 +<code>
 +if (thc_enabled!=0)
 + {
 +   gvarset(7570,1); //THC #0 ON
 +   gvarset(7575,1); //THC #1 ON
 + };
 +</code>
 +
 +
 +Switch Off THC#0 and THC#1 in **M05** Oxyfuel Gas Cutting OFF procedure (2x gas cutting heads configuration)
 +<code>
 +   gvarset(7570,0); //THC #0 ON
 +   gvarset(7575,0); //THC #1 ON
 +</code>
 +
 +
  
plc/plc_thc_api.txt · Last modified: 2017/11/10 11:40 by skirillov

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki