function LV8213(){Motor.apply(this,arguments);this.switchS1=$("#"+this.moduleId+" .switchGroup");this.initTranslator("ResourceStrings8213")}var ResourceStrings8213EN={moduleName:"Permanent Magnet DC Motor",tooltipSwitchS1:"Switch (120 V - 8 A)",NETWORK_120V:{tooltipTerminal1:"Terminal (120 V - 8 A)",tooltipTerminal2:"Terminal (120 V - 8 A)",tooltipTerminal3:"Armature (48 V - 6.7 A)",tooltipTerminal4:"Armature (48 V - 6.7 A)"},NETWORK_220V:{tooltipTerminal1:"Terminal (120 V - 8 A)",tooltipTerminal2:"Terminal (120 V - 8 A)",tooltipTerminal3:"Armature (48 V - 6.7 A)",tooltipTerminal4:"Armature (48 V - 6.7 A)"},NETWORK_240V:{tooltipTerminal1:"Terminal (120 V - 8 A)",tooltipTerminal2:"Terminal (120 V - 8 A)",tooltipTerminal3:"Armature (48 V - 6.7 A)",tooltipTerminal4:"Armature (48 V - 6.7 A)"}},ResourceStrings8213ES={moduleName:"Motor CC de Imán Permanente",tooltipSwitchS1:"Interruptor (120 V - 8 A)",NETWORK_120V:{tooltipTerminal1:"Terminal (120 V - 8 A)",tooltipTerminal2:"Terminal (120 V - 8 A)",tooltipTerminal3:"Armadura (48 V - 6.7 A)",tooltipTerminal4:"Armadura (48 V - 6.7 A)"},NETWORK_220V:{tooltipTerminal1:"Terminal (120 V - 8 A)",tooltipTerminal2:"Terminal (120 V - 8 A)",tooltipTerminal3:"Armadura (48 V - 6.7 A)",tooltipTerminal4:"Armadura (48 V - 6.7 A)"},NETWORK_240V:{tooltipTerminal1:"Terminal (120 V - 8 A)",tooltipTerminal2:"Terminal (120 V - 8 A)",tooltipTerminal3:"Armadura (48 V - 6.7 A)",tooltipTerminal4:"Armadura (48 V - 6.7 A)"}},ResourceStrings8213FR={moduleName:"Moteur cc à aimant permanent",tooltipSwitchS1:"Interrupteur (120 V - 8 A)",NETWORK_120V:{tooltipTerminal1:"Borne (120 V - 8 A)",tooltipTerminal2:"Borne (120 V - 8 A)",tooltipTerminal3:"Induit (48 V - 6.7 A)",tooltipTerminal4:"Induit (48 V - 6.7 A)"},NETWORK_220V:{tooltipTerminal1:"Borne (120 V - 8 A)",tooltipTerminal2:"Borne (120 V - 8 A)",tooltipTerminal3:"Induit (48 V - 6.7 A)",tooltipTerminal4:"Induit (48 V - 6.7 A)"},NETWORK_240V:{tooltipTerminal1:"Borne (120 V - 8 A)",tooltipTerminal2:"Borne (120 V - 8 A)",tooltipTerminal3:"Induit (48 V - 6.7 A)",tooltipTerminal4:"Induit (48 V - 6.7 A)"}};LV8213.SWITCHS1=0;LV8213.prototype=new Motor;LV8213.prototype.constructor=LV8213;LV8213.prototype.type=MODULE_TYPE_8213;LV8213.prototype.getSettings=function(){this.settings[LV8213.SWITCHS1]=this.getSwitchS1Value()};LV8213.prototype.setSettings=function(){Motor.prototype.setSettings.call(this);this.settings[LV8213.SWITCHS1]!==this.getSwitchS1Value()&&this.setSwitchS1Value(this.settings[LV8213.SWITCHS1])};LV8213.prototype.updateFlag=function(){this.getSwitchS1Value()!==this.settings[LV8213.SWITCHS1]&&(flagModif|=CALCUL_ID_MODIFIED);this.initFlagModif()};LV8213.prototype.getSwitchS1Value=function(){var n=this.switchS1[0].getAttribute("switchon");return n=="true"?1:0};LV8213.prototype.setSwitchS1Value=function(n){setSwitchPosition(this.switchS1,n);this.switchS1.attr("switchon",n===1?"true":"false")};LV8213.prototype.setSwitchOn=function(){this.setSwitchS1Value(1)};LV8213.prototype.setSwitchOff=function(){this.setSwitchS1Value(0)};LV8213.prototype.addEvents=function(){Motor.prototype.addEvents.call(this);onButtonMouseDown(this.switchS1);onSwitchClick(this.switchS1,this.setSwitchOn(),this.setSwitchOff())};LV8213.prototype.saveSettings=function(){return{switchS1:this.getSwitchS1Value()}};LV8213.prototype.loadSettings=function(n){this.setSwitchS1Value(n.switchS1)};LV8213.prototype.createLeftBeltForLargePulley=function(){var t=[],n=TimingBelt.CommonAttributesSVG;return n.d="m 176.84028,108.16615 a 21.035059,21.035059 0 1 1 2.70202,41.88374",t[0]=createSVGElement("path",n),n.d="M 177.62938,107.97997 -21.686144,144.70786",t[1]=createSVGElement("path",n),n.d="M 180.63439,150.05008 -21.686144,162.93789",t[2]=createSVGElement("path",n),t};LV8213.prototype.canHaveBeltOnRightSide=function(){return!1};