SCALETHCAD(9) HAL Component SCALETHCAD(9) NAME scalethcad - LinuxCNC HAL component that scales input from Plasma Arc voltage divider SYNOPSIS loadrt scalethcad [count=N|names=name1[,name2...]] DESCRIPTION Mesa THCAD Card component to scale input and outputs from the Mesa THCAD10 and THCAD300 cards Designed to simplify scaling of torch volt‐ age and THCAD frequencies sent to the encoder input. Scaling of the Plasma arc voltage by a voltage divider is supported. Output pins are provided for: Actual voltage as read from the THCAD card (0-300V or 0-10V depending on the THCAD version used) Calculated Plasma Torch Voltage (for display in the GUI) Additionally, the component supports an input pin for the desired tar‐ get voltage which is converted to a target velocity that can be directly compared with the spindle velocity on the hm2_7i76e.0.encoder.oo.velocity pin for torch height control EXAMPLE: THCAD10 card using a 1/32 frequency setting and a voltage divider internal to the plasma cutter with range extended to 20 volts with an external resistor as per the manual. The actual voltage divider is 16:1 but entered as 32:1 as the THCAD range has been doubled. GUI is Gmocappy plasma loadrt scalethcad names=thcad10 addf thcad10 servo-thread setp thcad10.thcad-0-volt-freq 122900 setp thcad10.thcad-max-volt-freq 925700 setp thcad10.thcad-divide 32 setp thcad10.thcad-fullscale 10 setp thcad10.volt-divider 32 net encoder-vel thcad10.velocity-in <= hm2_7i76e.0.encoder.00.velocity net target-voltage thcad10.target-volts <= plasma.Target-Voltage net curvolt thcad10.torch-volts => plasma.hal-lbl-cur-volt FUNCTIONS scalethcad.N (requires a floating-point thread) PINS scalethcad.N.thcad-0-volt-freq float in 0 volt calibration data for THCAD card in Hz scalethcad.N.thcad-max-volt-freq float in Full scale calibration data for THCAD Card in Hz scalethcad.N.thcad-divide float in (default: 32) THCAD Divider set by links on THCAD board (1,32,64 or 128 scalethcad.N.thcad-fullscale float in (default: 10) THCAD Fullscale (10 or 300) scalethcad.N.velocity-in float in The velocity returned from the THCAD and read by the Mesa encoder input scalethcad.N.volt-divider float in (default: 1) The divide ratio (default 1:1) scalethcad.N.target-volts float in (default: 95) The target volts (default 95.0 volts) set in GUI scalethcad.N.thcad-volts float out Measured thcad voltage scalethcad.N.torch-volts float out Calculated plasma torch voltage scalethcad.N.target-velocity float out Target Velocity scalethcad.N.debug-vel-scale float out DEBUG: velocity scale factor per volt scalethcad.N.debug-scale-offset float out DEBUG: velocity offset at 0 volts AUTHOR Rod Webster LICENSE GPL LinuxCNC Documentation 2017-04-02 SCALETHCAD(9)