Dear plc4x forum, I have found a possible problem in reading an array of INT. I am using the HelloPlc4x app for testing and I am trying to read the field address: |'%DB1:274.0:INT[3]'|
In the request, captured via wireShark I can see the query: |Frame 3: 75 bytes on wire (600 bits), 75 bytes captured (600 bits) on interface utun2, id 0 Null/Loopback Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.1.192 Transmission Control Protocol, Src Port: 54543, Dst Port: 102, Seq: 1, Ack: 1, Len: 31 TPKT, Version: 3, Length: 31 ISO 8073/X.224 COTP Connection-Oriented Transport Protocol S7 Communication Header: (Job) Parameter: (Read Var) Function: Read Var (0x04) Item count: 1 Item [1]: (DB 1.DBX 274.0 INT 3) Variable specification: 0x12 Length of following address specification: 10 Syntax Id: S7ANY (0x10) Transport size: INT (5) Length: 3 DB number: 1 Area: Data blocks (DB) (0x84) Address: 0x000890 | and the response: |Frame 4: 75 bytes on wire (600 bits), 75 bytes captured (600 bits) on interface utun2, id 0 Null/Loopback Internet Protocol Version 4, Src: 192.168.1.192, Dst: 192.168.100.4 Transmission Control Protocol, Src Port: 102, Dst Port: 54543, Seq: 1, Ack: 32, Len: 31 TPKT, Version: 3, Length: 31 ISO 8073/X.224 COTP Connection-Oriented Transport Protocol S7 Communication Header: (Ack_Data) Parameter: (Read Var) Function: Read Var (0x04) Item count: 1 Data Item [1]: (Success) Return code: Success (0xff) Transport size: INTEGER (0x05) Length: 6 Data: 000a000b000c | The 3 INT I would like to read are there: |000a|, |000b|, |000c| but in the response of: |PlcReadResponse syncResponse = readRequest.execute().get(); | only the first one is present. I read in jira that there was a similar bug here PLC4X-57 <https://issues.apache.org/jira/browse/PLC4X-57>, is this the same problem? Thanks for your help. Regards, Steafano Bossi
signature.asc
Description: OpenPGP digital signature