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

liuqiang commented on PLC4X-337:
--------------------------------

Hi,[~cgarcia],[~cdutz], I found that the bool array can write success to plc by 
plc4j.  Now I want convert the string address %DB881.DBW912:STRING(8) to bool 
array address as follow, I can write success, but there is no value in the plc. 
 could you give me some suggest? the code as attached  !screenshot-1.png! 
            builder.addItem("SOMECHAR", "%DB881.DBW912.0:INT", 8);
            builder.addItem("SOMECHAR", "%DB881.DBW913.0:INT", 6);
            builder.addItem("SOMECHAR", "%DB881.DBX914.0:BOOL[8]", A.to);
            builder.addItem("SOMECHAR", "%DB881.DBX915.0:BOOL[8]", test);
            builder.addItem("SOMECHAR", "%DB881.DBX916.0:BOOL[8]", test);
            builder.addItem("SOMECHAR", "%DB881.DBX917.0:BOOL[8]", test);
            builder.addItem("SOMECHAR", "%DB881.DBX918.0:BOOL[8]", test);
            builder.addItem("SOMECHAR", "%DB881.DBX919.0:BOOL[8]", test);

> S7 CAN NOT WIRTE STRING EVEN THE STRING SIZE IS LESS THEN 240
> -------------------------------------------------------------
>
>                 Key: PLC4X-337
>                 URL: https://issues.apache.org/jira/browse/PLC4X-337
>             Project: Apache PLC4X
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: liuqiang
>            Priority: Major
>         Attachments: WRITING-STRING-TO-S7-400.pcapng, 
> image-2022-02-26-11-07-37-602.png, my test program .png, screenshot-1.png
>
>
> Hi, [~cdutz].  now I want  write string to s7-400 plc ,the tag address format 
> as follow. but I can not success to do this. the string size is less 245, 
> only 32. can you give me some suggest. thank you very much. looking forward 
> to your replay... thank you very much again.
> %DB881.DBX912:STRING(8)[1]
> %DB881.DBX922:STRING(32)[1]
> %DB881.DBX956:STRING(32)[1]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to