From 80e2c25869c7885be0e42f879a5b9d4670d399f7 Mon Sep 17 00:00:00 2001 From: Yep_Q Date: Sun, 5 Oct 2025 00:20:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E5=88=B6=E9=80=A0=E8=AE=A2=E5=8D=95=E7=8F=AD=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 详细说明: - 项目主题: 物流输送线节拍优化的PLC与机器人联合调试 - 技术栈: 西门子S7-1500 PLC + ABB IRB 2600工业机器人 - 设计风格: 钢铁蓝主题(#3b82f6, #64748b, #94a3b8),工业制造专业感 页面结构: - Hero区域: 全屏图片背景,汽车零部件分拣系统展示 - 导航栏: 4个区块(项目概述/设备选型/功能流程/编程实现) - Section 1: 自动化控制工程师 - 项目背景与挑战 - Section 2: 数据采集技术员 - PLC/机器人/通信配置 - Section 3: PLC工程师 - 控制流程与I/O分配 - Section 4: 机器人调试工程师 - 梯形图/RAPID编程实现 - Footer: 项目成果总结 技术实现: - HTML: 704行完整页面,4个expert代理,7张技术图片 - CSS: 962行钢铁蓝主题,light/dark模式切换 - JS: 268行交互逻辑,统计数据动画,懒加载优化 关键数据: - 机器人负载: 20kg - 工作半径: 1.65m - 定位精度: ±0.04mm - I/O点数: 32点 - PLC网络: 7个 - 机器人位置点: 3个 - 握手信号: 6个 资源配置: - Agent头像: 4个(自动化控制工程师/数据采集技术员/PLC工程师/机器人调试工程师) - 技术图片: 7个(产线运输图/传送带零部件/PLC控制器/工业机器人等) - 主题色系: 钢铁蓝工业风,体现智能制造专业性 🤖 智能制造订单班展示页面开发完成! --- .../order-classes/manufacturing/agent-avatars | 1 + .../manufacturing/css/styles.css | 961 ++++++++++++++++++ .../order-classes/manufacturing/images | 1 + .../order-classes/manufacturing/index.html | 703 +++++++++++++ .../order-classes/manufacturing/js/main.js | 268 +++++ 5 files changed, 1934 insertions(+) create mode 120000 web_frontend/web_result/order-classes/manufacturing/agent-avatars create mode 100644 web_frontend/web_result/order-classes/manufacturing/css/styles.css create mode 120000 web_frontend/web_result/order-classes/manufacturing/images create mode 100644 web_frontend/web_result/order-classes/manufacturing/index.html create mode 100644 web_frontend/web_result/order-classes/manufacturing/js/main.js diff --git a/web_frontend/web_result/order-classes/manufacturing/agent-avatars b/web_frontend/web_result/order-classes/manufacturing/agent-avatars new file mode 120000 index 00000000..d8deae6d --- /dev/null +++ b/web_frontend/web_result/order-classes/manufacturing/agent-avatars @@ -0,0 +1 @@ +../../../../data/订单班文档资料/智能制造/agent头像 \ No newline at end of file diff --git a/web_frontend/web_result/order-classes/manufacturing/css/styles.css b/web_frontend/web_result/order-classes/manufacturing/css/styles.css new file mode 100644 index 00000000..6ab78d88 --- /dev/null +++ b/web_frontend/web_result/order-classes/manufacturing/css/styles.css @@ -0,0 +1,961 @@ +/* 物流输送线节拍优化的PLC与机器人联合调试 - 智能制造订单班钢铁蓝设计系统 */ + +/* ========== 设计变量 ========== */ +:root { + /* 工业钢铁蓝主题 - 智能制造风格 */ + --bg-dark: #f0f4f8; /* 浅蓝灰背景 */ + --bg-semi-dark: rgba(240, 244, 248, 0.95); /* 半透明浅蓝灰 */ + --bg-overlay: rgba(255, 255, 255, 0.85); /* 白色遮罩 */ + --bg-card: rgba(255, 255, 255, 0.9); /* 卡片背景 */ + --primary-dark: #0f172a; /* 主色深蓝 */ + --primary-blue: #3b82f6; /* 主色蓝 - 智能制造专业 */ + --accent-steel: #64748b; /* 钢铁灰强调 - 工业主题 */ + --accent-steel-light: #94a3b8; /* 浅钢铁灰 */ + --text-light: #1e293b; /* 深色文字 */ + --text-gray: #475569; /* 灰色文字 */ + --border-light: rgba(59, 130, 246, 0.2); /* 蓝色边框 */ + --hover-bg: rgba(59, 130, 246, 0.15); /* 悬停背景 */ + --active-bg: rgba(59, 130, 246, 0.2); /* 激活背景 */ + + /* 间距系统 - 针对大屏幕优化 */ + --spacing-xs: 0.75rem; /* 12px */ + --spacing-sm: 1.25rem; /* 20px */ + --spacing-md: 2rem; /* 32px */ + --spacing-lg: 3rem; /* 48px */ + --spacing-xl: 4rem; /* 64px */ + --spacing-2xl: 6rem; /* 96px */ + --spacing-3xl: 8rem; /* 128px */ + + /* 字体系统 */ + --font-primary: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif; + --font-display: 'Inter', sans-serif; + + /* 字体大小 - 针对大屏幕优化 */ + --text-xs: 0.875rem; /* 14px */ + --text-sm: 1rem; /* 16px */ + --text-base: 1.125rem; /* 18px */ + --text-lg: 1.375rem; /* 22px */ + --text-xl: 1.625rem; /* 26px */ + --text-2xl: 2rem; /* 32px */ + --text-3xl: 2.5rem; /* 40px */ + --text-4xl: 3rem; /* 48px */ + --text-5xl: 4rem; /* 64px */ + + /* 字重 */ + --font-light: 300; + --font-normal: 400; + --font-medium: 500; + --font-semibold: 600; + --font-bold: 700; + + /* 圆角 */ + --radius-sm: 0.375rem; + --radius-md: 0.5rem; + --radius-lg: 0.75rem; + --radius-xl: 1rem; + --radius-2xl: 1.5rem; + --radius-full: 9999px; + + /* 阴影 - 轻盈专业主题 */ + --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); + --shadow-md: 0 2px 4px rgba(0,0,0,0.08); + --shadow-lg: 0 4px 8px rgba(0,0,0,0.1); + --shadow-xl: 0 8px 16px rgba(0,0,0,0.12); + --shadow-blue: 0 2px 8px rgba(59, 130, 246, 0.15); + + /* 过渡 */ + --transition-fast: 150ms ease; + --transition-base: 250ms ease; + --transition-slow: 350ms ease; + + /* 布局 */ + --container-max: 1600px; /* 增加最大宽度适配1920屏幕 */ +} + +/* ========== 深色主题 - 深邃钢铁蓝配色 ========== */ +body.dark-theme { + --bg-dark: #0f172a; /* 深邃蓝黑背景 */ + --bg-semi-dark: rgba(15, 23, 42, 0.95); /* 深蓝半透明 */ + --bg-overlay: rgba(30, 41, 59, 0.85); /* 深蓝遮罩层 */ + --bg-card: rgba(51, 65, 85, 0.9); /* 深蓝卡片背景 */ + --primary-dark: #0f172a; /* 深邃蓝黑 */ + --primary-blue: #60a5fa; /* 明亮蓝 */ + --accent-steel: #94a3b8; /* 亮钢铁灰 */ + --accent-steel-light: #cbd5e1; /* 超亮钢铁灰 */ + --text-light: #f1f5f9; /* 浅色文字 */ + --text-gray: #cbd5e1; /* 灰色文字 */ + --border-light: rgba(96, 165, 250, 0.25); /* 蓝色边框 */ + --hover-bg: rgba(59, 130, 246, 0.15); /* 悬停背景 */ + --active-bg: rgba(96, 165, 250, 0.2); /* 激活背景 */ + --shadow-sm: 0 1px 2px rgba(0,0,0,0.4); + --shadow-md: 0 2px 4px rgba(0,0,0,0.5); + --shadow-lg: 0 4px 8px rgba(0,0,0,0.6); + --shadow-xl: 0 8px 16px rgba(0,0,0,0.7); + --shadow-blue: 0 2px 8px rgba(59, 130, 246, 0.25); +} + +/* ========== 重置样式 ========== */ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html { + scroll-behavior: smooth; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +body { + font-family: var(--font-primary); + font-size: var(--text-base); + line-height: 1.6; + color: var(--text-light); + background-color: var(--bg-dark); + overflow-x: hidden; +} + +/* ========== Hero 区域 - 全屏图片背景 ========== */ +.hero { + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; + background: + linear-gradient(135deg, rgba(240, 244, 248, 0.9) 0%, rgba(226, 232, 240, 0.95) 100%), + url('../images/汽车物流产线运输图.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; + position: relative; + overflow: hidden; +} + +/* 深色主题下的Hero渐变 */ +body.dark-theme .hero { + background: + linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%), + url('../images/汽车物流产线运输图.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +.hero::before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + background-image: + radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), + radial-gradient(circle at 80% 80%, rgba(100, 116, 139, 0.05) 0%, transparent 50%); + pointer-events: none; + animation: glow 8s ease-in-out infinite; +} + +@keyframes glow { + 0%, 100% { opacity: 1; } + 50% { opacity: 0.6; } +} + +.hero-content { + text-align: center; + color: var(--text-light); + z-index: 1; + position: relative; + padding: var(--spacing-xl); + max-width: 900px; +} + +.hero-badge { + display: inline-block; + padding: var(--spacing-md) var(--spacing-xl); + background: rgba(59, 130, 246, 0.15); + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); + border-radius: var(--radius-full); + font-size: var(--text-lg); + font-weight: var(--font-semibold); + letter-spacing: 0.1em; + margin-bottom: var(--spacing-xl); + border: 3px solid var(--primary-blue); + box-shadow: var(--shadow-blue); + text-transform: uppercase; + transition: all var(--transition-base); +} + +.hero-badge:hover { + background: rgba(59, 130, 246, 0.25); + transform: translateY(-2px); +} + +.hero-title { + font-size: clamp(3.5rem, 10vw, 6.5rem); + font-weight: var(--font-bold); + margin-bottom: var(--spacing-lg); + letter-spacing: -0.02em; + line-height: 1.1; + color: var(--accent-steel-light); + text-shadow: 0 6px 30px rgba(0,0,0,0.8), 0 0 60px rgba(59, 130, 246, 0.4); +} + +.hero-subtitle { + font-size: clamp(1.5rem, 4vw, 2.5rem); + font-weight: var(--font-light); + opacity: 0.95; + margin-bottom: var(--spacing-xl); + color: var(--text-light); +} + +.hero-description { + font-size: var(--text-xl); + opacity: 0.85; + max-width: 800px; + margin: 0 auto; + line-height: 1.8; +} + +/* ========== 导航 - 深色玻璃态 ========== */ +.nav { + position: sticky; + top: 0; + z-index: 100; + background: var(--bg-semi-dark); + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); + border-bottom: 1px solid var(--border-light); + padding: var(--spacing-md) 0; + box-shadow: var(--shadow-md); +} + +.nav-container { + display: flex; + justify-content: center; + gap: var(--spacing-sm); + flex-wrap: wrap; + padding: 0 var(--spacing-md); +} + +.nav-item { + padding: var(--spacing-sm) var(--spacing-lg); + background: var(--bg-overlay); + backdrop-filter: blur(10px); + border: 1px solid var(--border-light); + border-radius: var(--radius-lg); + cursor: pointer; + transition: all var(--transition-base); + font-weight: var(--font-medium); + display: flex; + align-items: center; + gap: var(--spacing-xs); + color: var(--text-gray); +} + +.nav-item i { + width: 20px; + height: 20px; + stroke-width: 2; +} + +.nav-item span { + font-size: var(--text-base); +} + +.nav-item:hover { + background: var(--hover-bg); + color: var(--primary-blue); + transform: translateY(-2px); + box-shadow: var(--shadow-blue); +} + +.nav-item.active { + background: var(--active-bg); + color: var(--primary-blue); + border-color: var(--primary-blue); + box-shadow: var(--shadow-blue); +} + +/* ========== 内容区块 - 图片背景 ========== */ +.section { + padding: var(--spacing-2xl) 0; + background: var(--bg-dark); + position: relative; +} + +/* 浅色图片背景 - 每个区块使用不同图片 */ +.section:nth-child(1) { + background-image: + linear-gradient(to bottom, rgba(240, 244, 248, 0.9) 0%, rgba(226, 232, 240, 1) 100%), + url('../images/传送带上的汽车零部件.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +.section:nth-child(2) { + background-image: + linear-gradient(to bottom, rgba(240, 244, 248, 0.9) 0%, rgba(226, 232, 240, 1) 100%), + url('../images/PLC控制器.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +.section:nth-child(3) { + background-image: + linear-gradient(to bottom, rgba(240, 244, 248, 0.9) 0%, rgba(226, 232, 240, 1) 100%), + url('../images/Mermaid流程图.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +.section:nth-child(4) { + background-image: + linear-gradient(to bottom, rgba(240, 244, 248, 0.9) 0%, rgba(226, 232, 240, 1) 100%), + url('../images/工业机器人.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +/* 通用奇偶区块(当超过4个section时) */ +.section:nth-child(n+5):nth-child(odd) { + background-image: + linear-gradient(to bottom, rgba(240, 244, 248, 0.9) 0%, rgba(226, 232, 240, 1) 100%), + url('../images/汽车零部件展示.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +.section:nth-child(n+5):nth-child(even) { + background-image: + linear-gradient(to bottom, rgba(240, 244, 248, 0.9) 0%, rgba(226, 232, 240, 1) 100%), + url('../images/通信程序示意图.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +/* 深色主题下的区块背景 - 每个区块使用对应图片 */ +body.dark-theme .section:nth-child(1) { + background-image: + linear-gradient(to bottom, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%), + url('../images/传送带上的汽车零部件.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +body.dark-theme .section:nth-child(2) { + background-image: + linear-gradient(to bottom, rgba(30, 41, 59, 0.90) 0%, rgba(15, 23, 42, 0.88) 100%), + url('../images/PLC控制器.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +body.dark-theme .section:nth-child(3) { + background-image: + linear-gradient(to bottom, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%), + url('../images/Mermaid流程图.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +body.dark-theme .section:nth-child(4) { + background-image: + linear-gradient(to bottom, rgba(30, 41, 59, 0.90) 0%, rgba(15, 23, 42, 0.88) 100%), + url('../images/工业机器人.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +/* 通用奇偶区块(当超过4个section时) */ +body.dark-theme .section:nth-child(n+5):nth-child(odd) { + background-image: + linear-gradient(to bottom, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%), + url('../images/汽车零部件展示.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +body.dark-theme .section:nth-child(n+5):nth-child(even) { + background-image: + linear-gradient(to bottom, rgba(30, 41, 59, 0.90) 0%, rgba(15, 23, 42, 0.88) 100%), + url('../images/通信程序示意图.jpg'); + background-size: cover; + background-position: center; + background-attachment: fixed; +} + +/* 深色主题下的特定元素调整 */ +body.dark-theme .stat-item { + background: rgba(51, 65, 85, 0.8); + backdrop-filter: blur(5px); +} + +body.dark-theme .stat-item:hover { + background: rgba(96, 165, 250, 0.15); + border-color: var(--primary-blue); +} + +body.dark-theme .stat-value { + color: var(--accent-steel-light); +} + +body.dark-theme th { + background: rgba(96, 165, 250, 0.12); + color: var(--accent-steel-light); +} + +body.dark-theme tr:hover { + background: rgba(96, 165, 250, 0.08); +} + +.container { + max-width: var(--container-max); + margin: 0 auto; + padding: 0 var(--spacing-md); +} + +.section-header { + display: flex; + align-items: center; + gap: var(--spacing-lg); + margin-bottom: var(--spacing-xl); + padding: var(--spacing-lg); + background: var(--bg-card); + backdrop-filter: blur(15px); + -webkit-backdrop-filter: blur(15px); + border-radius: var(--radius-xl); + border: 2px solid var(--border-light); + box-shadow: var(--shadow-md); +} + +.agent-avatar { + width: 100px; + height: 100px; + border-radius: var(--radius-xl); + object-fit: cover; + border: 3px solid var(--primary-blue); + box-shadow: var(--shadow-md); + transition: all var(--transition-base); +} + +.agent-avatar:hover { + transform: scale(1.05); + box-shadow: var(--shadow-lg); + border-color: var(--accent-steel); +} + +.agent-info { + flex: 1; +} + +.agent-name { + font-size: var(--text-lg); + color: var(--primary-blue); + text-transform: uppercase; + letter-spacing: 0.1em; + margin-bottom: var(--spacing-sm); + font-weight: var(--font-semibold); +} + +.section-title { + font-size: var(--text-4xl); + font-weight: var(--font-bold); + color: var(--text-light); + letter-spacing: -0.01em; + text-shadow: none; + position: relative; + padding-bottom: var(--spacing-sm); +} + +.section-title::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + width: 180px; + height: 4px; + background: linear-gradient(90deg, var(--primary-blue), transparent); + border-radius: 2px; +} + +.section-content { + max-width: 100%; + margin: 0 auto; +} + +.expert-intro { + background: var(--bg-card); + backdrop-filter: blur(15px); + -webkit-backdrop-filter: blur(15px); + border-radius: var(--radius-xl); + padding: var(--spacing-lg); + margin-bottom: var(--spacing-xl); + border: 2px solid var(--border-light); + box-shadow: var(--shadow-md); +} + +.expert-intro h3 { + font-size: var(--text-2xl); + color: var(--primary-blue); + margin-bottom: var(--spacing-lg); + display: flex; + align-items: center; + gap: var(--spacing-md); +} + +.expert-intro p { + color: var(--text-gray); + line-height: 1.8; + font-size: var(--text-lg); +} + +/* ========== 网格布局 - 针对大屏幕优化,更大气的布局 ========== */ +.grid { + display: grid; + gap: var(--spacing-2xl); +} + +.grid-2 { + grid-template-columns: repeat(2, 1fr); +} + +.grid-3 { + grid-template-columns: repeat(2, 1fr); +} + +.grid-4 { + grid-template-columns: repeat(3, 1fr); +} + +/* ========== 卡片 - 图片优先布局 ========== */ +.card { + background: var(--bg-card); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + border-radius: var(--radius-2xl); + overflow: hidden; + border: 2px solid var(--border-light); + transition: all var(--transition-base); + box-shadow: var(--shadow-md); + padding: 0; + display: flex; + flex-direction: column; +} + +.card:hover { + transform: translateY(-8px); + box-shadow: var(--shadow-xl), var(--shadow-blue); + border-color: var(--primary-blue); +} + +.card-header { + padding: var(--spacing-xl); + background: var(--bg-semi-dark); + border-bottom: 2px solid var(--border-light); + order: 2; +} + +.card-title { + font-size: var(--text-2xl); + font-weight: var(--font-semibold); + color: var(--primary-blue); + margin-bottom: var(--spacing-sm); +} + +.card-body { + padding: var(--spacing-xl); + order: 3; + flex: 1; +} + +/* ========== 图片容器 - 突出展示 - 超大气布局 ========== */ +.image-container { + width: 100%; + aspect-ratio: 3/2; + overflow: hidden; + border-radius: 0; + margin-bottom: 0; + background: rgba(0,0,0,0.5); + position: relative; + box-shadow: none; + border: none; + transition: all var(--transition-base); + order: 1; + flex-shrink: 0; +} + +.image-container img { + width: 100%; + height: 100%; + object-fit: cover; + transition: transform var(--transition-slow); + filter: brightness(0.9); +} + +.image-container:hover img { + transform: scale(1.1); + filter: brightness(1.1); +} + +.image-caption { + position: absolute; + bottom: 0; + left: 0; + right: 0; + padding: var(--spacing-md); + background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); + color: var(--text-light); + font-size: var(--text-sm); + font-weight: var(--font-medium); + text-align: center; + transform: translateY(100%); + transition: transform var(--transition-base); +} + +.image-container:hover .image-caption { + transform: translateY(0); +} + +/* ========== 列表 ========== */ +.feature-list { + list-style: none; + padding: 0; +} + +.feature-list li { + padding: var(--spacing-sm) 0; + border-bottom: 1px solid var(--border-light); + color: var(--text-gray); + transition: all var(--transition-fast); +} + +.feature-list li:hover { + color: var(--primary-blue); + padding-left: var(--spacing-sm); +} + +.feature-list li:last-child { + border-bottom: none; +} + +/* ========== 统计数据 ========== */ +.stats { + display: flex; + gap: var(--spacing-md); + padding: var(--spacing-lg); + background: var(--bg-overlay); + backdrop-filter: blur(10px); + border-radius: var(--radius-lg); + border: 1px solid var(--border-light); +} + +.stat-item { + flex: 1; + text-align: center; + padding: var(--spacing-md); + border-radius: var(--radius-md); + background: var(--bg-card); + border: 1px solid transparent; + transition: all var(--transition-base); +} + +.stat-item:hover { + background: var(--hover-bg); + transform: translateY(-4px); + border-color: var(--border-light); + box-shadow: var(--shadow-md); +} + +.stat-label { + font-size: var(--text-sm); + color: var(--text-gray); + margin-bottom: var(--spacing-xs); +} + +.stat-value { + font-size: var(--text-2xl); + font-weight: var(--font-bold); + color: var(--primary-blue); + text-shadow: none; +} + +/* ========== 表格 ========== */ +.table-container { + overflow-x: auto; + margin: var(--spacing-xl) 0; + border-radius: var(--radius-lg); + box-shadow: var(--shadow-lg); +} + +table { + width: 100%; + border-collapse: collapse; + background: var(--bg-card); + backdrop-filter: blur(10px); + border-radius: var(--radius-lg); + overflow: hidden; +} + +th { + background: var(--active-bg); + color: var(--primary-blue); + padding: var(--spacing-md); + text-align: left; + font-weight: var(--font-semibold); + border-bottom: 2px solid var(--primary-blue); +} + +td { + padding: var(--spacing-md); + border-bottom: 1px solid var(--border-light); + color: var(--text-gray); +} + +tr:last-child td { + border-bottom: none; +} + +tr:hover { + background: var(--hover-bg); +} + +/* ========== 响应式 ========== */ +@media (max-width: 768px) { + :root { + --spacing-sm: 0.75rem; + --spacing-md: 1rem; + --spacing-lg: 1.5rem; + --spacing-xl: 2rem; + --spacing-2xl: 3rem; + --spacing-3xl: 4rem; + } + + .hero { + background-attachment: scroll; + } + + .section:nth-child(odd), + .section:nth-child(even) { + background-attachment: scroll; + } + + .hero-content { + padding: var(--spacing-lg); + } + + .nav-container { + gap: var(--spacing-xs); + } + + .nav-item { + padding: var(--spacing-xs) var(--spacing-md); + font-size: var(--text-sm); + } + + .section { + padding: var(--spacing-2xl) 0; + } + + .grid-2, + .grid-3, + .grid-4 { + grid-template-columns: 1fr; + } + + .section-header { + flex-direction: column; + text-align: center; + } + + .stats { + flex-direction: column; + } +} + +/* ========== 动画 ========== */ +@keyframes fadeIn { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes slideIn { + from { + opacity: 0; + transform: translateX(-20px); + } + to { + opacity: 1; + transform: translateX(0); + } +} + +@keyframes shimmer { + 0% { + background-position: -1000px 0; + } + 100% { + background-position: 1000px 0; + } +} + +.fade-in { + animation: fadeIn 0.6s ease forwards; +} + +.slide-in { + animation: slideIn 0.6s ease forwards; +} + +/* ========== 工具类 ========== */ +.text-center { text-align: center; } +.text-left { text-align: left; } +.text-right { text-align: right; } + +.mt-sm { margin-top: var(--spacing-sm); } +.mt-md { margin-top: var(--spacing-md); } +.mt-lg { margin-top: var(--spacing-lg); } +.mt-xl { margin-top: var(--spacing-xl); } + +.mb-sm { margin-bottom: var(--spacing-sm); } +.mb-md { margin-bottom: var(--spacing-md); } +.mb-lg { margin-bottom: var(--spacing-lg); } +.mb-xl { margin-bottom: var(--spacing-xl); } + +.hidden { display: none; } +.block { display: block; } +.flex { display: flex; } +.grid { display: grid; } + +.gap-sm { gap: var(--spacing-sm); } +.gap-md { gap: var(--spacing-md); } +.gap-lg { gap: var(--spacing-lg); } + +/* ========== 图片加载状态 ========== */ +img { + transition: opacity var(--transition-base); +} + +img.loaded { + opacity: 1; +} + +img.error { + opacity: 0.5; + filter: grayscale(1); +} + +/* ========== SVG图标尺寸统一管理 ========== */ +.hero-description i[data-lucide] { + width: 24px !important; + height: 24px !important; + display: inline-block !important; + vertical-align: middle !important; + margin-right: 8px !important; +} + +.agent-name i[data-lucide] { + width: 20px !important; + height: 20px !important; + display: inline-block !important; + vertical-align: middle !important; + margin-right: 8px !important; +} + +.expert-intro h3 i[data-lucide] { + width: 40px !important; + height: 40px !important; + display: inline-block !important; + vertical-align: middle !important; + margin-right: 10px !important; +} + +.feature-list li i[data-lucide] { + width: 18px !important; + height: 18px !important; + display: inline-block !important; + vertical-align: middle !important; + margin-right: 8px !important; +} + +.nav-item i[data-lucide] { + width: 20px !important; + height: 20px !important; + display: block !important; + margin: 0 auto 4px !important; +} + +/* ========== 主题切换按钮 ========== */ +.theme-toggle { + position: fixed; + top: 24px; + right: 24px; + z-index: 1000; +} + +.theme-toggle-btn { + position: relative; + width: 64px; + height: 32px; + background: var(--bg-card); + border: 2px solid var(--border-light); + border-radius: var(--radius-full); + cursor: pointer; + padding: 0; + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 6px; + transition: all var(--transition-base); + box-shadow: var(--shadow-md); +} + +.theme-toggle-btn:hover { + transform: scale(1.05); + box-shadow: var(--shadow-lg); +} + +.theme-toggle-btn:active { + transform: scale(0.95); +} + +.theme-icon { + width: 18px !important; + height: 18px !important; + transition: all var(--transition-base); + color: var(--text-gray); +} + +body:not(.dark-theme) .theme-icon-light { + color: var(--primary-blue); + transform: scale(1.2); +} + +body:not(.dark-theme) .theme-icon-dark { + opacity: 0.5; +} + +body.dark-theme .theme-icon-dark { + color: var(--primary-blue); + transform: scale(1.2); +} + +body.dark-theme .theme-icon-light { + opacity: 0.5; +} diff --git a/web_frontend/web_result/order-classes/manufacturing/images b/web_frontend/web_result/order-classes/manufacturing/images new file mode 120000 index 00000000..30897218 --- /dev/null +++ b/web_frontend/web_result/order-classes/manufacturing/images @@ -0,0 +1 @@ +../../../../data/订单班文档资料/智能制造/notion文稿/image \ No newline at end of file diff --git a/web_frontend/web_result/order-classes/manufacturing/index.html b/web_frontend/web_result/order-classes/manufacturing/index.html new file mode 100644 index 00000000..08e3577e --- /dev/null +++ b/web_frontend/web_result/order-classes/manufacturing/index.html @@ -0,0 +1,703 @@ + + + + + + 物流输送线节拍优化的PLC与机器人联合调试 - 智能制造订单班 + + + + + +
+ +
+ + +
+
+
🤖 智能制造订单班
+

物流输送线节拍优化
PLC与机器人联合调试

+

汽车零部件自动分拣系统

+

+ 西门子S7-1500 PLC控制
+ ABB IRB 2600工业机器人
+ Profinet高速通信协议 +

+
+
+ + + + + +
+
+
+ 自动化控制工程师 +
+
+ 自动化控制工程师 +
+

项目概述与背景

+
+
+ +
+
+

项目背景

+

随着汽车制造业生产节拍要求越来越高,零部件分拣环节逐渐从传统人工操作转向自动化系统。典型的分拣产线由输送带 + 工业机器人 + PLC 控制系统构成:PLC 负责输送带运行、传感器信号采集、与机器人进行数据交互;机器人负责根据分类要求将零部件准确抓取并放置到指定区域。

+
+ +
+ 汽车物流产线 +
汽车零部件物流产线运输示意图
+
+ +
+
+
+

核心挑战

+
+
+
    +
  • 节拍优化:输送带与机器人节奏同步
  • +
  • 信号联锁:避免零件积压或错位
  • +
  • 安全保护:紧急停止与故障处理
  • +
  • 效率提升:实现高效稳定分拣作业
  • +
+
+
+ +
+
+

系统目标

+
+
+
    +
  • PLC负责输送带与传感器控制
  • +
  • 机器人负责精准抓取与放置
  • +
  • 实现PLC与机器人数据交互
  • +
  • 保证系统连续稳定运行
  • +
+
+
+
+ +
+
+
+ 传送带零部件 +
+
+

输送系统

+
+
+

连续输送汽车零部件,通过定位传感器精确停止在机器人工作区域。

+
+
+ +
+
+ 汽车零部件 +
+
+

零部件分拣

+
+
+

多种类型汽车零部件需要根据分类要求进行自动化识别与分拣。

+
+
+ +
+
+ 控制流程 +
+
+

控制流程

+
+
+

完整的启停控制、信号联锁、故障处理与恢复机制。

+
+
+
+
+
+
+ + +
+
+
+ 数据采集技术员 +
+
+ 数据采集自动化技术员 +
+

设备选型与通信配置

+
+
+ +
+
+

设备选型建议

+

设备型号的推荐综合考虑了行业内的应用普及度与相关技术标准,以满足自动化设备选型的规范性与适用性。

+
+ +
+
+
+ PLC控制器 +
+
+

PLC控制器

+
+
+

西门子 SIMATIC S7-1500

+
    +
  • CPU 1512C-1 PN
  • +
  • DI16×24VDC / DO16×24VDC
  • +
  • Profinet通讯接口
  • +
  • 梯形图编程语言
  • +
+
+
+ +
+
+ 工业机器人 +
+
+

工业机器人

+
+
+

ABB IRB 2600

+
    +
  • 负载:12~20 kg
  • +
  • 工作半径:1.65 m
  • +
  • 精度:±0.04 mm
  • +
  • RAPID编程语言
  • +
+
+
+ +
+
+ 通信程序 +
+
+

通信配置

+
+
+

Profinet协议

+
    +
  • S7-1500作为Controller
  • +
  • IRC5作为Device
  • +
  • GSDML文件配置
  • +
  • I/O通道映射
  • +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
通信方向信号名称类型功能说明
PLC → RobotStartAllowDO启动允许信号
PLC → RobotPartReadyDO零件就位信号
PLC → RobotResetDO复位命令
Robot → PLCRobotReadyDI机器人就绪反馈
Robot → PLCPickDoneDI抓取完成反馈
Robot → PLCRobotFaultDI机器人故障信号
+
+ +
+
+
机器人负载
+
0kg
+
+
+
工作半径
+
0m
+
+
+
定位精度
+
±0.04mm
+
+
+
IO点数
+
0点
+
+
+
+
+
+ + +
+
+
+ PLC工程师 +
+
+ PLC工程师 +
+

功能流程设计

+
+
+ +
+
+

控制流程说明

+

这条生产线由一条输送带和一台ABB工业机器人组成,用来分拣汽车零部件。PLC负责输送带、按钮、传感器和安全保护;机器人负责抓取零件。两者要互相配合,才能保证节拍稳定、分拣准确。

+
+ +
+
+
+

1. 启停与安全控制

+
+
+
    +
  • 工人按下启动按钮,系统才能开始工作
  • +
  • 停止按钮或急停开关,系统马上停下来
  • +
  • 安全门打开、输送带过载,必须停机
  • +
  • 所有保护信号连锁,一个异常全部停止
  • +
+
+
+ +
+
+

2. 输送带运行控制

+
+
+
    +
  • 输送带不断送来零件
  • +
  • 定位光电传感器检测零件到位
  • +
  • PLC立即让输送带停下
  • +
  • 保证零件停在机器人正下方
  • +
+
+
+ +
+
+

3. 机器人动作条件

+
+
+

三个条件同时满足才能启动:

+
    +
  • 机器人自己已经准备好(RobotReady=1)
  • +
  • 输送带检测到零件就位(PartReady=1)
  • +
  • PLC允许机器人动作(StartAllow=1)
  • +
  • 保证"有零件可抓"且"环境安全"
  • +
+
+
+ +
+
+

4. 取件后的处理

+
+
+

机器人完成抓取后:

+
    +
  • 发送PickDone=1信号告诉PLC
  • +
  • PLC清除PartReady和StartAllow信号
  • +
  • 重新启动输送带
  • +
  • 把下一个零件送过来
  • +
+
+
+ +
+
+

5. 节拍匹配优化

+
+
+
    +
  • 输送带速度与机器人抓取速度匹配
  • +
  • 机器人未准备好,不送新零件
  • +
  • 机器人太快,输送带及时送件
  • +
  • 节奏衔接紧密,产线效率最高
  • +
+
+
+ +
+
+

6. 故障与恢复

+
+
+

故障发生时:

+
    +
  • 输送带马上停止
  • +
  • 撤销所有机器人动作信号
  • +
  • 报警灯亮起提醒工人
  • +
  • 按复位按钮后才能继续运行
  • +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
输入器件输入点功能
SB1 启动按钮(常开)I0.0系统启动
SB2 停止按钮(常闭)I0.1系统停止
ES 急停(常闭)I0.2急停联锁
GS 安全门(常闭)I0.3安全门联锁
FR 过载保护(常闭)I0.4电机/电源过载
PE1 入口光电(常开)I0.5来料检测
PE2 定位光电(常开)I0.6取料位到位
SB3 复位按钮(常开)I0.7报警/握手复位
RobotReady(常开)I1.0机器人就绪反馈
PickDone(常开)I1.1分拣完成反馈
RobotFault(常开)I1.2机器人报警
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
输出器件输出点功能
KM1 输送带接触器Q0.0输送带电机启停
HL1 报警指示灯Q0.1故障/报警提示
HL2 运行指示灯Q0.2系统运行提示
StartAllow → RobotQ0.3启动允许(握手)
PartReady → RobotQ0.4零件就位(握手)
PLC_Reset → RobotQ0.5复位命令(握手)
+
+
+
+
+ + +
+
+
+ 机器人调试工程师 +
+
+ 机器人调试工程师 +
+

PLC与机器人编程实现

+
+
+ +
+
+

编程架构

+

以下是依据前文所解析的控制逻辑与I/O点分配方案,编制完整的PLC梯形图程序和ABB机器人RAPID程序,将系统的启停控制、输送带运行、机器人握手联锁、节拍优化及安全保护等功能模块清晰展现。

+
+ +
+
+
+

PLC控制逻辑

+
+
+

核心控制环节:

+
    +
  • 运行许可与自保持
  • +
  • 输送带启停控制
  • +
  • 零件就位信号(PartReady)
  • +
  • 启动允许信号(StartAllow)
  • +
  • 机器人动作与反馈
  • +
  • 故障优先级处理
  • +
  • 复位机制
  • +
+
+
+ +
+
+

机器人程序

+
+
+

RAPID编程要点:

+
    +
  • I/O信号映射与声明
  • +
  • 位置坐标与工具定义
  • +
  • 主循环与握手逻辑
  • +
  • 取件与放置轨迹规划
  • +
  • 完成反馈信号发送
  • +
  • 复位处理与错误清除
  • +
  • 故障置位与异常处理
  • +
+
+
+
+ +
+

握手时序要点

+
+
+
+

1. 就绪握手

+
+
+

机器人上电后doRobotReady=1表示就绪,PLC检测到RobotReady后才能进入工作状态。

+
+
+
+
+

2. 启动握手

+
+
+

PLC在RobotReady=1且PartReady=1且StartAllow=1时,机器人执行抓取动作。

+
+
+
+
+

3. 完成握手

+
+
+

机器人完成后doPickDone脉冲,PLC收到后清PartReady/StartAllow并续行输送带。

+
+
+
+
+ +
+
+
PLC编程网络
+
0个
+
+
+
机器人位置点
+
0个
+
+
+
握手信号
+
0个
+
+
+
复位时间
+
0.7秒
+
+
+
+
+
+ + +
+
+

+ 项目成果总结 +

+ +
+
+
+

🔧 系统配置

+
+
+
    +
  • 西门子S7-1500 PLC
  • +
  • ABB IRB 2600机器人
  • +
  • Profinet高速通信
  • +
  • 32点I/O配置
  • +
  • 双光电传感器检测
  • +
  • 多重安全保护
  • +
  • 梯形图+RAPID编程
  • +
  • 实时节拍优化
  • +
+
+
+ +
+
+

⚙️ 核心功能

+
+
+
    +
  • 启停与安全联锁
  • +
  • 输送带自动控制
  • +
  • 精准定位停止
  • +
  • PLC-机器人握手
  • +
  • 节拍同步优化
  • +
  • 故障自动检测
  • +
  • 一键复位恢复
  • +
  • 实时状态监控
  • +
+
+
+ +
+
+

🎯 技术指标

+
+
+
    +
  • 负载能力20kg
  • +
  • 工作半径1.65m
  • +
  • 定位精度±0.04mm
  • +
  • 复位时间0.7秒
  • +
  • 7个控制网络
  • +
  • 3个机器人位置点
  • +
  • 6个握手信号
  • +
  • 零积压零错位
  • +
+
+
+
+ +
+

🤖 物流输送线节拍优化的PLC与机器人联合调试项目圆满完成!

+

© 2024 智能制造订单班 | 工业自动化解决方案

+
+
+
+ + + + diff --git a/web_frontend/web_result/order-classes/manufacturing/js/main.js b/web_frontend/web_result/order-classes/manufacturing/js/main.js new file mode 100644 index 00000000..9937b17f --- /dev/null +++ b/web_frontend/web_result/order-classes/manufacturing/js/main.js @@ -0,0 +1,268 @@ +// 物流输送线节拍优化的PLC与机器人联合调试 - 主要JavaScript逻辑 + +// 页面初始化 +document.addEventListener('DOMContentLoaded', function() { + console.log('🤖 智能制造订单班PLC机器人联调页面加载完成'); + + // 初始化Lucide图标 + if (typeof lucide !== 'undefined') { + lucide.createIcons(); + } + + // 初始化组件 + initNavigation(); + initAnimations(); + initLazyLoading(); + initSmoothScroll(); + updateStats(); + initThemeToggle(); +}); + +// 导航功能 +function initNavigation() { + const navItems = document.querySelectorAll('.nav-item'); + const sections = document.querySelectorAll('.section'); + + // 点击导航项滚动到对应区块 + navItems.forEach((item, index) => { + item.addEventListener('click', () => { + // 移除所有活跃状态 + navItems.forEach(nav => nav.classList.remove('active')); + // 添加当前活跃状态 + item.classList.add('active'); + + // 滚动到对应区块 + if (sections[index]) { + const targetSection = sections[index]; + const offsetTop = targetSection.offsetTop - 100; + + window.scrollTo({ + top: offsetTop, + behavior: 'smooth' + }); + } + }); + }); + + // 滚动时更新导航活跃状态 + window.addEventListener('scroll', () => { + let current = ''; + sections.forEach((section, index) => { + const sectionTop = section.offsetTop - 150; + if (scrollY >= sectionTop) { + current = index; + } + }); + + navItems.forEach((item, index) => { + item.classList.remove('active'); + if (index === current) { + item.classList.add('active'); + } + }); + }); +} + +// 动画初始化 +function initAnimations() { + // 使用 Intersection Observer 实现滚动动画 + const observerOptions = { + root: null, + rootMargin: '0px', + threshold: 0.1 + }; + + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('fade-in'); + observer.unobserve(entry.target); + } + }); + }, observerOptions); + + // 观察所有需要动画的元素 + const animatedElements = document.querySelectorAll('.card, .expert-intro'); + animatedElements.forEach(el => { + el.style.opacity = '0'; + observer.observe(el); + }); +} + +// 图片懒加载 +function initLazyLoading() { + const images = document.querySelectorAll('img[data-src]'); + + const imageObserver = new IntersectionObserver((entries, observer) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + const img = entry.target; + const src = img.getAttribute('data-src'); + + // 创建新图片对象来预加载 + const tempImg = new Image(); + tempImg.onload = function() { + img.src = src; + img.classList.add('loaded'); + }; + tempImg.onerror = function() { + // 如果图片加载失败,使用钢铁蓝主题占位图 + img.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"%3E%3Crect width="400" height="300" fill="%23f0f4f8"/%3E%3Ctext x="50%25" y="50%25" dominant-baseline="middle" text-anchor="middle" font-family="system-ui" font-size="20" fill="%233b82f6"%3E图片加载中%3C/text%3E%3C/svg%3E'; + img.classList.add('error'); + }; + tempImg.src = src; + + img.removeAttribute('data-src'); + observer.unobserve(img); + } + }); + }); + + images.forEach(img => { + imageObserver.observe(img); + }); +} + +// 平滑滚动 +function initSmoothScroll() { + // 为所有锚点链接添加平滑滚动 + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + const targetId = this.getAttribute('href'); + if (targetId === '#') return; + + const target = document.querySelector(targetId); + if (target) { + target.scrollIntoView({ + behavior: 'smooth', + block: 'start' + }); + } + }); + }); +} + +// 更新统计数据 - PLC机器人系统数据 +function updateStats() { + // 动画数字增长效果 - PLC与机器人联调系统相关数据 + const stats = [ + { selector: '.robot-payload', value: 20, suffix: 'kg' }, + { selector: '.work-radius', value: 1.65, suffix: 'm' }, + { selector: '.io-points', value: 32, suffix: '点' }, + { selector: '.plc-networks', value: 7, suffix: '个' }, + { selector: '.robot-positions', value: 3, suffix: '个' }, + { selector: '.handshake-signals', value: 6, suffix: '个' } + ]; + + stats.forEach(stat => { + const element = document.querySelector(stat.selector); + if (element) { + animateValue(element, 0, stat.value, 2000, stat.suffix); + } + }); +} + +// 数字动画函数 +function animateValue(element, start, end, duration, suffix = '') { + const startTime = performance.now(); + + function update(currentTime) { + const elapsed = currentTime - startTime; + const progress = Math.min(elapsed / duration, 1); + + // 使用缓动函数 + const easeOutQuad = progress * (2 - progress); + let current; + + // 处理小数值(如1.65) + if (end < 10 && end % 1 !== 0) { + current = (start + (end - start) * easeOutQuad).toFixed(2); + } else { + current = Math.floor(start + (end - start) * easeOutQuad); + } + + element.textContent = current + suffix; + + if (progress < 1) { + requestAnimationFrame(update); + } + } + + requestAnimationFrame(update); +} + +// 错误处理 +window.addEventListener('error', function(e) { + if (e.target.tagName === 'IMG') { + console.warn('图片加载失败:', e.target.src); + e.target.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"%3E%3Crect width="400" height="300" fill="%23f0f4f8"/%3E%3Ctext x="50%25" y="50%25" dominant-baseline="middle" text-anchor="middle" font-family="system-ui" font-size="20" fill="%233b82f6"%3E图片暂时无法显示%3C/text%3E%3C/svg%3E'; + e.target.classList.add('error'); + } +}, true); + +// 移动端优化 +if ('ontouchstart' in window) { + document.body.classList.add('touch-device'); + + // 移动端点击优化 + let touchStartTime; + document.addEventListener('touchstart', () => { + touchStartTime = Date.now(); + }); + + document.addEventListener('touchend', (e) => { + const touchEndTime = Date.now(); + if (touchEndTime - touchStartTime < 200) { + // 快速点击 + e.preventDefault(); + } + }); +} + +// 性能监控 +if (window.performance && window.performance.timing) { + window.addEventListener('load', () => { + setTimeout(() => { + const timing = window.performance.timing; + const loadTime = timing.loadEventEnd - timing.navigationStart; + console.log(`页面加载时间: ${loadTime}ms`); + + // 如果加载时间过长,提示用户 + if (loadTime > 3000) { + console.warn('页面加载时间较长,可能需要优化'); + } + }, 0); + }); +} + +// 主题切换功能 +function initThemeToggle() { + const themeToggleBtn = document.getElementById('themeToggleBtn'); + + // 从localStorage读取用户的主题偏好 + const savedTheme = localStorage.getItem('theme'); + // 如果没有保存的偏好,默认使用暗色主题 + if (savedTheme === 'dark' || savedTheme === null) { + document.body.classList.add('dark-theme'); + } + + // 点击切换主题 + if (themeToggleBtn) { + themeToggleBtn.addEventListener('click', () => { + document.body.classList.toggle('dark-theme'); + + // 保存用户偏好 + if (document.body.classList.contains('dark-theme')) { + localStorage.setItem('theme', 'dark'); + } else { + localStorage.setItem('theme', 'light'); + } + + // 重新初始化图标以确保正确显示 + if (typeof lucide !== 'undefined') { + lucide.createIcons(); + } + }); + } +}