plc4x-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From udeho <>
Subject PlcConnectionException
Date Mon, 11 May 2020 07:55:35 GMT
Dear PLC4X-Community,

I tried to do my first steps with modbus in PLC4X using the modbus simulator referenced in
your getting-started guide.
Following your instructions, I executed the following code to establish a connection:

public static void main(String [] args) {

                               String conString = "modbus://localhost";

                               try(PlcConnection plcCon = new

                                               System.out.println("Hello Modbus");

                               catch (Exception e) {

Unfortunately, I get the following error: Connection url doesn't match
the format 'modbus:{type}//{port|host}'
at plc4x.playground.main(

Could you please give me a hint what I'm doing wrong or what is missing?
As far as I can see, I did it the same way you proposed in your virtual modbus section.

Thanks a lot!

Best regards

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message