You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by Denis Leite <de...@poli.br> on 2021/04/08 17:15:35 UTC
Connection String to S7-300/400
Hello!
We´re performing tests with PLC4x + NiFi but we can´t get it to communicate
to S7300/400.
We have included rack and slot information to communicate with S7-300 but
it didn´t work. The error message is in the attached image.
We tried these:
s7://192.168.1.222/0/2?controller-type=S7_300
s7://192.168.1.222/0/2
This is where we got references:
https://riot.community/examples/http-plc4x.html
https://youtu.be/MIp_0OcDTr4?t=2770
Can someone help us to find out where the problem might be?
Regards,
Denis
[image: WhatsApp Image 2021-04-08 at 13.56.15 (1).jpeg]
AW: Connection String to S7-300/400
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Denis,
if you are using PLC4X 0.7.0 or newer, the connection syntax has changed slightly. You no longer provide Rack and Slot the way you did in 0.6.0 and below.
Please have a look at our documentation for all options:
https://plc4x.apache.org/users/protocols/s7.html
So, in your case it would be:
s7://192.168.1.222?remote-rack=0&remote-slot=2&controller-type=S7_300<http://192.168.1.222/0/2?controller-type=S7_300>
Hope that helps,
Chris
Von: Denis Leite <de...@poli.br>
Gesendet: Donnerstag, 8. April 2021 19:16
An: dev@plc4x.apache.org
Betreff: Connection String to S7-300/400
Hello!
We´re performing tests with PLC4x + NiFi but we can´t get it to communicate to S7300/400.
We have included rack and slot information to communicate with S7-300 but it didn´t work. The error message is in the attached image.
We tried these:
s7://192.168.1.222/0/2?controller-type=S7_300<http://192.168.1.222/0/2?controller-type=S7_300>
s7://192.168.1.222/0/2<http://192.168.1.222/0/2>
This is where we got references:
https://riot.community/examples/http-plc4x.html
https://youtu.be/MIp_0OcDTr4?t=2770
Can someone help us to find out where the problem might be?
Regards,
Denis
[cid:ii_kn94u9dq0]
Re: Connection String to S7-300/400
Posted by Denis Leite <de...@poli.br>.
Hi all.
We got it to work with a string like this s7://
192.168.1.222/0/2?controller-type=S7_300
Probably the block was in an exception caused by a previous wrong
configuration. We restarted nifi and it worked.
We will update the block to the latest version on the first opportunity
(the PC doesn´t have an internet connection).
Regards,
Denis
Em qui., 8 de abr. de 2021 às 14:15, Denis Leite <de...@poli.br>
escreveu:
> Hello!
>
> We´re performing tests with PLC4x + NiFi but we can´t get it to
> communicate to S7300/400.
>
> We have included rack and slot information to communicate with S7-300 but
> it didn´t work. The error message is in the attached image.
>
> We tried these:
> s7://192.168.1.222/0/2?controller-type=S7_300
> s7://192.168.1.222/0/2
>
> This is where we got references:
> https://riot.community/examples/http-plc4x.html
> https://youtu.be/MIp_0OcDTr4?t=2770
>
> Can someone help us to find out where the problem might be?
>
> Regards,
>
> Denis
>
> [image: WhatsApp Image 2021-04-08 at 13.56.15 (1).jpeg]
>
>
--
Dênis Leite
Coordenador da Pós-Graduação em Automação, Controle e Robótica
Docente da Graduação em Eng. de Controle e Automação
Escola Politécnica de Pernambuco (www.poli.br)
Universidade de Pernambuco (www.upe.br)
http://lattes.cnpq.br/4346516801918439
br.linkedin.com/in/denisleite/
+55 81 3184-7500
+55 81 9468-0001