S7 200 Modbus Slave Library Download 3,6/5 2105 votes

Help me find libraries for s7-200 PLC, i own only modbus slave(port0). Hi Greg, you do not see the big red button 'DOWNLOAD'?

Hi all, I have aproject which requires my S7-200 to communicate with the PDMS through Modbus communcation. I must send some data to the PDMS, and recieve other control signals from the PDMS. As I understand from the S7-200 manual, the PLC can act as a master (sending Data), and a slave (Recieving data), Can the PLC work as both sending and recieving data at the same time, or its a totally different concept. I must send the PDMS the folloing points: Inputs f the PLC (total of 55 inputs). Outputs of the PLC (total of 40 outputs). Memory locations (regesters I use them in my control and I must inform the PDMS about them).

I must recieve from the PDMS about 10 control points. Any one can help me with that, Does any one have sample programs using the modbus can share it. I found a tool here in the forums for testing the modbus communications, but its for **OPEN MODBUS / TCP Communication via CP343-1 and CP443-1**, is it adifferent protocol, can I use it with S7-200 CPU 224xp.

If this tool cant be used with CPU 224xp, is there any tool to do that. To use the Modbus slave instructions in your S7-200 program, follow these steps: 1.

Insert the MBUS_INIT instruction in your program and execute the MBUS_INIT instruction for one scan only. You can use the MBUS_INIT instruction either to initiate or to change the Modbus communications parameters. When you insert the MBUS_INIT instruction, several hidden subroutines and interrupt routines are automatically added to your program. Use the Library Memory command to assign a starting address for the V memory required for Modbus Slave Protocol instructions. Place only one MBUS_SLAVE instruction in your program. This instruction is called every scan to service any requests that have been received.

Connect the communications cable between Port 0 on the S7-200 and the Modbus master device. CAUTIONInterconnecting equipment with different reference potentials can cause unwanted currents to flow through the interconnecting cable. These unwanted currents can cause communications errors or damage equipment.Ensure that all equipment that is connected with a communications cable either shares a common circuit reference or is isolated to prevent unwanted current flows. The accumulators (AC0, AC1, AC2, AC3) are utilized by the Modbus slave instructions and appear in the Cross Reference listing. Prior to execution, the values in the accumulators of a Modbus Slave instruction are saved and restored to the accumulators before the Modbus Slave instruction is complete, ensuring that all user data in the accumulators is preserved while executing a Modbus Slave instruction. The Modbus Slave Protocol instructions support the Modbus RTU protocol. These instructions utilize the Freeport utilities of the S7-200 to support the most common Modbus functions.

Library

The following Modbus functions are supported: Function Description 1 Read single/multiple coil (discrete output) status. Function 1 returns the on/off status of any number of output points (Qs). 2 Read single/multiple contact (discrete input) status. Function 2 returns the on/off status of any number of input points (Is). 3 Read single/multiple holding registers. Function 3 returns the contents of V memory.

Holding registers are word values under Modbus and allow you to read up to 120 words in one request. 4 Read single/multiple input registers. Function 4 returns Analog Input values. Unfaithfully yours documentary.