milo

How to correctly work with ExtensionObject and Struct in milo opc ua

ε祈祈猫儿з 提交于 2021-01-07 01:31:24
问题 I would like to ask how should I work correctly with Struct when I am trying to read some object from opc ua server. I went trough this example and I was able to read the data. But right now I don't know how to correctly read them. Let's imagine I am reading some datastructure including two arrays for x and y values. I tried to do something like this: Float[] x = (Float[])struct.getMember("x").getValue() Float[] y = (Float[])struct.getMember("y").getValue() but I receive exception "Cannot

Eclipse Milo: Reading and decoding a custom data type node from a Simatic S7-1500

淺唱寂寞╮ 提交于 2020-12-15 04:24:46
问题 The problem and what I suspect goes wrong: I am trying to read a custom data type node from a Siemens Simatic S7-1500 and decoding fails with: Error running client example: max string length exceeded (length=1819042152, max=2097152) org.eclipse.milo.opcua.stack.core.UaSerializationException: max string length exceeded (length=1819042152, max=2097152) What I did so far: First of all, I've read and tried out the ReadWriteCustomDataTypeNodeExample from the client examples module. I've basically

Eclipse Milo: Reading and decoding a custom data type node from a Simatic S7-1500

余生颓废 提交于 2020-12-15 04:20:31
问题 The problem and what I suspect goes wrong: I am trying to read a custom data type node from a Siemens Simatic S7-1500 and decoding fails with: Error running client example: max string length exceeded (length=1819042152, max=2097152) org.eclipse.milo.opcua.stack.core.UaSerializationException: max string length exceeded (length=1819042152, max=2097152) What I did so far: First of all, I've read and tried out the ReadWriteCustomDataTypeNodeExample from the client examples module. I've basically

Eclipse Milo: Reading and decoding a custom data type node from a Simatic S7-1500

时间秒杀一切 提交于 2020-12-15 04:16:27
问题 The problem and what I suspect goes wrong: I am trying to read a custom data type node from a Siemens Simatic S7-1500 and decoding fails with: Error running client example: max string length exceeded (length=1819042152, max=2097152) org.eclipse.milo.opcua.stack.core.UaSerializationException: max string length exceeded (length=1819042152, max=2097152) What I did so far: First of all, I've read and tried out the ReadWriteCustomDataTypeNodeExample from the client examples module. I've basically

Configuration OPC UA Server (Milo)?

谁说我不能喝 提交于 2020-01-23 02:52:05
问题 I've just checked out the Eclipse Milo Project (https://projects.eclipse.org/proposals/milo), which seems to be a great project for an "open" OPC UA Client/Server even with the implemented OPC Stack. The project on github (https://github.com/eclipse/milo) contains a Hello World example, where an OPC Server is started and an example node is sent and received from the client. Everything works fine! But in my next step, I wanted to check if the server is configured correctly. Therefore I've

Milo OPC UA Server with Historical Data Access

ⅰ亾dé卋堺 提交于 2020-01-03 04:19:04
问题 Hy, I’m new to milo (and OPC-UA) and try to implement an OPC-UA server with Historical Data Access. I reused the current milo server example and create a history node. On this node I can query (with the Prosys OPC UA Client) the empty history. I know that I have to implement the persistency of the history nodes by myself. So far so good – but I could not found any information about to handle the history read request and how to return the response. More precisely how to add the HistoryData to

Understanding OPC-UA Security using Eclipse Milo

北战南征 提交于 2019-12-18 13:39:11
问题 I am new to this OPC-UA world and Eclipse Milo. I do not understand how the security works here, Discussing about client-example provided by eclipse-milo I see few properties of security being used to connect to the OPCUA Server: SecurityPolicy, MessageSecurityMode, clientCertificate, clientKeyPair, setIdentityProvider, How the above configurations are linked with each other? I was trying to run client-examples -> BrowseNodeExample. This example internally runs the ExampleServer.

milo:Bad_SessionIdInvalid, The session id is not valid

风格不统一 提交于 2019-12-11 14:23:00
问题 I am getting a "The session id is not valid." exception when reading the value of a node ,but just sometimes,I konw the session is not timeout,so why? the exception : java.util.concurrent.ExecutionException: UaServiceFaultException: status=Bad_SessionIdInvalid, message=The session id is not valid. at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999) at com.ggnykj.smartems

Milo OPC Server tries to connect to wrong URI

喜你入骨 提交于 2019-12-11 14:12:35
问题 I tried to run an example server from Milo OPC repository, and I put as endpoint the ip of the PLC. In the device, the name of the device is "MI_027859". 19:18:36.748 [main] WARN o.e.m.o.stack.core.util.EndpointUtil - Endpoint URL 'Illegal character in hostname at index 12: opc.tcp://MI_027859:12686/MI_027859' is not a valid URI: {} java.net.URISyntaxException: Illegal character in hostname at index 12: opc.tcp://MI_027859:12686/MI_027859 at java.net.URI$Parser.fail(URI.java:2848) at java.net