2020年5月25日月曜日

NTC thermistor Setting for Duet

I changed settings for HT-NTC100K thermistor.

I get thermistor from here.





I found this PDF Datasheet.

I set the value to configurator
and I get the result as above.

Settings for Duet firmware Ver3.0 is bellow.
M308 S1 P"e0_temp" Y"thermistor" T100000 B5007 C1.687660e-7 ; HT-NTC100K


2020年4月17日金曜日

Use XSL as Model of MVC

This is a sample of xslt which transform xml to sql.
I confirmed its result by using this link
https://www.freeformatter.com/xsl-transformer.html#ad-output

XSL having basic function and selection method of XPath.
It is possible to build Logic of Translation from GUI values to SQL.

Followings are the example.

XML
<Models>
  <model_1>
    <table>TBL_SAMPLE</table>
    <param_1>101</param_1>
    <param_2>102</param_2>
  </model_1>
</Models>

XSL
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    <xsl:output method="text" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
    <xsl:template match="//model_1">
        SELECT *
        FROM <xsl:value-of select="table" />
        WHERE p1 = <xsl:value-of select="param_1" />
        AND   p2 = '<xsl:value-of select="param_2" />'
    </xsl:template>
</xsl:transform>

Result
SELECT * FROM TBL_SAMPLE WHERE p1 = 101 AND p2 = '102'



2020年4月6日月曜日

Duet Maestro Firmware 2.0 to 3.0 settings changes and Precision Piezo Orion settings

;EndStops
2.0
M574 X2 Y2 Z2 S1                            ; set active high endstops
3.0
; Endstops
;M574 X2 Y2 Z2 S1                            ; set active high endstops
M574 X2 S1 P"xstop"   ; X min active high endstop switch
M574 Y2 S1 P"ystop"   ; Y min active high endstop switch
M574 Z2 S1 P"zstop"   ; Z min active high endstop switch

; Z-Probe
2.0
M558 P5 I1 H5 R0.4 F300 X0 Y0 Z0 T10000              ; set Z probe type to switch and the dive height + speeds

3.0
M558 P5 I1 H5 R0.4 F300 X0 Y0 Z0 T10000 C"^zprobe.in" ; Piezo connected to Z probe IN pin, free up MOD pin
G31 X0 Y0 Z-0.1 P100                                  ; set Z probe trigger value, offset and trigger height
M557 R140 S20                                         ; define mesh grid

; Heaters
2.0
; Heaters
M305 P0 T100000 B4138 R2200                 ; set thermistor + ADC parameters for heater 0
M143 H0 S120                                ; set temperature limit for heater 0 to 120C
M305 P1 T100000 B4138 R2200                 ; set thermistor + ADC parameters for heater 1
M143 H1 S280                                ; set temperature limit for heater 1 to 280C

3.0
M308 S0 P"bed_temp" Y"thermistor" T100000 B4607 ; define bed temperature sensor
M308 S1 P"e0_temp" Y"thermistor" T100000 B3950 C7.06e-8 ; define E0 temperature sensor
M950 H0 C"bed_heat" T0 ; heater 0 uses the bed_heat pin, sensor 0
M950 H1 C"e0_heat" T1 ; heater 1 uses the e0_heat pin and sensor 1






2020年2月3日月曜日

VirtualBox not launches VM

Open .vbox file and find following lines.

<Machine uuid="{xxxxxxxxxx-xxxx-xxxx-xxxxxxxx}" name="Windows7" OSType="Windows7_64" stateFile="{xxxxxxxxxx-xxxx-xxxx-xxxxxxxx}.sav" currentSnapshot="{xxxxxxxxxx-xxxx-xxxx-xxxxxxxx}" snapshotFolder="Snapshots" lastStateChange="2020-02-01T11:11:111">

and remove red part.