Hi, let me jump in here ;)
I know with strings there are currently issues. Especially with smaller S7 devices (which have smaller PDU Sizes). The problem here is, that the default length of one string already exceeds the PDU size of the S7 1200 devices I have. So, you always must provide a max string length. As soon as you do that, strings are unfortunately handled slightly differently. To support normal strings with their full length, the Query optimizer in S7 would need to be extended with the ability to split up individual items into multiple parts. This is something I haven't done yet. To support normal strings on larger S7 devices (Where the PDU Size allows fitting them into the request), we probably need more testing and for that I would at least need access to such a device. LREAL is unfortunately not supported on the S7-1200 devices that I have, and therefore I could never really test that. Same with the Time datatypes. So, all in all, I thank you for your list of things we need to improve. I promise that we will work on this. However, I can't give you an ETA on which I personally will be able to work on this, as I'm currently working on other things. Perhaps someone in the community can jump in. Or even you might be interested in helping. If you think you are able to do that, I am more than willing to help mentor you. Chris -----Original Message----- From: Markus Franke <markus.fra...@sql-ag.de> Sent: Dienstag, 30. November 2021 09:34 To: dev@plc4x.apache.org Subject: AW: Supported Datatypes for S7-1200 with PLC4J Hi Cesar, so far my experiences are as follows: datatype read write ========================= BOOL ok ok BYTE ok ok(only bitwise) WORD ok ok(only bitwise) DWORD ok ok(only bitwise) SINT ok ok USINT ok ok INT ok ok UINT ok ok DINT ok ok UDINT ok ok REAL ok ok LREAL nok nok CHAR ok nok WCHAR ok nok STRING nok nok WSTRING nok nok TIME ok nok DATE ok nok TIME_OF_DAY ok nok So it seems like writing is currently unsupported for quite a few datatypes. Also reading (W)STRING and LREAL seems to be an issue currently. Any comments on this? Thanks in advance, Markus ________________________________ Von: Cesar Garcia <cesar.gar...@ceos.com.ve> Gesendet: Montag, 29. November 2021 17:38 An: Apache PLC4X <dev@plc4x.apache.org> Betreff: Re: Supported Datatypes for S7-1200 with PLC4J Hi Markus, Can you put an example of the required formats? Best regards, El lun, 29 nov 2021 a las 11:27, Markus Franke (<markus.fra...@sql-ag.de>) escribió: > Dear all, > > I am currently connecting to a S7-1200 by using PLC4J 0.9.0. > > As I have problems with reading/writing certain datatypes from a > datablock, I was wondering whether there are currently any restriction > what kind of datatypes are actually supported for reading/writing with > this hardware setup? > > Thanks and best regards, > Markus > -- *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>*