...

Lan Cable

LAN Selection

How Do You Choose the Best Network Cable Production Lines?

Struggling to select the right LAN cable machines? Choosing wrong hurts quality and speed, impacting your market position and ability to meet data demands. 1 Select network cable equipment2 by defining the cable types (Cat5e, Cat6, Cat7), required speed, and precision. Key machines include wire drawing, annealing, extruding, twisting, jacketing, and testing equipment. Compare based […]

How Do You Choose the Best Network Cable Production Lines? Read More »

What Are Triple Twisting Machines in Cable Manufacturing?

What Are Triple Twisting Machines in Cable Manufacturing?

Introduction Recently, I have noticed an increase in inquiries from clients regarding network cable production lines. However, many of them lack a clear understanding of the manufacturing processes for CAT6 and CAT7 cables. For example, while triple twisting machines are well-suited for producing CAT6 UTP/FTP cables, they often fall short when it comes to achieving

What Are Triple Twisting Machines in Cable Manufacturing? Read More »

Cat 7 Cable

The Ultimate Guide to Cat 7 Cable

In the rapidly evolving digital landscape, where data is the lifeline of every operation, the significance of a robust network infrastructure cannot be overstated. At the core of this infrastructure lies a critical component often overlooked yet vital for seamless connectivity and high-speed data transmission: the Cat7 Ethernet cable. This guide delves into the world

The Ultimate Guide to Cat 7 Cable Read More »

how to produce the cat6 cable by machine hongkai

How To Produce The Cat6 Cable By Machine | HONGKAI

Understanding the Specifications and Internal Structure of Cat6 Cables Overview of Cat6 Cables: Cat6, which stands for Category 6, is a standardized Ethernet and network cable used for high-speed gigabit networks. These cables are an improvement over their predecessor, the Cat5e cables. What Makes Them Special? Their Importance in Data Transmission: In today’s age of data-heavy

How To Produce The Cat6 Cable By Machine | HONGKAI Read More »

