You are not logged in.
Pages: 1
Topic closed
Hi, I'd like to use Modbus to communicate with S7-1200 instead of S7Drv, which is a great driver, but inconvinient for fast processes (2ms sampling period) as it causes 8ms delay on the line in our case even if configured as fast as possible.
Is it possible to talk to PLC via Modbus at all?
S7 block needs specification of so called CONNECT_ID both on MB_server and MB_slave.
Does any of REX modbus configuration parameters match CONNECT_ID?
Here are the screenshots of PLC project:
[https://www.rexcontrols.cz/forum/img/members/155/5.png]
[https://www.rexcontrols.cz/forum/img/members/155/1.png]
[https://www.rexcontrols.cz/forum/img/members/155/3.png]
Thx, Stepan
Offline
Hi Stepan,
Modbus TCP communication with S7 PLCs is definitely possible. Make sure to use the appropriate function block (MB_CLIENT=Modbus master, MB_SERVER=Modbus slave).
If I understand the documentation correctly, the CONNECT_ID is an internal variable and has no effect on communication parameters (and corresponding settings in REX).
In any case, I'm eager to know what sampling rate you'll be able to achieve.
Best regards,
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Pages: 1
Topic closed