Error Reading Modbus TCP Meter

2020-08-12 Thread Syed Kefayath
Hi Everyone, I am using a plc4x modbus driver to read data from a modbus device but i am left with an exception. But while reading data from the ModbusPal virtual device I am getting the output. The java code and the error message is given below. I need help from this community to complete my

Re: Supporting different layers of protocols depending on the used transport

2020-08-12 Thread Christofer Dutz
After a little discussion with Julian we realized we need a little more: First of all using fixed classes to decide which branch to use makes it impossible to test using the embedded channel. Using a "transportFamily" property which each transport provides, makes this possible. Also do we

Supporting different layers of protocols depending on the used transport

2020-08-12 Thread Christofer Dutz
Hi all, taking this back to the list as I think it belongs here. While working on the ADS driver I noticed that we might have the need to pack a given protocol in different transport protocols, depending on the used transport. For ADS it has to either wrap the AMSPacket in a AmsTCPPacket if

Re: Error Reading Modbus TCP Meter

2020-08-12 Thread Christofer Dutz
Hi Syed, could you please create a wireshark dump of both the not working and the working version and attach both to a jira issue? I am expecting Modbus to have the greatest variance in implementations so I think we might need to dig a little deeper here. Chris Von: Syed Kefayath Datum:

Re: Error Reading Modbus TCP Meter

2020-08-12 Thread Adam Rossi
The code you posted is reading register 4001 on slave ID 2. There are different conventions as to addressing registers, sometimes the 4XXX is not used, and sometimes the register is 1 less than published. Also verify you really want slave ID 2. Usually you want 0 or 1. If you want address

[jira] [Created] (PLC4X-225) [code-generation] make it possible to put expressions in switch conditions

2020-08-12 Thread Christofer Dutz (Jira)
Christofer Dutz created PLC4X-225: - Summary: [code-generation] make it possible to put expressions in switch conditions Key: PLC4X-225 URL: https://issues.apache.org/jira/browse/PLC4X-225 Project:

[jira] [Created] (PLC4X-229) CLONE - CLONE - CLONE - Lena Slaughter

2020-08-12 Thread Hannah Zacharski (Jira)
Hannah Zacharski created PLC4X-229: -- Summary: CLONE - CLONE - CLONE - Lena Slaughter Key: PLC4X-229 URL: https://issues.apache.org/jira/browse/PLC4X-229 Project: Apache PLC4X Issue Type:

[jira] [Created] (PLC4X-230) CLONE - CLONE - CLONE - CLONE - Lena Slaughter

2020-08-12 Thread Hannah Zacharski (Jira)
Hannah Zacharski created PLC4X-230: -- Summary: CLONE - CLONE - CLONE - CLONE - Lena Slaughter Key: PLC4X-230 URL: https://issues.apache.org/jira/browse/PLC4X-230 Project: Apache PLC4X Issue

[jira] [Created] (PLC4X-228) CLONE - CLONE - Lena Slaughter

2020-08-12 Thread Hannah Zacharski (Jira)
Hannah Zacharski created PLC4X-228: -- Summary: CLONE - CLONE - Lena Slaughter Key: PLC4X-228 URL: https://issues.apache.org/jira/browse/PLC4X-228 Project: Apache PLC4X Issue Type:

[jira] [Created] (PLC4X-227) CLONE - Lena Slaughter

2020-08-12 Thread Hannah Zacharski (Jira)
Hannah Zacharski created PLC4X-227: -- Summary: CLONE - Lena Slaughter Key: PLC4X-227 URL: https://issues.apache.org/jira/browse/PLC4X-227 Project: Apache PLC4X Issue Type: Improvement

Re: Beer, Python and PLC4X

2020-08-12 Thread Lukas Ott
Hi Python-developers, You ll find the result of our discussion here: https://docs.google.com/presentation/d/17u5QBiN-gwonIftJDqApMIcNY_-SKXCPIph3JdW_rP0 Thank you Chris and Otto for the nice

[jira] [Created] (PLC4X-226) Lena Slaughter

2020-08-12 Thread Hannah Zacharski (Jira)
Hannah Zacharski created PLC4X-226: -- Summary: Lena Slaughter Key: PLC4X-226 URL: https://issues.apache.org/jira/browse/PLC4X-226 Project: Apache PLC4X Issue Type: Improvement