/** * TCO Calculator for Elementor * * This script provides the calculator functionality for the Network Cable Production Equipment * TCO Calculator in Elementor. It handles input validation, calculations, and result display. */ // 等待DOM完全加载 document.addEventListener('DOMContentLoaded', function() { // 初始化选项卡功能 initTabs(); // 初始化计算器功能 initCalculator(); // 初始化设备比较功能 initComparison(); }); /** * 初始化选项卡功能 */ function initTabs() { const tabButtons = document.querySelectorAll('.ncpe-tab-button'); const tabContents = document.querySelectorAll('.ncpe-tab-content'); tabButtons.forEach(button => { button.addEventListener('click', function() { // 移除所有活动状态 tabButtons.forEach(btn => btn.classList.remove('active')); tabContents.forEach(content => content.classList.remove('active')); // 添加当前选项卡的活动状态 this.classList.add('active'); const tabId = this.getAttribute('onclick').match(/'([^']+)'/)[1]; document.getElementById(tabId).classList.add('active'); }); }); } /** * 初始化计算器功能 */ function initCalculator() { // 获取计算按钮 const calculateButton = document.querySelector('.ncpe-button'); if (calculateButton) { calculateButton.addEventListener('click', calculateTCO); } // 获取重置按钮 const resetButton = document.querySelector('.ncpe-button.secondary'); if (resetButton) { resetButton.addEventListener('click', resetForm); } } /** * 计算TCO */ function calculateTCO() { // 获取输入值 const initialCost = parseFloat(document.getElementById('initial-cost').value) || 0; const installationCost = parseFloat(document.getElementById('installation-cost').value) || 0; const energyConsumption = parseFloat(document.getElementById('energy-consumption').value) || 0; const operators = parseFloat(document.getElementById('operators').value) || 0; const materialUtilization = parseFloat(document.getElementById('material-utilization').value) || 0; const annualMaintenance = parseFloat(document.getElementById('annual-maintenance').value) || 0; const expectedLifetime = parseFloat(document.getElementById('expected-lifetime').value) || 0; const equipmentName = document.getElementById('equipment-name').value || 'Equipment'; // 验证输入 if (initialCost <= 0 || expectedLifetime <= 0) { alert('请输入有效的初始成本和预期寿命'); return; } // 计算结果 const totalInitialInvestment = initialCost + installationCost; // 计算年度运营成本 const energyCostPerYear = energyConsumption * 365 * 0.12; // 假设每千瓦时0.12美元 const laborCostPerYear = operators * 50000; // 假设每位操作员年薪50,000美元 const materialWasteCost = initialCost * 0.1 * (100 - materialUtilization) / 100; // 基于材料利用率的浪费成本 const annualOperatingCost = energyCostPerYear + laborCostPerYear + materialWasteCost; // 计算总维护成本 const totalMaintenanceCost = annualMaintenance * expectedLifetime; // 计算TCO const fiveYearTCO = totalInitialInvestment + (Math.min(5, expectedLifetime) * annualOperatingCost) + (Math.min(5, expectedLifetime) * annualMaintenance); const tenYearTCO = totalInitialInvestment + (Math.min(10, expectedLifetime) * annualOperatingCost) + (Math.min(10, expectedLifetime) * annualMaintenance); const annualTCO = totalInitialInvestment / expectedLifetime + annualOperatingCost + annualMaintenance; // 更新结果 document.getElementById('result-name').textContent = equipmentName + ' TCO Results'; document.getElementById('result-initial').textContent = totalInitialInvestment.toLocaleString(); document.getElementById('result-operating').textContent = annualOperatingCost.toLocaleString(); document.getElementById('result-maintenance').textContent = totalMaintenanceCost.toLocaleString(); document.getElementById('result-tco-5').textContent = fiveYearTCO.toLocaleString(); document.getElementById('result-tco-10').textContent = tenYearTCO.toLocaleString(); document.getElementById('result-annual-tco').textContent = annualTCO.toLocaleString(); // 生成图表 generateTCOChart(totalInitialInvestment, annualOperatingCost, annualMaintenance, expectedLifetime); // 切换到结果选项卡 showTab('results'); } /** * 生成TCO图表 */ function generateTCOChart(initialInvestment, annualOperating, annualMaintenance, lifetime) { const chartContainer = document.getElementById('tco-chart'); if (!chartContainer) return; // 清空图表容器 chartContainer.innerHTML = ''; // 创建SVG元素 const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); svg.setAttribute('width', '100%'); svg.setAttribute('height', '300'); svg.setAttribute('viewBox', '0 0 600 300'); // 添加背景 const background = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); background.setAttribute('x', '50'); background.setAttribute('y', '50'); background.setAttribute('width', '500'); background.setAttribute('height', '200'); background.setAttribute('fill', '#f0f7ff'); background.setAttribute('stroke', '#ddd'); svg.appendChild(background); // 添加坐标轴 const xAxis = document.createElementNS('http://www.w3.org/2000/svg', 'line'); xAxis.setAttribute('x1', '50'); xAxis.setAttribute('y1', '250'); xAxis.setAttribute('x2', '550'); xAxis.setAttribute('y2', '250'); xAxis.setAttribute('stroke', '#333'); xAxis.setAttribute('stroke-width', '2'); svg.appendChild(xAxis); const yAxis = document.createElementNS('http://www.w3.org/2000/svg', 'line'); yAxis.setAttribute('x1', '50'); yAxis.setAttribute('y1', '50'); yAxis.setAttribute('x2', '50'); yAxis.setAttribute('y2', '250'); yAxis.setAttribute('stroke', '#333'); yAxis.setAttribute('stroke-width', '2'); svg.appendChild(yAxis); // 添加X轴标签 for (let i = 0; i <= 10; i++) { const x = 50 + i * 50; const label = document.createElementNS('http://www.w3.org/2000/svg', 'text'); label.setAttribute('x', x); label.setAttribute('y', '270'); label.setAttribute('text-anchor', 'middle'); label.setAttribute('font-family', 'Roboto, sans-serif'); label.setAttribute('font-size', '12'); label.textContent = i; svg.appendChild(label); } // 添加X轴标题 const xTitle = document.createElementNS('http://www.w3.org/2000/svg', 'text'); xTitle.setAttribute('x', '300'); xTitle.setAttribute('y', '290'); xTitle.setAttribute('text-anchor', 'middle'); xTitle.setAttribute('font-family', 'Roboto, sans-serif'); xTitle.setAttribute('font-size', '14'); xTitle.textContent = 'Years'; svg.appendChild(xTitle); // 计算Y轴最大值 const maxCost = Math.max( initialInvestment, initialInvestment + 10 * annualOperating + 10 * annualMaintenance ); // 添加Y轴标签 for (let i = 0; i <= 5; i++) { const y = 250 - i * 40; const value = (maxCost / 5) * i; const label = document.createElementNS('http://www.w3.org/2000/svg', 'text'); label.setAttribute('x', '40'); label.setAttribute('y', y); label.setAttribute('text-anchor', 'end'); label.setAttribute('font-family', 'Roboto, sans-serif'); label.setAttribute('font-size', '12'); label.textContent = '$' + Math.round(value).toLocaleString(); svg.appendChild(label); } // 生成累积成本数据点 const points = []; for (let year = 0; year <= 10; year++) { const x = 50 + year * 50; const cost = initialInvestment + year * annualOperating + year * annualMaintenance; const y = 250 - (cost / maxCost) * 200; points.push(`${x},${y}`); } // 添加累积成本线 const costLine = document.createElementNS('http://www.w3.org/2000/svg', 'polyline'); costLine.setAttribute('points', points.join(' ')); costLine.setAttribute('fill', 'none'); costLine.setAttribute('stroke', '#0056b3'); costLine.setAttribute('stroke-width', '3'); svg.appendChild(costLine); // 添加数据点 points.forEach(point => { const [x, y] = point.split(','); const circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle'); circle.setAttribute('cx', x); circle.setAttribute('cy', y); circle.setAttribute('r', '4'); circle.setAttribute('fill', '#0056b3'); svg.appendChild(circle); }); // 添加图例 const legend = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); legend.setAttribute('x', '400'); legend.setAttribute('y', '70'); legend.setAttribute('width', '12'); legend.setAttribute('height', '12'); legend.setAttribute('fill', '#0056b3'); svg.appendChild(legend); const legendText = document.createElementNS('http://www.w3.org/2000/svg', 'text'); legendText.setAttribute('x', '420'); legendText.setAttribute('y', '80'); legendText.setAttribute('font-family', 'Roboto, sans-serif'); legendText.setAttribute('font-size', '12'); legendText.textContent = 'Cumulative TCO'; svg.appendChild(legendText); // 将SVG添加到容器 chartContainer.appendChild(svg); } /** * 重置表单 */ function resetForm() { document.getElementById('input-parameters').reset(); } /** * 显示指定选项卡 */ function showTab(tabId) { // 获取所有选项卡按钮和内容 const tabButtons = document.querySelectorAll('.ncpe-tab-button'); const tabContents = document.querySelectorAll('.ncpe-tab-content'); // 移除所有活动状态 tabButtons.forEach(btn => btn.classList.remove('active')); tabContents.forEach(content => content.classList.remove('active')); // 添加当前选项卡的活动状态 document.querySelector(`.ncpe-tab-button[onclick*="${tabId}"]`).classList.add('active'); document.getElementById(tabId).classList.add('active'); } /** * 初始化设备比较功能 */ function initComparison() { // 获取比较按钮 const compareButton = document.querySelector('#equipment-comparison .ncpe-button'); if (compareButton) { compareButton.addEventListener('click', compareEquipment); } } /** * 比较设备 */ function compareEquipment() { // 获取输入值 const name = document.getElementById('compare-name').value; const tco = parseFloat(document.getElementById('compare-tco').value) || 0; const production = parseFloat(document.getElementById('compare-production').value) || 0; // 验证输入 if (!name || tco <= 0 || production <= 0) { alert('请输入有效的设备名称、TCO和产能'); return; } // 计算每单位产能的TCO const tcoPerUnit = tco / production; // 获取比较结果容器 const comparisonResult = document.getElementById('comparison-result'); // 清空默认文本 if (comparisonResult.textContent.includes('No equipment comparison data available yet')) { comparisonResult.innerHTML = ''; } // 创建比较结果项 const resultItem = document.createElement('div'); resultItem.className = 'ncpe-result-item'; resultItem.innerHTML = `

${name}

10-Year TCO: $${tco.toLocaleString()}
Production Capacity: ${production.toLocaleString()} km/year
TCO per km: $${tcoPerUnit.toFixed(2)}/km

`; // 添加到比较结果容器 comparisonResult.appendChild(resultItem); // 清空输入字段 document.getElementById('compare-name').value = ''; document.getElementById('compare-tco').value = ''; document.getElementById('compare-production').value = ''; } // 为Elementor编辑器添加自定义功能 if (window.elementorFrontend && window.elementorFrontend.hooks) { window.elementorFrontend.hooks.addAction('frontend/element_ready/widget', function($scope) { // 检查是否是计算器小部件 if ($scope.find('.ncpe-calculator').length > 0) { initTabs(); initCalculator(); initComparison(); } }); }

Ask for quote

we will reply you within 24 hours!!!