You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "César García (Jira)" <ji...@apache.org> on 2022/06/22 02:18:00 UTC

[jira] [Commented] (PLC4X-347) org.apache.plc4x.java.s7.readwrite.field.S7Field cannot be cast to org.apache.plc4x.java.s7.readwrite.field.S7SubscriptionField

    [ https://issues.apache.org/jira/browse/PLC4X-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17557188#comment-17557188 ] 

César García commented on PLC4X-347:
------------------------------------

Hello,

The subscription model only works with S7-300 and S7-400 CPUs.

The S7-1200 and S7-1500 devices only support PUT/GET, which requires cyclical requests.

In [1], you will find an example for S7-300/S7-400 which may be useful to you.

Please tell us the CPU model and connection URL.

1. https://github.com/glcj/PLC4XS7Examples/blob/master/src/main/java/com/ceos/merlot/s7/PLCItemSubscription.java

> org.apache.plc4x.java.s7.readwrite.field.S7Field cannot be cast to org.apache.plc4x.java.s7.readwrite.field.S7SubscriptionField
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PLC4X-347
>                 URL: https://issues.apache.org/jira/browse/PLC4X-347
>             Project: Apache PLC4X
>          Issue Type: Bug
>          Components: PLC4J
>    Affects Versions: 0.9.1
>            Reporter: sang jiexun
>            Priority: Major
>              Labels: plc4x
>             Fix For: 0.9.1
>
>         Attachments: image-2022-06-22-08-42-41-699.png, image-2022-06-22-08-43-54-671.png, image-2022-06-22-08-44-30-817.png, image-2022-06-22-08-47-05-461.png
>
>
>  
>  
> !image-2022-06-22-08-43-54-671.png|width=767,height=598!
> !image-2022-06-22-08-44-30-817.png|width=638,height=134!
> !image-2022-06-22-08-47-05-461.png|width=1369,height=633!
>  
> !image-2022-06-22-08-42-41-699.png!
> h1.  
> h1. {color:#ff8b00}*Dear developer, how can I fix this problem?*{color}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)