Page 2 - Table of Contents
Siemens TCP/IP Ethernet Driver Help Table of Contents Table of Contents 2 Siemens TCP/IP Ethernet Driver Help 5 Overview 5 Device Setup 6 Communications Parameters 7 S7 Communications Parameters 7 Addressing Options 9 Tag Import 10 Cable Diagrams 12 How To Configure S7-200 Connections in Micro/WIN 1...
Page 3 - Siemens TCP/IP Ethernet Driver Help; Automatic Tag Generation Error Messages
Siemens TCP/IP Ethernet Driver Help Data type <type> is not valid for device address <address>. 65 Device address <address> contains a syntax error. 65 Device address <address> is read only. 65 Missing address. 65 Automatic Tag Generation Error Messages 65 Language file warni...
Page 5 - CONTENTS; What is the Siemens TCP/IP Ethernet Driver?; Overview
Siemens TCP/IP Ethernet Driver Help Siemens TCP/IP Ethernet Driver Help Help version 1.065 CONTENTS Overview What is the Siemens TCP/IP Ethernet Driver? Device Setup How do I configure a device for use with this driver? Optimizing Siemens TCP/IP Ethernet Communications How do I get the best performa...
Page 6 - YYY
Siemens TCP/IP Ethernet Driver Help Device Setup Supported Devices S7-200 via CP243S7-300 via CP343S7-400 via CP443S7-1200*S7-1500*S7-300 via NetLinkS7-400 via NetLink *This device has a built-in Ethernet module. Supported NetLink Cables and Gateways NT 50-MPINL 50-MPINL-MPI Connection Timeout This ...
Page 7 - Descriptions of the parameters are as follows:; S7 Communications Parameters; S7-200 Communications Parameters
Siemens TCP/IP Ethernet Driver Help Communications Parameters Descriptions of the parameters are as follows: l Port Number: This parameter specifies the port number that the remote CP is configured to use. The default setting for IE TCP/IP is 102 (TSAP). The default setting for NetLink is 1099. Note...
Page 8 - Link Type
Siemens TCP/IP Ethernet Driver Help Link Type TSAP Value (hex) PG 4B57 ('KW') Configured A remote (client) TSAP configured in Micro/WIN's Ethernet wizard. If Micro/WIN remote TSAP=xx.yy*, set local TSAP to xxyy. Remote TSAP Link Type TSAP Value (hex) PG 4B57 ('KW') Configured A local (server) TSAP c...
Page 9 - Internal Tags; Addressing Options; Big Endian (S7 Default; or; Little Endian; Big Endian; DWord 1
Siemens TCP/IP Ethernet Driver Help This parameter specifies the number of the rack in which the CPU of interest resides. For information on how toread/write the rack number using an internal tag, refer to Internal Tags . CPU Slot This parameter specifies the number of the slot in which the CPU of i...
Page 10 - Tag Import; Database Creation; tab located in; Auto Create
Siemens TCP/IP Ethernet Driver Help 3. The bit range for Byte 1, Byte 2, Byte 3, and Byte 4 is 7-0. Little Endian DWord 1 3-1 3-0 2-9 2-8 2-7 2-6 2-5 2-4 2-3 2-2 2-1 2-0 1-9 1-8 1-7 1-6 1-5 1-4 1-3 1-2 1-1 1-0 - 9 - 8 - 7 - 6 - 5 - 4 - 3 - 2 - 1 - 0 Word 3 Word 1 1-5 1-4 1-3 1-2 1-1 1-0 9 8 7 6 ...
Page 13 - Step 1: Launching the Ethernet Wizard; Tools
Siemens TCP/IP Ethernet Driver Help How To Configure S7-200 Connections in Micro/WIN Configured connections are accomplished through the Ethernet wizard in Micro/WIN. The following instructionsillustrate each step in the Ethernet wizard and also describe any precautions that should be taken. Follow ...
Page 14 - While it is recommended that the; Read Modules; function be used, this does require that the PLC be connected to; Ethernet module
Siemens TCP/IP Ethernet Driver Help Note: The program must be compiled before the Ethernet wizard can execute. Correct any errors in the program beforecontinuing. Step 2: Setting CP243-1 Module Position 1. Click Read Modules . Note: While it is recommended that the Read Modules function be used, thi...
Page 15 - Step 3: Assigning Module Address; IP Address; and; Gateway Address; if; Auto Detect Communications; to allow the module to automatically select either; Step 4: Number of Configured Connections
Siemens TCP/IP Ethernet Driver Help Step 3: Assigning Module Address 1. Enter the IP Address , Subnet Mask and Gateway Address if applicable. Alternatively, enable BOOTP if applicable. 2. Select Auto Detect Communications to allow the module to automatically select either 10BaseT or 100BaseT . In ra...
Page 16 - The image shown below contains 4 connections.; Step 5: Configuring Connections
Siemens TCP/IP Ethernet Driver Help Note: The number of connections selected determines how many simultaneous connections the PLC can support. Whenintending to have only one OPC server talking to the PLC, set up only one connection. This will ensure the bestperformance for the OPC server. When inten...
Page 17 - is considered the
Siemens TCP/IP Ethernet Driver Help There are two types of connections, client and server. In a client connection, the device is a client and makesrequest with servers (other devices). In a server connection, the device is a server and handles requests fromclients (such as the OPC server and other d...
Page 18 - Step 5b: Connection 1; This is a Server Connection
Siemens TCP/IP Ethernet Driver Help Step 5b: Connection 1 1. Select This is a Server Connection . www. kepware.com 18
Page 19 - or accept the default. This will be the
Siemens TCP/IP Ethernet Driver Help 2. Notice the Local TSAP automatically incremented to 11.00. 3. Enter a Remote TSAP or accept the default. This will be the Local TSAP in the OPC Server . 4. Optional: Accept all connection requests . 5. Select Enable the Keep Alive . 6. Click Next Connection . ww...
Page 20 - Step 5c: Connection 2
Siemens TCP/IP Ethernet Driver Help Step 5c: Connection 2 1. Select This is a Server Connection . www. kepware.com 20
Page 22 - Step 5d: Connection 3
Siemens TCP/IP Ethernet Driver Help Step 5d: Connection 3 1. Select This is a Server Connection... . www. kepware.com 22
Page 23 - Local TSAP; or accept the default. This will be the Local TSAP in the OPC server.; Optional: Accept all connection requests
Siemens TCP/IP Ethernet Driver Help 2. Notice the Local TSAP automatically incremented to 13.00. 3. Enter a Remote TSAP or accept the default. This will be the Local TSAP in the OPC server. 4. Optional: Accept all connection requests . 5. Select Enable the Keep Alive . 6. Click Next Connection . www...
Page 24 - Notice that the; in the; Connection dialog; was automatically advanced for each connection. This; Step 6: CRC and Keep Alive Interval; Keep Alive Interval
Siemens TCP/IP Ethernet Driver Help That completes the configuration of the four connections that were selected. Note: Notice that the Local TSAP in the Connection dialog was automatically advanced for each connection. This TSAP number will need to be used in the OPC server setup when defining a dev...
Page 25 - Step 7: Memory for Configuration; Suggest Address; to let the wizard find the best available location to store the; Ethernet configuration; The image shown below displays the results.
Siemens TCP/IP Ethernet Driver Help Step 7: Memory for Configuration 1. Click Suggest Address to let the wizard find the best available location to store the Ethernet configuration . 2. The image shown below displays the results. www. kepware.com 25
Page 26 - Step 8: Ethernet Wizard Summary
Siemens TCP/IP Ethernet Driver Help Note: It is recommended that the Micro/WIN software pick this location for the application. If a CRC was not generatedfor the configuration data, please take steps to ensure that no other aspect of the PLC program will overwrite thisarea of memory. Step 8: Etherne...
Page 27 - The image below shows; Simatic Manager; under the; SIMATIC Station
Siemens TCP/IP Ethernet Driver Help 4. The image below shows ETH0_CFG . 5. Now that the results of the Ethernet wizard have been confirmed, a connection can be made using the OPCserver. How To Configure S7-300/400 Connections in STEP 7 to configure the S7-300/400 for communications with the Siemens ...
Page 28 - If this is a new Simatic project, add the necessary modules to the; Rack; Configuring an Ethernet Module; Right-click on the particular module in the rack and then select; Object Properties; The dialog should appear as shown below.
Siemens TCP/IP Ethernet Driver Help 2. If this is a new Simatic project, add the necessary modules to the Rack in HW Config. For the Siemens TCP/IP Ethernet Driver to communicate with the CPU, there will need to be at least one Ethernet module capable of S7 Communications . This may be built into th...
Page 29 - General
Siemens TCP/IP Ethernet Driver Help 3. From the General tab, click the Interface | Properties button. www. kepware.com 29
Page 30 - Configuring Connections; Right-click on the CPU module in the rack and select
Siemens TCP/IP Ethernet Driver Help 4. Specify the IP and Subnet Mask for this module. 5. To network this module, click New under Subnet . Next, select the network created and the click OK . 6. Return to the HW Config main window. Configuring Connections 1. Right-click on the CPU module in the rack ...
Page 32 - Create new project; tab and then click; Accessible Devices
Siemens TCP/IP Ethernet Driver Help Note: For new Simatic projects, refer to the PLC's documentation for information on the default IP address settings. 1. Start the TIA Portal. In the Portal View, click Create new project . 2. Next, select the Online & Diagnostics tab and then click Accessible ...
Page 33 - Show
Siemens TCP/IP Ethernet Driver Help 3. Select the appropriate PG/PC interface. This will prompt the TIA to scan the network for the device. 4. Once the scan is complete, select the device and then click Show . This will invoke the Project View. 5. In the project tree, locate the IP address and then ...
Page 34 - Add new device
Siemens TCP/IP Ethernet Driver Help 9. Return to the Portal View and then select the Device & Networks tab. Then, click Add new device . 10. Next, select the device's configuration and then click Add device . This will invoke the Project View, where the device's hardware can be further configure...
Page 35 - To start, open the PLC project in the S7 AI Portal software.; PLC Properties
Siemens TCP/IP Ethernet Driver Help Note: The device is now configured and can be placed in Run Mode for communications. How To Configure S7-1500 Connections The S7-1500 controller has an embedded Ethernet port that supports S7 communications over the Ethernetprotocol. It must be configured to allow...
Page 36 - from
Siemens TCP/IP Ethernet Driver Help 5. In the server, create a new channel. In Device Driver , select Siemens TCP/IP Ethernet Driver from the drop-down list. Continue through the channel wizard, specifying channel properties as needed. Then,click Finish . 6. Next, create a new device. In Model , sel...
Page 37 - Link Settings
Siemens TCP/IP Ethernet Driver Help Optimizing Siemens TCP/IP Ethernet Communications The Siemens TCP/IP Ethernet Driver was designed to provide the best performance with the least amount ofimpact on the system's overall performance. While the Siemens TCP/IP Ethernet Driver is fast, there are a coup...
Page 38 - Data Type
Siemens TCP/IP Ethernet Driver Help Data Types Description Data Type Description Boolean Single bit Byte Unsigned 8-bit value Char Signed 8-bit value Word Unsigned 16-bit value bit 0 is the low bitbit 15 is the high bit Short Signed 16-bit value bit 0 is the low bitbit 14 is the high bitbit 15 is th...
Page 40 - length; Arrays; rows
Siemens TCP/IP Ethernet Driver Help MB0-MB65535MW0-MW65534MD0-MD65532 Byte , Char, String** Word , Short, BCD DWord , Long, LBCD, Float Read/WriteRead/WriteRead/Write Special Memory(Bytes 0-29 are Read Only) SM0.b-SM65535.b.b is Bit Number 0-7 SMB0-SMB65535SMW0-SMW65534SMD0-SMD65532 Boolean Byte , C...
Page 41 - S7-300 Address Descriptions
Siemens TCP/IP Ethernet Driver Help For Float, DWord, Long, and Long BCD arrays, the base address + ( rows * cols * 4) cannot exceed 65536. Keep in mind that the elements of the array are DWord, located on a DWord boundary. For example, ID0[4] will returnID0, ID4, ID8, and ID12. For all arrays, the ...
Page 43 - Address Syntax; Examples; Memory Types
Siemens TCP/IP Ethernet Driver Help Internal Tags Although the following internal tags are not visible in the server configuration, they can be browsed by the OPCclient. They can be found under the <Channel Name>.<Device Name>._InternalTags group. If the OPC client does not support brows...
Page 44 - S7 Data Types
Siemens TCP/IP Ethernet Driver Help See Also: Examples S7 Data Types The S7 data type is used to coerce the data type for a tag. It does not apply to Timers and Counters. The defaultdata types are shown in bold . S7DataType Description Address Range DataType BByte Unsigned Byte B0-B65535BYTE0-BYTE65...
Page 46 - String Support; Raw Strings; Hex Strings
Siemens TCP/IP Ethernet Driver Help 0-15 *These are raw strings that differ in structure and usage from the STEP 7 string data type. Note: Use caution when modifying Word, Short, DWord, and Long type as each address starts at a byte offset withinthe device. Therefore, Words MW0 and MW1 overlap at by...
Page 47 - Counters; S7 Data Type
Siemens TCP/IP Ethernet Driver Help When writing to T memory, the Siemens time base will also be applied. To assign a value to a timer in thecontroller, write the desired value as a count of milliseconds to the appropriate timer. Counters The value returned for C memory will automatically be convert...
Page 49 - Data Type Suffixes; Array Support
Siemens TCP/IP Ethernet Driver Help DBX65534.b .b is Bit Number 0-15 BDBB** Unsigned Byte B0-B65535DBB0-DBB65535 Byte , Char WDBW** Unsigned Word W0-W65534DBW0-DBW65534 Word , Short, BCD DDBD** UnsignedDouble Word D0-D65532DBD0-DBD65532 DWord , Long, LBCD, Float F Float *No S7 data type specified. A...
Page 51 - Suffixes; array size
Siemens TCP/IP Ethernet Driver Help Byte BYTE0-BYTE65535 WWord Unsigned Word W0-W65534 WORD0-WORD65534 Word , Short, BCD BCD KF BCD Short I INT Signed Word I0-I65534 INT0-INT65534 Word, Short , BCD BCD BCD D DWORD Unsigned Double Word D0-D65532 DWORD0-DWORD65532 DWord , Long, LBCD, Float BCD IEEEKF ...
Page 52 - Timer and Counter Memory Types; DB Memory Type
Siemens TCP/IP Ethernet Driver Help Array IINT0BCD II0.10IINT0.10 MINT0BCD MI0.10MINT0.10 DB1.INT0BCD DB1.I0.10DB1.INT0.10 D DWORD DWord LBCD (BCD) Float (IEEE) Long (KF) Array ID0 IDWORD0 ID0BCDIDWORD0BCD ID0IEEEIDWORD0IEEE ID0KFIDWORD0KF ID0IEEE.10IDWORD0IEEE.10 MD0 MDWORD0 MD0BCDMDWORD0BCD MD0IEE...
Page 54 - Syntax
Siemens TCP/IP Ethernet Driver Help Array ICHAR0,10 MCHAR0,10 DB1,CHAR0,10 WWord Word Array IW0IWORD0 IW0,10IWORD0,10 MW0MWORD0 MW0,10MWORD0,10 DB1,W0DB1,WORD0 DB1,W0,10 DB1,WORD0,10 INT Short Array IINT0 IINT0,10 MINT0 MINT0,10 DB1,INT0 DB1,INT0,10 DDWORD DWord Array ID0IDWORD0 ID0,10IDWORD0,10 MD0...
Page 55 - Accessing Structured Elements in STEP 7
Siemens TCP/IP Ethernet Driver Help CZ Counters C0-C65535Z0-Z65535 Word , Short Read/Write See Also: Examples Accessing Structured Elements in STEP 7 For the Siemens S7-1200 model, STEP 7 accesses the Counter and Timer structured elements as complete wholestructures instead of individual tags. For m...
Page 56 - Softing S7/S5 OPC Server Item Syntax
Siemens TCP/IP Ethernet Driver Help Examples S7 Data Type Data Type Input Flags Data Blocks NoneDBX Boolean I0.7---- M0.7---- ----DB1.DBX0.7 BDBB Byte IB0---- MB0---- ----DB1.DBB0 WDBW Word IW0---- MW0---- ----DB1.DBW0 DDBD DWord ID0---- MD0---- ----DB1.DBD0 Note: All brand and product names are tra...
Page 59 - Alternates
Siemens TCP/IP Ethernet Driver Help Float Note: PI and PE access the same memory area. Peripheral Outputs PQ0.b-PQ65535.b.b is Bit Number 0-7 PQB0-PQB65535PQW0-PQW65534PQW:KT0-PQW:KT65534PQW:KC0-PQW:KC65534PQD0-PQD65532 Boolean Byte , Char, String** Word , Short, BCD DWord, Long Word , Short DWord ,...
Page 60 - Data Block Strings
Siemens TCP/IP Ethernet Driver Help Data Block Right Byte DB1-N:KR0-KR655341-N is Block Number Alternates DB1DR0-DBNDR655341-N is Block Number Byte , Char, String** Byte , Char, String** Read/Write Read/Write Data Block Unsigned Word DB1-N:KH0-KH655341-N is Block Number Word , Short, BCD Read/Write ...
Page 61 - S Subtype; Timers
Siemens TCP/IP Ethernet Driver Help 2. Use caution when modifying Word, Short, DWord, and Long types. For I, Q, and F each address starts at a byte offset within the device. Therefore, Words FW0 and FW1 overlap at byte 1. Writing to FW0 will alsomodify the value held in FW1. Similarly, DWord, and Lo...
Page 62 - Value; The following examples are from the table above.; Example 1
Siemens TCP/IP Ethernet Driver Help KL vs. KR vs. DBB KL and KR determine whether the left byte or right byte of the data block word is returned. Value 8 9 A B C Byte 0 1 2 3 4 The following examples are from the table above. Example 1 DB1:KH0=0x89.DB1:KL0=0x8DB1:KR0=0x9DB1DBB0=0x8 Example 2 DB1:KH1...
Page 63 - NetLink Errors
Siemens TCP/IP Ethernet Driver Help Error Descriptions The following classes of error/warning messages may be generated. Click on the link for a list messages in eachcategory. Address Validation Error MessagesAutomatic Tag Generation Error MessagesDriver Error MessagesDevice Status Error Messages Er...
Page 64 - Data Access Errors; Error Code; Address Validation Error Messages
Siemens TCP/IP Ethernet Driver Help Data Access Errors Error Code Description 0xFF No error 0x01 Hardware fault 0x03 Illegal object access 0x05 Invalid address (incorrect variable address) 0x06 Data type is not supported 0x07 Invalid data size/too much data 0x0A Object does not exist or length error...
Page 68 - Note
Siemens TCP/IP Ethernet Driver Help Note : Automatic Tag Database Generation is only supported for the S7-300 and S7-400 device models. Unable to generate a tag database for device <device name>. Reason: Failedto read data from the STEP 7 project. Error Type: Warning Possible Cause: One of the...
Page 69 - Warning
Siemens TCP/IP Ethernet Driver Help Unable to generate a tag database for device <device name>. Reason: Thespecified CPU is not supported. Error Type: Warning Possible Cause: Automatic Tag Database Generation is not supported for the CPU object configured in the STEP 7 project. At thistime, on...
Page 70 - Notes; Driver Error Messages
Siemens TCP/IP Ethernet Driver Help The client must access the data using the array element tags that were generated. Notes : 1. Variables with the STEP 7 data types of DATE, DATE_AND_TIME, STRING, TIME, and TIME_OF_DAY generate tags with the string data type (for which arrays are not supported). 2....
Page 71 - Fatal; Indication; Wait a few seconds and restart the driver.; Device Status Error Messages
Siemens TCP/IP Ethernet Driver Help Winsock initialization failed (OS error=n). Error Type: Fatal OSError Indication Possible Solution 10091 Indicates that the underlying network subsystem isnot ready for network communication. Wait a few seconds and restart the driver. 10067 Limit on the number of ...
Page 75 - If tag is to be written in the process of connecting:; Error Codes
Siemens TCP/IP Ethernet Driver Help 1. If tag is to be read in the process of establishing an association, and a device error (such as transport orprotocol) occurred: l If tag is a block tag, the entire block will be deactivated. All tags within that block will be deactivated. This is signified by t...
Page 76 - Contact Technical Support.
Siemens TCP/IP Ethernet Driver Help Contact Technical Support. See Also: Error Codes Unable to read <block size> bytes starting at address <address> on device<device name>. Device returned protocol error [Class=<class>,Code=<code>]. Error Type: Warning Result: 1. If dev...
Page 81 - Index
Siemens TCP/IP Ethernet Driver Help Index A Address <address> is out of range for the specified device or register. 64 Address Descriptions 39 Address Validation Error Messages 64 Addressing Options 9 Applicom Direct-Link Item Syntax 48 Array size is out of range for address <address>. 6...
Page 84 - path has not been specified.
Siemens TCP/IP Ethernet Driver Help Unable to establish association with device <device name>. Device returned transport error [Code=<code>]. 74 Unable to establish association with device <device name>. Frame contains errors. 74 Unable to generate a tag database for device <cha...
Page 85 - Word
Siemens TCP/IP Ethernet Driver Help contains a syntax error. Expected ddD_hhH_mmM_ssS_hhhMS format. 80 W Windows code page warning for device <channel.device>: A required code page (<nnnn>) is unavailable on this machine. Tag generation may fail or tag names anddescriptions may not appea...