Hello, Willem, a pleasure to greet you,

To help me with the details, Can  you place the code that you are using for
the subscription?.

I will test it with a S7-400 CPU, so I will need the model and firmware
version of your CPU in order to keep track.

Grateful for your support.

El dom, 20 nov 2022 a las 18:37, Willem Remie (<w.re...@remsol.nl>)
escribió:

> Hi,
>
> Although HelloPlc4xRead runs fine connected to an S7-300 the subscription
> example fails with following exception
>
> Exception in thread "main" java.lang.ClassCastException: class
> org.apache.plc4x.java.s7.readwrite.tag.S7Tag cannot be cast to class
> org.apache.plc4x.java.s7.readwrite.tag.S7SubscriptionTag
> (org.apache.plc4x.java.s7.readwrite.tag.S7Tag and
> org.apache.plc4x.java.s7.readwrite.tag.S7SubscriptionTag are in unnamed
> module of loader 'app')
>                at
> org.apache.plc4x.java.s7.readwrite.protocol.S7ProtocolLogic.subscribe(S7ProtocolLogic.java:340)
>                at
> org.apache.plc4x.java.spi.optimizer.BaseOptimizer.lambda$optimizedSubscribe$4(BaseOptimizer.java:120)
>                at
> org.apache.plc4x.java.spi.optimizer.BaseOptimizer.send(BaseOptimizer.java:138)
>                at
> org.apache.plc4x.java.spi.optimizer.BaseOptimizer.optimizedSubscribe(BaseOptimizer.java:120)
>                at
> org.apache.plc4x.java.spi.connection.AbstractPlcConnection.subscribe(AbstractPlcConnection.java:183)
>                at
> org.apache.plc4x.java.spi.messages.DefaultPlcSubscriptionRequest.execute(DefaultPlcSubscriptionRequest.java:65)
>                at
> org.apache.plc4x.java.examples.helloplc4x.subscribe.HelloPlc4xSubscription.run(HelloPlc4xSubscription.java:63)
>                at
> org.apache.plc4x.java.examples.helloplc4x.subscribe.HelloPlc4xSubscription.main(HelloPlc4xSubscription.java:98)
>
> I’m having this issue for both develop as 0.10 branch. Just sending this
> for the record, I will try to debug later but if someone has a suggestion
> please let me know.
>
> Regards,
> Willem
>


-- 
*CEOS Automatización, C.A.*
*GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,*
*PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR GUAMACHITO,*

*FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO. ANZOATEGUI*
*Ing. César García*

*Cel: +58 414-760.98.95*

*Hotline Técnica SIEMENS: 0800 1005080*

*Email: support.aan.automat...@siemens.com
<support.aan.automat...@siemens.com>*

Reply via email to