Siemens 1200 as a Modbus RTU slave and PC as a master

Catnip

Member
Join Date
Jan 2016
Location
Finland
Posts
1
I am trying to get Siemens 1214c dc/dc/dc cpu work as a Modbus RTU slave with RS232 communication module. As a master i have PC.

I tried to get the connection work according these instructions:

https://support.industry.siemens.co...ortal)-for-the-simatic-s7-1200?dti=0&lc=en-WW

I didn't create the mb_master-block, since I don't have two PLCs communicating. As i try to send data to PC I only get errorsignal from mb_slave bloc, announcing about invalid port id (code 8180). The port id is the same as it is in the port configuration, so I really don't understand this. Could someone please help me to understand why my connection is not working?
 
I don't know much about Siemens PLC but all modbus slave should work the same way. When you say PC, exactly what software is used and what physical connection do you use (RS485, RS233, ethernet?)

The problem could be physical (cable, pinout) or on the software side. Eliminate one issue at a time.
 
Have you downloaded hardware config?

MB_load needs to call only at start of PLC or error.

Is rx led blinking when you make query from PC?
 
Run mbconfig on first scan to set up comm, check if rx-tx needs to be changed.
Most modbus problems was with proper rx-tx swap ;)
 

Similar Topics

Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
256
I have 3 control panels made by an OEM, they are all identical and have a Siemens S7-1200 PLC with a Siemens CB-1241 Modbus card talking to 2...
Replies
8
Views
4,541
Hi All, I have a closed loop stepper motor (Nanotec make), https://en.nanotec.com/products/2512-pd4-e601l42-e-65-4. This uses MODBUS TCP for...
Replies
4
Views
3,878
Hello; i'm having some troubles with a com test i'm handling. i have another end for it, but for now i would like to have : M241 in io_scanning...
Replies
4
Views
3,488
Replies
3
Views
2,365
Back
Top Bottom