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

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

Hi,[~cdutz], Thank you very much for your reply. this afternoon, I have used 
"BYTE",but failed. so I try to use bit.  in the website 
"https://plc4x.apache.org/users/protocols/s7.html"; show the "SINT" only supply 
for S1200 and S1500.  anyway.  I will try "SINT" tommorrow. 
Another question, i do not know.  a string length is String 2 + n bytes. 
for example I have a 8 length string address in plc as %DB881.DBX912:STRING(8) 
, it has 10 bytes. as    %DB881.DBW912..... %DB881.DBW921 right?
the fist byte I must write the integer 8, 
the sencond byte is the integer x is the real length,for the string
from the third to ten byte  is convert specific letters to byte
is it right?[~cdutz], If I am wrong, could you point it out?
Thank you very much [~cdutz][~cgarcia]

> 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