标签: kepserverex

使用node-opcua在Kepserver中创建变量

我有一台西门子1200 PLC.使用node-opcua客户端和Kepserver我能够读取变量并更改值.现在我想在KepServer中从node-opcua在PLC中创建一个新变量. 在此输入图像描述

我曾尝试使用node-opcua服务器,因为在示例中我已经看到了如何创建变量,但是我收到错误,因为我正在尝试连接到KepServer所执行的相同端口.

var server = new opcua.OPCUAServer({
    port: 49320, // the port of the listening socket of the server
    resourcePath: "", // this path will be added to the endpoint resource name
     buildInfo : {
        productName: "MySampleServer1",
        buildNumber: "7658",
        buildDate: new Date(2014,5,2)
    }
});
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

我怎么处理创建一个新变量?并从node-opcua创建一个组标签?

是否可以在Kepserver中安装opcua服务器并创建直接连接到该服务器的变量?我的Kepserver位于:opc.tcp:// localhost:49320要连接到此Kepserver,我使用nodeopcua客户端:

var opcua = require("node-opcua");
var client = new opcua.OPCUAClient();
var endpointUrl = "opc.tcp://127.0.0.1:49320";
var the_session = null;
async.series([


    // step 1 : connect to
    function(callback)  {

        client.connect(endpointUrl,function (err) {

            if(err) …
Run Code Online (Sandbox Code Playgroud)

node.js kepserverex node-opcua

18
推荐指数
1
解决办法
1215
查看次数

PLC未连接到KEP服务器(OPC)

我们无法让PLC与KEPServerEX(OPC)可靠连接.

我想知道SOF的其他人是否有使用PLC和OPC的经验.如果是这样,他们有任何关于与我们的OPC服务器建立可靠连接的提示.我们目前使用KEPServerEX作为我们的OPC,但如果有人知道更好的程序使用,我们愿意接受建议.

plc opc kepserverex

3
推荐指数
1
解决办法
2597
查看次数

标签 统计

kepserverex ×2

node-opcua ×1

node.js ×1

opc ×1

plc ×1