35 lines
938 B
Lua
35 lines
938 B
Lua
-- 2019/11/05 09:30:00
|
|
-- Comando tastatura lama
|
|
|
|
-- Intestazioni
|
|
require( 'EgtBase')
|
|
_ENV = EgtProtectGlobal()
|
|
EgtEnableDebug( false)
|
|
|
|
-- Tavola di passaggio valori
|
|
local CMD = {}
|
|
CMD.TCPOS=0
|
|
CMD.ISSAW=false
|
|
CMD.DIAM=0
|
|
CMD.THICK=0
|
|
CMD.LENGTH=0
|
|
CMD.INCHES=nil
|
|
CMD.ERR = 0
|
|
_G.CMD = CMD
|
|
|
|
function CMD.CmdString()
|
|
local dCoeff = 1
|
|
if CMD.INCHES then
|
|
dCoeff = 1 / GEO.ONE_INCH
|
|
end
|
|
-- le dimensioni della lama son già in micron
|
|
CMD.CMDSTRING= "E80005=100 <br/>" ..
|
|
"E80006=" .. EgtNumToString(CMD.DIAM*dCoeff,0) .. "<br/>" ..
|
|
"E80007=" .. EgtNumToString(CMD.THICK*dCoeff,0) .. "<br/>" ..
|
|
"E80008=" .. EgtNumToString(CMD.THICK*dCoeff,0) .. "<br/>" ..
|
|
"E80009=" .. EgtNumToString(CMD.LENGTH*dCoeff,0) .. "<br/>" ..
|
|
"L108=0 <br/>" ..
|
|
EgtIf( CMD.ISSAW, "G77 H8625", "G77 H8629") .. "<br/>" ..
|
|
"M02"
|
|
end
|