Jim,
To drive you a bit further. You need in your pom.xml file additional
section:
<repositories>
<repository>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/groups/snapshots</url>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
Version for plc4x dependencies in pom must be set to:
<version>0.9.0-SNAPSHOT</version>
More about maven repositories:
https://maven.apache.org/guides/introduction/introduction-to-repositories.html
Best,
Łukasz
On 18.03.2021 22:48, Ben Hutcheson wrote:
> Hi Jim,
>
> I have pushed an update to the develop branch to disable the writing of
> time stamps, if you wouldn’t mind can you try it out?
>
> Kind Regards
>
> Ben
>
> On Thu, Mar 18, 2021 at 5:44 PM Christofer Dutz <[email protected]>
> wrote:
>
>> Hi Jim,
>>
>> the problem you didn't get any responses, is that you are not subscribed
>> to this list.
>> I had to moderate your email to allow it to appear on list.
>>
>> If you want to participate in discussions, please subscribe by sending an
>> empty email to [email protected]
>>
>> Chris
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Wang, Jim <[email protected]>
>> Gesendet: Donnerstag, 18. März 2021 22:23
>> An: [email protected]
>> Betreff: RE: OPCUA Write
>>
>> Hi PLC4X team,
>>
>> I searched online and find your answers to my question.
>> I checked no leading and trialing spaces and used both,
>> ns=2;s="S7PLC".CureAbort:BOOL and ns=2;s="S7PLC"."CureAbort":BOOL formats,
>> I got NOT_FOUND instead of ACCESS_DENIED.
>>
>> It seems my original one is right(my C# app wrote correctly with this),
>> but writing is denied by some unknown reason (in my java app).
>> Is there other check list that I can follow?
>>
>> Thanks,
>> Jim
>>
>>
>> From: Wang, Jim
>> Sent: Thursday, March 11, 2021 09:21
>> To: [email protected]
>> Subject: OPCUA Write
>>
>> Hi PLC4X team,
>>
>> When I use PLC4X's OPCUA protocol to write PLC, I always get ACCESS_DENIED
>> for the PLC's tag (Reading is OK.) I list my code and message I get below
>> in FYI: sections.
>> How can I get rid of this issue?
>> Thanks,
>>
>> Jim
>>
>>
>> FYI: my codes
>> ==================================
>> public static void WritePLC(PlcConnection plcConnection) throws
>> InterruptedException, Exception, TimeoutException {
>> PlcWriteRequest.Builder builder =
>> plcConnection.writeRequestBuilder();
>> builder.addItem("S7PLC.CureAbort", "ns=2;s=
>> S7PLC.CureAbort:BOOL", true);
>> PlcWriteRequest writeRequest = builder.build();
>> PlcWriteResponse response = writeRequest.execute().get();
>> for (String fieldName : response.getFieldNames()) {
>> if(response.getResponseCode(fieldName) ==
>> PlcResponseCode.OK) {
>> System.out.println("Value[" + fieldName + "]:
>> updated");
>> }
>> else {
>> System.out.println("Error[" + fieldName + "]: " +
>> response.getResponseCode(fieldName).name());
>> }
>> }
>> }
>>
>> FYI: the message when I run my codees
>> ======================================
>> opcua:tcp://localhost:49601/
>> [main] INFO org.apache.plc4x.java.PlcDriverManager - Instantiating new PLC
>> Driver Manager with class loader
>> jdk.internal.loader.ClassLoaders$AppClassLoader@443b7951<mailto:
>> jdk.internal.loader.ClassLoaders$AppClassLoader@443b7951>
>> [main] INFO org.apache.plc4x.java.PlcDriverManager - Registering available
>> drivers...
>> [main] INFO org.apache.plc4x.java.PlcDriverManager - Registering driver
>> for Protocol s7 (Siemens S7 (Basic)) [main] INFO
>> org.apache.plc4x.java.PlcDriverManager - Registering driver for Protocol
>> opcua (OPC UA (TCP)) [main] INFO
>> org.apache.plc4x.java.opcua.connection.OpcuaTcpPlcConnection - Configured
>> OpcuaTcpPlcConnection with: host-name 127.0.0.1 [NonceUtilSecureRandom]
>> INFO org.eclipse.milo.opcua.stack.core.util.NonceUtil - SecureRandom seeded
>> in 0ms.
>> [main] INFO org.eclipse.milo.opcua.sdk.client.OpcUaClient - Eclipse Milo
>> OPC UA Stack version: 0.5.3 [main] INFO
>> org.eclipse.milo.opcua.sdk.client.OpcUaClient - Eclipse Milo OPC UA Client
>> SDK version: 0.5.3
>> Error[S7PLC.CureAbort]: ACCESS_DENIED
>> Find West on Twitter <http://twitter.com/#!/WestPharma> and LinkedIn<
>> http://www.linkedin.com/company/west-pharmaceutical-services?trk=fc_badge
>>> .
>>
>> ________________________________
>> The contents of this message are confidential and may be privileged. If
>> you have received this message in error, please permanently delete it,
>> along with any files that may be attached to this message, without reading,
>> printing, copying, forwarding or otherwise distributing it. Please notify
>> the sender of the error immediately so that we can prevent it from
>> happening again.
>>
>>
>