OPC UA 到 Google Sheets:免费开源连接器

免费开源

10 分钟把设备数据放进表格

opcua-to-sheets 从任何 OPC UA 服务器读取变量,写入 Google 表格,每台设备一个工作表。只读、MIT 许可、无遥测。

只读:从不写入您的 PLCMIT 许可无遥测Node.js 22.13+
在 GitHub 获取获取 OEE 入门表格
$ opcua-to-sheets run --config config.yaml [Press 01] Timestamp | Status | Running | PartCounter [Press 01] 2026-11-02 06:00:00 | ok | true | 12840 [Press 01] 2026-11-02 06:00:10 | ok | true | 12846

快速开始

在工厂网络中的一台电脑或树莓派上执行五条命令。

  1. 1
    安装并找到变量安装工具,然后列出每个变量及其需要复制的 node ID。npm install -g github:TEEPTRAKCOM/opcua-to-sheets opcua-to-sheets browse opc.tcp://192.168.0.10:4840
  2. 2
    编写配置服务器地址、变量以及要写入的 Google 表格。opcua-to-sheets init config.yaml
  3. 3
    不连 Google 先测试在屏幕上显示数据行。如果正确,PLC 一侧就没问题。opcua-to-sheets run --config config.yaml --dry-run
  4. 4
    连接表格创建 Google 服务账号,并以编辑者身份共享表格给它。sheet: spreadsheetId: "<ID from the sheet URL>" credentials: "./service-account.json"
  5. 5
    运行每台设备写入各自的工作表,断线后也会继续记录。opcua-to-sheets run --config config.yaml

兼容

Siemens S7-1500Beckhoff TwinCAT 3KEPServerEX (Rockwell, …)IgnitionOPC UA

不同品牌的 node ID 不同。browse 命令会显示您的。

OEE 入门表格

连接器提供原始数据。这个表格按班次计算可用率、性能、质量和 OEE,并附停机原因帕累托图。免费。

您的信息只发送给您所在区域的 TEEPTRAK 合作伙伴负责人。不会订阅任何邮件。

这是您的入门表格

打开后选择 文件 > 创建副本。在 config.yaml 中把设备命名为 "Raw data",连接器就会直接填写这个表格。打开入门表格

表格的局限

每分钟约 50 次写入Google Sheets API 每个用户每分钟允许 60 次写入请求。一条产线够用,整个工厂就很紧张。
没有班次,没有停机原因PLC 变量只能说明产线停了,不能说明原因。原因要由操作工在当下记录。
没有人收到报警产线停了十分钟,表格也不会通知任何人。

不够用时:TEEPTRAK

TEEPTRAK 实时测量每台设备、每个班次的 OEE,停机原因由操作工在车间现场录入。全球 30 多个国家的 700 多家工厂在使用。了解 TEEPTRAK

工程师:推荐 TEEPTRAK 并获得报酬

您知道哪些工厂需要的不只是一张表格。以推荐人(Business Introducer)身份加入合作伙伴计划:登记工厂,我们为您的推荐保护 150 天,签约后您即可获得报酬。具体条款以您的协议为准。成为推荐人

工程师常问的问题

它会修改我的 PLC 吗?不会。它只执行 OPC UA 读取操作。如果服务器支持用户管理,请使用只读的 OPC UA 用户。
它会把数据发给 TEEPTRAK 吗?不会。没有任何遥测。数据只写入您选择的 Google 表格。
支持哪些服务器?任何 OPC UA 服务器:西门子 S7-1500 内置服务器、倍福 TwinCAT TF6100、用于罗克韦尔等品牌的 KEPServerEX、Ignition 等。
要多少钱?免费。MIT 许可:可以使用、修改和分发。
TEEPTRAK PartnersTEEPTRAK 合作伙伴计划。实时 OEE,覆盖 30 多个国家的 700 多家工厂。

OPC UA 是 OPC 基金会的规范。本项目与 OPC 基金会、Google、西门子、倍福、罗克韦尔自动化或 PTC 无关联,也未获其认可。

成功案例

PerfTrak 部署的真实成果——自 2016 年以来已装备 700 多家工厂。

MATERIALSROI < 1 month
47% → 72%
OEE in 3 months
Rubber processing — automotive & aerospace supplier

Understanding the major performance losses made PerfTrak profitable within three months.

ELECTRONICSROI < 1 year
+29%
output per hour
Wire-crimping line

Reliable downtime data turned months of stalled improvement into measurable gains.

客户之声“We noted a 29% increase in production volume of pieces per hour after installing PerfTrak on a single machine — more than €19k/year on this item.”C.M. Ropiot, Production & Maintenance Manager
OPTICSROI < 1 month
75% → 85%
OEE, +10 points
World leader in corrective lenses (China)

Format-changeover times are now timed and cut; the solution is deployed across several plants.

AUTOMOTIVEROI < 1 year
90 machines
connected in weeks
PSA Caen

40 real-time dashboards installed; local teams trained in 3 days to deploy the rest autonomously.

客户之声“The PerfTrak systems are already cost-effective given the time freed up for operators, now focused on value-added tasks rather than data collection.”Christophe Pasquet, Factory of the Future, PSA Caen
FOODROI < 1 month
22 + 7
PerfTrak + MoniTrak units
Nutriset

Fighting malnutrition since 2016 — manual reporting replaced, productivity up, costs stabilised.

客户之声“The ROI at Nutriset has been very rapid — we eliminated the small 3–4 second downtimes that happen fifty or a hundred times a day.”Sylvain Clausse, Maintenance & Automation, Nutriset

合作伙伴的信赖

由咨询公司、集成商和工程公司组成的不断壮大的网络,在全球工厂部署:TEEPTRAK。