Libnodave S7-1200 Rack Slot

Libnodave S7-1200 Rack Slot Rating: 8,6/10 8867 reviews

The S7 has the family types

  • Along with Libnodave; see the file COPYING. If not, write to: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA./ using System; class test static libnodave. DaveOSserialType fds; static libnodave. DaveInterface di; static libnodave. DaveConnection dc; static int rack = 0; static int slot = 2; public static int Main (string.
  • I am able to read data from Siemens S7300 using libnodave, but I was unable to read the data from Siemens S71500. In the code you can see that I am trying to read first 4 bytes of Data from DB2. The code runs successfully with S7300, when I change the IP address and the slot number.

Libnodave S7-1200 Rack Slot Wall Mount

Probably you also need to specify slot = 0 and rack = 0 when you create the plc. Like this: plc = new Plc(CpuType.S71500, “127.0.0.1”, 0, 0); Because as I read on other forums, S7 1200 and S7 1500 accept only this configuration. Make some tests and let me know, unfortunately i don’t have a S7 1500 CPU right now.

S7 200 / 300 / 400 / 1200

and the

S7-1500

If the 'optimized' data blocks need to be used set the check mark on the '1500' in the protocol settings.

S7 200 / 300 / 400 / 1200

For non-configurable connections (= default connections), so-called standard TSAPs are used. For these, the following rules apply:

First group

contains device IDs for which resources are provided in the S7:

01: PG or PC

02: OS (operating or monitoring device)

03: Others, such as OPC server, Simatic S7 PLC...

Second group

S7-1200

contains the addresses of these components

Libnodave s7-1200 rack slot wall mount

Left character (bits 7....4):

Rack number multiplied by 2

Right character (bits 3...0):

Rack

CPU slot (< 16). S7-300 always uses slot 2

Libnodave S7-1200 Rack Slot Tray

The standard TSAPs MUST be used on the PLC side (Dest TSAP field of the device).

The local TSAP of the device (Own TSAP field) may be selected freely, but should have the same format. We recommend to use 01 01 in the Own TSAP field.

Examples:

03 02 Communication with the S7 CPU in rack 0, slot 2

03 43 Communication with the S7 CPU in rack 2, slot 3

03 2E Communication with the S7 CPU in rack 1, slot 14

S7-1200

The S7-1200 is usually addressed with the TSAP 02 01 (binary).

S7-300

The S7-300 is usually addressed with the TSAP 03 02 (binary).

Libnodave S7-1200 Rack Slot Machine

S7 1500

The S7 1500 does not use the service and rack addressing.

The own TSAP should be binary 06 00, the destination TSAP is ASCII 'SIMATIC-ROOT-ES'

Libnodave S7-1200 Rack Slot Rack

Note:

To enter the binary standard TSAPs, use the HEX field (left field).

Note:

The S7 300 or 400 protocol can be used for the S7 1500 too. But then the optimized data blocks can not be accessed.

see also: Routing TSAPs