Tag: kepserverex

使用node-opcua在Kepserver中创buildvariables

我有一台西门子1200 PLC。 使用node-opcua客户端和Kepserver,我可以读取variables并更改值。 现在我想在KepServer的node-opcua中的PLC中创build一个新的variables。 我试过使用节点opcua服务器,因为在我看到如何创buildvariables的例子,但我得到一个错误,因为我想连接到相同的端口,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) } }); 我怎样才能创build一个新的variables? 并从节点opcua创build一个组标签? 是否有可能在Kepserver中有一个opcua服务器,并创build连接到该服务器的variables直接? 我的Kepserver是在:opc.tcp:// localhost:49320要连接到这个Kepserver我使用nodeopcua客户端: var opcua = […]