user_guide.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>伺服驱动选型工具 - 使用指南</title>
  7. <style>
  8. * {
  9. margin: 0;
  10. padding: 0;
  11. box-sizing: border-box;
  12. }
  13. body {
  14. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  15. line-height: 1.6;
  16. color: #333;
  17. background-color: #f8f9fa;
  18. padding: 20px;
  19. }
  20. .container {
  21. max-width: 1200px;
  22. margin: 0 auto;
  23. background: white;
  24. border-radius: 10px;
  25. box-shadow: 0 0 20px rgba(0,0,0,0.1);
  26. overflow: hidden;
  27. }
  28. .header {
  29. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  30. color: white;
  31. padding: 30px;
  32. text-align: center;
  33. }
  34. .header h1 {
  35. font-size: 2.5rem;
  36. margin-bottom: 10px;
  37. }
  38. .header p {
  39. font-size: 1.2rem;
  40. opacity: 0.9;
  41. }
  42. .content {
  43. padding: 30px;
  44. }
  45. .section {
  46. margin-bottom: 40px;
  47. }
  48. .section h2 {
  49. color: #4a5568;
  50. margin-bottom: 20px;
  51. padding-bottom: 10px;
  52. border-bottom: 2px solid #e2e8f0;
  53. }
  54. .section h3 {
  55. color: #2d3748;
  56. margin: 15px 0 10px 0;
  57. }
  58. .steps {
  59. counter-reset: step-counter;
  60. list-style: none;
  61. }
  62. .steps li {
  63. counter-increment: step-counter;
  64. position: relative;
  65. padding: 15px 0 15px 60px;
  66. margin-bottom: 15px;
  67. background: #f7fafc;
  68. border-left: 4px solid #667eea;
  69. border-radius: 5px;
  70. }
  71. .steps li:before {
  72. content: counter(step-counter);
  73. position: absolute;
  74. left: 15px;
  75. top: 15px;
  76. width: 30px;
  77. height: 30px;
  78. background: #667eea;
  79. color: white;
  80. border-radius: 50%;
  81. display: flex;
  82. align-items: center;
  83. justify-content: center;
  84. font-weight: bold;
  85. }
  86. .transmission-types {
  87. display: grid;
  88. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  89. gap: 20px;
  90. margin-top: 20px;
  91. }
  92. .type-card {
  93. background: #f7fafc;
  94. padding: 20px;
  95. border-radius: 8px;
  96. border: 1px solid #e2e8f0;
  97. }
  98. .type-card h4 {
  99. color: #4a5568;
  100. margin-bottom: 10px;
  101. display: flex;
  102. align-items: center;
  103. }
  104. .type-card h4:before {
  105. content: "⚙️";
  106. margin-right: 10px;
  107. }
  108. .tips {
  109. background: #ebf8ff;
  110. border-left: 4px solid #4299e1;
  111. padding: 20px;
  112. border-radius: 5px;
  113. margin: 20px 0;
  114. }
  115. .tips h3 {
  116. display: flex;
  117. align-items: center;
  118. }
  119. .tips h3:before {
  120. content: "💡";
  121. margin-right: 10px;
  122. }
  123. .warning {
  124. background: #fff5f5;
  125. border-left: 4px solid #e53e3e;
  126. padding: 20px;
  127. border-radius: 5px;
  128. margin: 20px 0;
  129. }
  130. .warning h3 {
  131. display: flex;
  132. align-items: center;
  133. }
  134. .warning h3:before {
  135. content: "⚠️";
  136. margin-right: 10px;
  137. }
  138. .btn-group {
  139. display: flex;
  140. gap: 10px;
  141. margin-top: 20px;
  142. flex-wrap: wrap;
  143. }
  144. .btn {
  145. padding: 10px 20px;
  146. background: #667eea;
  147. color: white;
  148. text-decoration: none;
  149. border-radius: 5px;
  150. font-weight: bold;
  151. transition: background 0.3s;
  152. }
  153. .btn:hover {
  154. background: #5a67d8;
  155. }
  156. .btn-secondary {
  157. background: #718096;
  158. }
  159. .btn-secondary:hover {
  160. background: #4a5568;
  161. }
  162. @media (max-width: 768px) {
  163. .header {
  164. padding: 20px;
  165. }
  166. .header h1 {
  167. font-size: 2rem;
  168. }
  169. .content {
  170. padding: 20px;
  171. }
  172. .transmission-types {
  173. grid-template-columns: 1fr;
  174. }
  175. }
  176. </style>
  177. </head>
  178. <body>
  179. <div class="container">
  180. <div class="header">
  181. <h1>🔧 伺服驱动选型工具使用指南</h1>
  182. <p>专业级伺服电机与驱动器选型计算,支持多种传动结构类型</p>
  183. </div>
  184. <div class="content">
  185. <div class="section">
  186. <h2>🎯 快速开始</h2>
  187. <ol class="steps">
  188. <li><strong>选择传动类型</strong>:从下拉菜单中选择您的应用对应的传动类型(滚珠丝杠、同步带、减速机等)</li>
  189. <li><strong>输入参数</strong>:根据所选传动类型,填写相应的机械参数</li>
  190. <li><strong>设置通用参数</strong>:调整安全系数、允许惯量比、摩擦系数和传动效率</li>
  191. <li><strong>点击计算</strong>:点击"计算选型结果"按钮获取详细的选型建议</li>
  192. <li><strong>查看结果</strong>:分析计算结果,包括转矩、转速、惯量、功率等关键参数</li>
  193. </ol>
  194. <div class="btn-group">
  195. <a href="index.html" class="btn">立即开始使用</a>
  196. <a href="#transmission-types" class="btn btn-secondary">查看传动类型说明</a>
  197. </div>
  198. </div>
  199. <div class="section" id="transmission-types">
  200. <h2>⚙️ 传动类型详解</h2>
  201. <p>本工具支持7种常见的传动结构类型,每种类型都有其特定的应用场景:</p>
  202. <div class="transmission-types">
  203. <div class="type-card">
  204. <h4>滚珠丝杠</h4>
  205. <p><strong>适用场景:</strong>CNC机床、3D打印机、精密定位平台</p>
  206. <p><strong>关键参数:</strong>丝杠直径、导程、行程距离、负载质量</p>
  207. </div>
  208. <div class="type-card">
  209. <h4>同步带</h4>
  210. <p><strong>适用场景:</strong>自动化装配线、高速长行程应用、物料搬运</p>
  211. <p><strong>关键参数:</strong>滑轮直径、负载质量、最大线速度</p>
  212. </div>
  213. <div class="type-card">
  214. <h4>减速机</h4>
  215. <p><strong>适用场景:</strong>机器人关节、高扭矩低速应用、工业机械臂</p>
  216. <p><strong>关键参数:</strong>减速比、负载惯量、负载转矩</p>
  217. </div>
  218. <div class="type-card">
  219. <h4>转盘</h4>
  220. <p><strong>适用场景:</strong>分度台、旋转工作台、转台设备</p>
  221. <p><strong>关键参数:</strong>转盘质量、转盘半径、最大转速</p>
  222. </div>
  223. <div class="type-card">
  224. <h4>收放卷</h4>
  225. <p><strong>适用场景:</strong>薄膜处理、纸张卷绕、张力控制系统</p>
  226. <p><strong>关键参数:</strong>材料密度、宽度、初始/最终直径、张力</p>
  227. </div>
  228. <div class="type-card">
  229. <h4>直接驱动</h4>
  230. <p><strong>适用场景:</strong>高精度直接耦合、精密仪器、光学平台</p>
  231. <p><strong>关键参数:</strong>负载惯量、摩擦转矩、最大转速</p>
  232. </div>
  233. <div class="type-card">
  234. <h4>组合传动</h4>
  235. <p><strong>适用场景:</strong>复杂多级传动系统、特殊机械结构</p>
  236. <p><strong>关键参数:</strong>组合负载质量、主要/次要传动类型</p>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="section">
  241. <h2>🔧 通用参数设置</h2>
  242. <h3>安全系数</h3>
  243. <p>安全系数用于增加选型余量,确保系统在实际运行中有足够的安全裕度。</p>
  244. <p><strong>推荐值:</strong>1.2 - 2.0</p>
  245. <p><strong>默认值:</strong>1.5</p>
  246. <h3>允许惯量比</h3>
  247. <p>惯量比是负载惯量与电机惯量的比值,影响系统的响应性能和稳定性。</p>
  248. <p><strong>典型范围:</strong>5 - 50</p>
  249. <p><strong>默认值:</strong>10</p>
  250. <p><em>注意:如果计算结果显示惯量比超过允许值,系统会显示警告信息</em></p>
  251. <h3>摩擦系数</h3>
  252. <p>表示机械系统中的摩擦阻力,影响所需的驱动转矩。</p>
  253. <p><strong>典型值:</strong>0.01 - 0.1</p>
  254. <p><strong>默认值:</strong>0.01</p>
  255. <h3>传动效率</h3>
  256. <p>考虑机械传动过程中的能量损耗。</p>
  257. <p><strong>典型值:</strong>0.8 - 0.95</p>
  258. <p><strong>默认值:</strong>0.9</p>
  259. </div>
  260. <div class="section">
  261. <h2>📊 结果解读</h2>
  262. <p>计算完成后,工具会显示以下关键参数:</p>
  263. <ul style="margin: 15px 0 15px 30px;">
  264. <li><strong>转速范围 (RPM)</strong>:电机的工作转速范围</li>
  265. <li><strong>连续转矩 (N·m)</strong>:持续工作所需的转矩,已包含安全系数</li>
  266. <li><strong>峰值转矩 (N·m)</strong>:加速阶段的最大转矩需求,已包含安全系数</li>
  267. <li><strong>负载惯量 (kg·m²)</strong>:折算到电机轴的总惯量</li>
  268. <li><strong>惯量比</strong>:负载惯量与电机惯量的比值</li>
  269. <li><strong>额定功率 (W)</strong>:电机所需的额定功率,已包含安全系数</li>
  270. </ul>
  271. <div class="tips">
  272. <h3>结果使用建议</h3>
  273. <p>• 根据连续转矩和峰值转矩选择合适的电机型号</p>
  274. <p>• 确保所选电机的额定转速覆盖计算的转速范围</p>
  275. <p>• 检查惯量比是否在合理范围内(通常 ≤ 10 为佳)</p>
  276. <p>• 验证电机的额定功率满足计算需求</p>
  277. </div>
  278. </div>
  279. <div class="section">
  280. <h2>💾 实用功能</h2>
  281. <h3>保存和加载配置</h3>
  282. <p>您可以保存当前的参数配置,以便后续快速加载使用。</p>
  283. <ul style="margin: 10px 0 10px 30px;">
  284. <li>点击"保存配置"按钮将当前设置保存到浏览器本地存储</li>
  285. <li>点击"加载配置"按钮从本地存储恢复之前的设置</li>
  286. </ul>
  287. <h3>结果导出</h3>
  288. <p>计算结果可以导出为文本文件,便于记录和分享。</p>
  289. <ul style="margin: 10px 0 10px 30px;">
  290. <li>点击"导出结果"按钮下载包含所有计算结果的文本文件</li>
  291. <li>文件名包含日期信息,便于版本管理</li>
  292. </ul>
  293. <h3>图表可视化</h3>
  294. <p>工具提供直观的性能指标图表,帮助您快速理解关键参数的关系。</p>
  295. </div>
  296. <div class="warning">
  297. <h3>安全提示</h3>
  298. <p>• 本工具的计算结果基于简化物理模型,仅供参考</p>
  299. <p>• 实际工程应用中,请结合具体产品规格手册进行最终选型</p>
  300. <p>• 关键应用建议咨询专业工程师或电机供应商</p>
  301. <p>• 考虑环境因素(温度、湿度、振动等)对电机性能的影响</p>
  302. <p>• 验证所选电机的热性能和长期可靠性</p>
  303. </div>
  304. <div class="section">
  305. <h2>🚀 启动方式</h2>
  306. <p>本工具可以在任何现代浏览器中直接运行,但推荐使用本地服务器以获得最佳体验:</p>
  307. <div class="steps">
  308. <li><strong>直接打开:</strong>双击 <code>index.html</code> 文件在浏览器中打开</li>
  309. <li><strong>本地服务器(推荐):</strong>在项目目录中运行启动脚本:
  310. <ul style="margin: 10px 0 0 20px;">
  311. <li><code>./start_optimized.sh</code> - Python 3.7+ 环境(推荐)</li>
  312. <li><code>./start_compatible.sh</code> - Python 3.6 兼容环境</li>
  313. <li><code>./start_ultralight.sh</code> - 超轻量级启动(无资源限制)</li>
  314. </ul>
  315. </li>
  316. </div>
  317. </div>
  318. <div class="section">
  319. <h2>❓ 常见问题解答 (FAQ)</h2>
  320. <h3>Q: 为什么计算结果显示惯量比警告?</h3>
  321. <p><strong>A:</strong> 惯量比超过设定的允许值(默认10)时会显示警告。高惯量比可能导致系统响应变慢或不稳定。建议:
  322. • 选择更大惯量的电机
  323. • 优化机械设计减少负载惯量
  324. • 调整允许惯量比参数(但需谨慎)</p>
  325. <h3>Q: 如何确定安全系数应该设置多少?</h3>
  326. <p><strong>A:</strong> 安全系数取决于应用的可靠性要求:
  327. • 一般工业应用:1.2 - 1.5
  328. • 高可靠性要求:1.5 - 2.0
  329. • 实验性/非关键应用:1.0 - 1.2</p>
  330. <h3>Q: 传动效率如何影响选型结果?</h3>
  331. <p><strong>A:</strong> 传动效率越低,所需的电机转矩越大。例如90%效率意味着需要约11%更大的转矩来补偿损耗。对于多级传动,总效率是各级效率的乘积。</p>
  332. <h3>Q: 组合传动类型应该如何使用?</h3>
  333. <p><strong>A:</strong> 组合传动适用于同时存在多种传动方式的复杂系统。主要传动类型应选择对系统性能影响最大的那个,次要因素通过调整摩擦系数和效率来考虑。</p>
  334. <h3>Q: 计算结果中的连续转矩和峰值转矩有什么区别?</h3>
  335. <p><strong>A:</strong>
  336. • <strong>连续转矩</strong>:电机长时间运行所需的转矩,决定电机的热性能要求
  337. • <strong>峰值转矩</strong>:加速/减速阶段的瞬时最大转矩,决定电机的动态性能
  338. 选型时两个参数都必须满足,通常峰值转矩需求更高。</p>
  339. <h3>Q: 如何验证计算结果的准确性?</h3>
  340. <p><strong>A:</strong> 建议采用以下方法验证:
  341. • 与供应商提供的选型软件对比
  342. • 参考类似成功案例的参数
  343. • 进行小规模原型测试
  344. • 咨询专业伺服系统工程师</p>
  345. </div>
  346. <div class="section">
  347. <h2>🤝 技术支持</h2>
  348. <p>如果您在使用过程中遇到问题或有改进建议,请联系开发者或提交 Issue。</p>
  349. <p>本工具基于 MIT 许可证发布,免费用于个人和商业项目。</p>
  350. </div>
  351. </div>
  352. </div>
  353. </body>
  354. </html>