问题标签 [scada-ignition]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
219 浏览

ignition - 如何在 SCADA 点火系统的线性刻度组件中添加指标值

我使用了Linear Scale ComponentIgnition 7.8 来显示这样的燃料水平:

在此处输入图像描述

我想以相同的比例表示燃料的当前值。但是当我浏览 的属性时Linear Scale Component,我找不到任何类似于ValueTextNumber或类似的属性。

如何Value在其中显示?

0 投票
1 回答
792 浏览

python - 使用 Python/Jython 脚本在 Ignition 中动态显示 GUI 组件

目前,我在一些主窗口中展示了一些用户定义的 GUI 组件(模板)(让我们给它一个名字:signal )。这些 GUI 组件分布在窗口周围,数量很多(每个窗口 > 50 个),我有多个这样的窗口。

在此处输入图像描述

我已经使用 Ignition GUI 创建了所有这些窗口,到目前为止它们已经完成......但是......现在,需要使 GUI 窗口中显示的任何信号都显示在 GUI 列表中。

在此处输入图像描述

我的问题是:

  1. 如何使用Ignition Python/JythonScript获取相同类型(信号)的GUI组件(模板)列表?
  2. 如何获取其自定义属性(如customDisplayName
  3. 如何动态绘制 GUI 组件(模板)?

到目前为止,我可以在用于显示信号模板的容器列表中拖放组件(制作显示信号的精确副本)。但由于可以在 GUI 中添加新信号,因此我正在寻找更自动化的解决方案(如果有的话)。

0 投票
3 回答
609 浏览

raspberry-pi - 如何使用树莓派监控设备状态

我想建立一个小项目来监控一些设备(泵,交流等)状态(开/关,电流/电压等)。我决定使用树莓派 3 作为服务器。我在考虑斯卡达。做这些工作效率高吗?我对scada也不熟悉。有没有人指导我——

0 投票
1 回答
102 浏览

ignition - 如何避免标签和 UDT 中的参数引用/替换

我想在内存标签中放入一个简短的 JSON 字符串,但由于 JSON 中的 { 启动参数替换而出现错误:“错误扩展标签中的潜在参数引用”。我尝试了一些简单的转义符,例如 \{、\\{ 和 {{,不高兴。

如何在标签中关闭它?

0 投票
1 回答
846 浏览

ignition - Ignition 动态页面创建绑定标签到 UDT

Ignition 的新手,我想了解如何动态创建包含绑定到 UDT 的模板的 Windows 页面。

我创建了一个名为 TGBT 的模板,它有 4 个参数: -DeviceName (string) -TagBlock (string) -TagOffset (string) -TgbtNr (TGBT, drop target)

我使用相同的数据类型参数创建了一个名为 TGBT 的 UDT,并使用 OPC 项目路径 [{DeviceName}]{TagBlock},I{TagOffset} 在数据类型结构中添加了新 OPC

然后我创建了带有添加 hoc 值的 UDT 实例:当我使用 Ignition Designer 创建页面时,这很好用

我创建了一个读取 CSV 文件的脚本(最后将是数据库)并相应地创建 UDT 实例:它工作正常,我可以在标签浏览器中看到更新的 OPC 值,以及预期的 OPC 项目路径。

我了解模板画布是建议的方式并填充了模板数据集。该脚本使用提供的参数填充模板,例如:{"DeviceName":Elec,"TagBlock":DB200,"TagOffset":48}

模板实例正确放置在模板画布中,但我的参数应该是错误的,因为模板字段、标签 (...) 没有相应更新。

有人试过这个,可以帮助我吗?

泽维尔

0 投票
1 回答
555 浏览

plc - 点火 OPC UA 连接失败

停电后,设备上的 OPC-UA 服务器出现错误。

连接错误:隐藏详细信息 java.lang.Exception:连接期间出错。com.inductiveautomation.xopc.driver.api.AbstractIODelegatingDriver.connect(AbstractIODelegatingDriver.java:591) 等。

一些想法?

这里有一些有问题的标签:

在此处输入图像描述

0 投票
1 回答
314 浏览

python - Python 中的字符串与 \r\n 不呈现 SCADA 标记中的回车换行符

我有一个 python 脚本,我在其中一次构建一个字符串。我在字符串的每一行末尾添加了“\r\n”,最后一行除外。该字符串被写入 Ignition SCADA 中的标签。当我检查标签的内容时,'\r\n' 应该已经创建了回车/换行符,我只有一个空格('')。

知道为什么会这样,以及我能做些什么来让字符串正确格式化吗?

谢谢!

编辑:这是代码:

0 投票
1 回答
46 浏览

ignition - 在 Ignition 中查找原始标签的 Max 和 Stdev

我有原始标签:

要求是:

a) 用户输入小时。b)根据小时数,我在这些小时内得到“Max”值,在给定时间段内得到“St Dev”值。

请看图片: 期望的结果

数据库存储为以下模式:

数据库架构

0 投票
1 回答
168 浏览

ignition - 为什么生产模块在点火 8.0 时不显示?

我最近安装了带有演示版的点火 8.0。在这个软件中,我无法在项目浏览器下看到生产模块。知道如何启用此模块。

问候, 达穆

0 投票
1 回答
38 浏览

mysql - Trying to make a pingpong stat tracking database with a stored procedure

I'm using a stored procedure to (try to) write to 3 different tables in MYsql to track ping-pong data and show cool statistics.

So I'm a complete noob to MySQL (and StackOverflow) and haven't really done any sort of database language before so all of this is pretty new to me. I'm trying to make a stored procedure that writes ping-pong stats that come from Ignition(I'm fairly certain that Ignition isn't the problem. It's telling me the writes failed so I think it's a problem with my stored procedure).

I currently have one stored procedure that writes to the players table and can add wins, losses, and total games played when a button is pressed. My problem now is that I want to add statistics where I can track the score and who played against who so I could make graphs and stuff.

This stored procedure is supposed to search through the pingpong table to find if the names passed have played against each other before so I can find the corresponding MatchID. If the players haven't played before, then it should create a new row with a new MatchID(This is the key so it should be unique every time). Once I have the MatchID, I can then figure out how many games the players have played against each other before, what the score was, and who beat who and stuff like that.

Here's what I've written and MySQL says it's fine, but obviously it's not working. I know it's not completely finished but I really need some guidance since this is my second time doing anything with MySQL or and database language for that matter and I don't think this should be failing when I test any sort of write.

Here are what my tables currently look like: