modbus slave CP341 siemens

Siby

Member
Join Date
Jul 2006
Location
Dubai
Posts
27
Hello good day to all
im using 3 siemens 3 plcs in profibus networks on master slave configuration its working fine.
From master profibus plc i need to change the profibus addresses to modbus .
Im using CP341 as slave but its not working can any body help me how to configure that i have read the manual and did as per manual but its not working.
please help me out of this trouble
 
Hello Siby;

Please take a few minutes to explain your problem a little further:

-You have for the moment 3 Siemens CPUs, connected over Profibus-DP, in a working configuration;
- For some reason, you wish to change the connection from Profibus-DP to Modbus RTU;
-On the master PLC (Modbus master) you have setup a CP341 with a X27 (RS422/RS485) interface module (since you are connecting to more than one slave) and the dongle that comes with the Modbus Master loadable driver software package. You have used the parametrizing software to setup the Modbus driver parameters of the CP341 (Modbus address, data speed, duplex/half-duplex connection, etc...), and dowloaded it to the CPU. You have then programmed the Modbus Master function blocks included in the Modbus Master driver to establish links and Modbus functions with the slaves.
-On each Modbus slave PLC you have similarly setup a CP341 with its X27 interface module, installed the dongle that comes with the Modbus slave driver package, parametrized the CP341 as a Modbus interface similar to the master (and downloaded to its CPU)and inserted the Modbus slave function blocks from the driver package to respond with appropriate data to the Modbus master's requests;
-Finally you have installed appropriate wiring between master and slaves, as per the instruction manuals of the drivers (note: this can be tricky, especially if you have other types of slaves on the Modbus network);
Is this correct?
If you have bought and installed all packages as per the instruction manuals and programming examples from Siemens, you should have at least functionning LEDs on the master and slave modules, or diagnostic LEDs available for troubleshooting. Sometimes there can be NDR (New Data recieved) signal synchronization to be verified, or Modbus function triggering to be checked, but at least you should have some kind of validation of the network.
Please make sure you have in your possession all required elements for the setup of the network: CP3431 with X27 submodules; Modbus master and Modbus slave loadable drivers, with appropriate dongle; parammetrizing software for the Modbus interfaces; and correct cabling between the Modbus partners. Then tell us what diagnostics you find on the CPUs and CPs (LEDs, diagnostic buffer, Hardware diagnostics).
Hope this helps,
Daniel Chartier
 
Extra comments

Hi guys

I was reading your comments and i have 1 question what blocks and what is the order for OB or FC for S7 program ?
 
There is no particular order. OB1 is the main block there should be all references to FCs nad FBs. In TIA there more OBs that are always executed after OB1, but i am of opinion the only OB1 is to be used (all calls and referrences), sve special purpose OBs like OB35, OB87 etc.
FBs nad FCs have no particular order. They are executed when called
 

Similar Topics

Hi all, Does anyone have any experience trying to simulate a Modbus master using a PC, The PLC is a cpu 300 with a CP341 RS485. I am...
Replies
5
Views
2,646
I have a setup that has both a modbus master and a slave. The master works just fine, it read and writes like it should, however the slave allows...
Replies
3
Views
5,424
Hi Friends, In my one of the Project Using Siemens CP341 ( Communication Processor). I am facing problem for modbus communication between CP341...
Replies
0
Views
5,023
Hello im using 3 Siemens PLC 315 2 DP these three PLCs are communicating on profibus master slave. Now i wanted to communicate master PLC with...
Replies
2
Views
8,387
Does anyone have an example project of the cm ptp ET200 SP HA with 410-5H DCS (PCs7 9.1 SP1) for MODBUS MASTER/SLAVE communication ?
Replies
2
Views
121
Back
Top Bottom