Siemens TCP/IP Ethernet Driver Help © 2015 Kepware Technologies
Siemens TCP/IP Ethernet Driver Help 2 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 13 How To Configure S7-300/400 Connections in STEP 7 27 How To Configure S7-1200 Connections with the Totally Integrated Automation (TIA) Portal 31 How To Configure S7-1500 Connections
Siemens TCP/IP Ethernet Driver Help 3 Data type is not valid for device address . 65 Device address contains a syntax error. 65 Device address is read only. 65 Missing address. 65 Automatic Tag Generation Error Messages 65 Language file warning for device : Memory exception reading the STEP 7 language file. 66 Language file warning for device : STEP 7 language file failed to open [Reason].
Siemens TCP/IP Ethernet Driver Help 4 Unable to read bytes starting at address on device . Device returned data access error [Code=]. 75 Unable to read bytes starting at address on device . Device returned protocol error [Class=, Code=]. 76 Unable to read bytes starting at address on device . Device returned transport error [Code=].
Siemens TCP/IP Ethernet Driver Help 5 Siemens TCP/IP Ethernet Driver Help Help version 1.
Siemens TCP/IP Ethernet Driver Help 6 Device Setup Supported Devices S7-200 via CP243 S7-300 via CP343 S7-400 via CP443 S7-1200* S7-1500* S7-300 via NetLink S7-400 via NetLink *This device has a built-in Ethernet module. Supported NetLink Cables and Gateways NT 50-MPI NL 50-MPI NL-MPI Connection Timeout This parameter specifies the time that the driver will wait for a connection to be made with a device. Depending on network load, the connect time may vary with each connection attempt.
Siemens TCP/IP Ethernet Driver Help 7 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: It is recommended that the default port be used for most applications, where the OPC server and the PLC exist on the same network.
Siemens TCP/IP Ethernet Driver Help 8 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 configured in Micro/WIN's Ethernet wizard. If Micro/WIN remote TSAP=xx.yy*, set local TSAP to xxyy. *TSAP as displayed in Micro/WIN's Ethernet Wizard.
Siemens TCP/IP Ethernet Driver Help 9 This parameter specifies the number of the rack in which the CPU of interest resides. For information on how to read/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 interest resides. For information on how to read/write the slot number using an internal tag, refer to Internal Tags. Addressing Options This dialog is used to set the byte order for 16-bit and 32-bit values.
Siemens TCP/IP Ethernet Driver Help 10 3. The bit range for Byte 1, Byte 2, Byte 3, and Byte 4 is 7-0.
Siemens TCP/IP Ethernet Driver Help Descriptions of the parameters are as follows: l l STEP 7 Project File (*.S7P): Select the ellipsis button to browse for and select the desired STEP 7 project file (*.S7P) from which tags will be imported. To clear the configured STEP 7 project, click the X button. Program Path: After specifying the STEP 7 project's *.S7P file, use this drop-down menu to select the actual PLC program within the project for which tags will be generated. www. kepware.
Siemens TCP/IP Ethernet Driver Help 12 Cable Diagrams www. kepware.
Siemens TCP/IP Ethernet Driver Help 13 How To Configure S7-200 Connections in Micro/WIN Configured connections are accomplished through the Ethernet wizard in Micro/WIN. The following instructions illustrate each step in the Ethernet wizard and also describe any precautions that should be taken. Follow these instructions closely to use configured connections with the Siemens TCP/IP Ethernet Driver correctly. Note: The Micro/WIN software may require an upgrade before the Ethernet wizard is made available.
Siemens TCP/IP Ethernet Driver Help 14 Note: The program must be compiled before the Ethernet wizard can execute. Correct any errors in the program before continuing. Step 2: Setting CP243-1 Module Position 1. Click Read Modules. Note: While it is recommended that the Read Modules function be used, this does require that the PLC be connected to the PC either serially or by Ethernet. In either case, the communications parameters for Micro/WIN must be properly set for the Read Modules operation to occur.
Siemens TCP/IP Ethernet Driver Help 15 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 rare cases where there may be a cable issue that does not allow the module to operate properly at 100BaseT, force the module to use 10BaseT. This will increase the modules' tolerance to a bad Ethernet line. 3.
Siemens TCP/IP Ethernet Driver Help 16 Note: The number of connections selected determines how many simultaneous connections the PLC can support. When intending to have only one OPC server talking to the PLC, set up only one connection. This will ensure the best performance for the OPC server. When intending to have more than one active connection to the PLC, use multiple connections. Keep in mind, however, that the performance of the module will be impacted as each connection is used. 2.
Siemens TCP/IP Ethernet Driver Help 17 There are two types of connections, client and server. In a client connection, the device is a client and makes request with servers (other devices). In a server connection, the device is a server and handles requests from clients (such as the OPC server and other devices). The latter is required for communications with the Siemens TCP/IP Ethernet Driver. 1. Select This is a Server Connection. 2.
Siemens TCP/IP Ethernet Driver Help 18 Step 5b: Connection 1 1. Select This is a Server Connection. www. kepware.
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. www. kepware.
Siemens TCP/IP Ethernet Driver Help 20 Step 5c: Connection 2 1. Select This is a Server Connection. www. kepware.
Siemens TCP/IP Ethernet Driver Help 2. Notice the Local TSAP automatically incremented to 12.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. kepware.
Siemens TCP/IP Ethernet Driver Help 22 Step 5d: Connection 3 1. Select This is a Server Connection.... www. kepware.
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. kepware.
Siemens TCP/IP Ethernet Driver Help 24 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 device as the remote TSAP number. Step 6: CRC and Keep Alive Interval Optional: Enable CRC protection to monitor for accidental configuration corruption. 1. Set the Keep Alive Interval.
Siemens TCP/IP Ethernet Driver Help 25 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.
Siemens TCP/IP Ethernet Driver Help 26 Note: It is recommended that the Micro/WIN software pick this location for the application. If a CRC was not generated for the configuration data, please take steps to ensure that no other aspect of the PLC program will overwrite this area of memory. Step 8: Ethernet Wizard Summary 1. Click Finish or Prev to modify the Configured Connections. 2. To review what the Ethernet wizard produced, double-click ETH0_CTRL under the Program Block.
Siemens TCP/IP Ethernet Driver Help 27 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 OPC server. How To Configure S7-300/400 Connections in STEP 7 to configure the S7-300/400 for communications with the Siemens TCP/IP Ethernet Driver, both the CPU and the Ethernet module will need to be configured as well. To do so, follow the directions below. 1.
Siemens TCP/IP Ethernet Driver Help 28 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 the CPU. Configuring an Ethernet Module 1. Right-click on the particular module in the rack and then select Object Properties. 2. The dialog should appear as shown below. www. kepware.
Siemens TCP/IP Ethernet Driver Help 3. From the General tab, click the Interface | Properties button. www. kepware.
Siemens TCP/IP Ethernet Driver Help 30 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 and select Object Properties. 2. The dialog should appear as shown below. www. kepware.
Siemens TCP/IP Ethernet Driver Help 31 3. Configure the desired number of PG/OP and PC (S7 Communication) connections.
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 Devices. www. kepware.
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 open Online & Diagnostics. 6. Next, double-click Online & Diagnostics to invoke Online Access. 7. Select Functions and then click Assign IP Address. 8.
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 configured. 11. Once finished, view the project tree. Locate Program Blocks and PLC Tags and then configure the addresses that will be used in the PLC project. www. kepware.
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 Ethernet protocol. It must be configured to allow access from the server, however. For more information, refer to the instructions below. 1. To start, open the PLC project in the S7 AI Portal software. 2. Next, open PLC Properties. 3.
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, select S7-1500 from the Device Model drop-down list. Continue through the device wizard, specifying device properties as needed. Then, click Finish.
Siemens TCP/IP Ethernet Driver Help 37 Optimizing Siemens TCP/IP Ethernet Communications The Siemens TCP/IP Ethernet Driver was designed to provide the best performance with the least amount of impact on the system's overall performance. While the Siemens TCP/IP Ethernet Driver is fast, there are a couple of guidelines that can be used to optimize the application and gain maximum performance. This server refers to communications protocols like Siemens TCP/IP Ethernet as a channel.
Siemens TCP/IP Ethernet Driver Help 38 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 bit bit 15 is the high bit Short Signed 16-bit value bit 0 is the low bit bit 14 is the high bit bit 15 is the sign bit BCD Two byte packed BCD DWord Unsigned 32-bit value Value range is 0-9999.
Siemens TCP/IP Ethernet Driver Help 39 Address Descriptions Address specifications vary depending on the model in use. Select a link from the following list to obtain information for the model of interest.
Siemens TCP/IP Ethernet Driver Help 40 MB0-MB65535 MW0-MW65534 MD0-MD65532 Special Memory (Bytes 0-29 are Read Only) Sequence Control Relay (SCR) Variable Memory Byte, Char, String** Word, Short, BCD DWord, Long, LBCD, Float Read/Write Read/Write Read/Write SM0.b-SM65535.b Boolean .b is Bit Number 0-7 Read/Write SMB0-SMB65535 SMW0-SMW65534 SMD0-SMD65532 Read/Write Read/Write Read/Write Byte, Char, String** Word, Short, BCD DWord, Long, LBCD, Float S0.b-S65535.b Boolean .
Siemens TCP/IP Ethernet Driver Help 41 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 return ID0, ID4, ID8, and ID12. For all arrays, the total number of bytes being requested cannot exceed the internal block size of 218 bytes.
Siemens TCP/IP Ethernet Driver Help 42 Note: All brand and product names are trademarks, registered trademarks, or service marks of their respective holders. S7-1500 Address Descriptions Standard Support S7-300/400/1200/1500 Item Syntax Internal Tags Third-Party Support For users familiar with the following applications, limited addressing support is available.
Siemens TCP/IP Ethernet Driver Help 43 Internal Tags Although the following internal tags are not visible in the server configuration, they can be browsed by the OPC client. They can be found under the .._InternalTags group. If the OPC client does not support browsing, or if a non-OPC client is being used, the tags can be created dynamically and statically by using the addresses given below.
Siemens TCP/IP Ethernet Driver Help 44 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 default data types are shown in bold. S7 Data Type B Byte Data Type Description Address Range Unsigned Byte B0-B65535 BYTE0BYTE65535 Byte, Char B0.b-B65535.b BYTE0.bBYTE65535.b .b is Bit Number 0-7 Boolean String* B0.n-B65535.n BYTE0.nBYTE65535.n .n is string length. 0 < n <= 212.
Siemens TCP/IP Ethernet Driver Help 45 DI65532.b DINT0.bDINT65532.b .b is Bit Number 0-31 DT S7 Date_And_Time Boolean DT0-DT65528 String, Date I0-I65534 INT0-INT65534 Word, Short, BCD Complex data type stored with 8 bytes as follows: 0 year, 1 month, 2 days, 3 hours, 4 minutes, 5 seconds, 6 two most significant digits of MSEC, 7 (4MSB) two least significant digits of MSEC, 7 (4LSB) day of week (1=Sunday).
Siemens TCP/IP Ethernet Driver Help 46 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 within the device. Therefore, Words MW0 and MW1 overlap at byte 1. Writing to MW0 will also modify the value held in MW1. Similarly, DWord, and Long types can also overlap. It is recommended that these memory types be used so that overlapping does not occur.
Siemens TCP/IP Ethernet Driver Help 47 When writing to T memory, the Siemens time base will also be applied. To assign a value to a timer in the controller, write the desired value as a count of milliseconds to the appropriate timer. Counters The value returned for C memory will automatically be converted to a BCD value. Examples S7 Data Type Data Type Input Flags Data Blocks B Byte Byte IB0 IBYTE0 MB0 MBYTE0 DB1,B0 DB1,BYTE0 Boolean IB0.7 IBYTE0.7 MB0.7 MBYTE0.7 DB1,B0.7 DB1,BYTE0.
Siemens TCP/IP Ethernet Driver Help 48 TIME W Word X ITIME4 MTIME4 DB1,TIME4 Word IW0 IWORD0 MW0 MWORD0 DB1,W0 DB1,WORD0 Boolean IW0.15 IWORD0.15 MW0.15 MWORD0.15 DB1,W0.15 DB1,WORD0.15 Array IW0[10] IWORD0[10] MW0[10] MWORD0[10] DB1,W0[10] DB1,WORD0[10] Boolean IX0.7 IX0[10] MX0.7 MX0[10] DB1,X0.7 DB1,X0[10] Applicom Direct-Link Item Syntax The following support for the Applicom Direct-Link OPC server is considered to be limited.
Siemens TCP/IP Ethernet Driver Help 49 DBX65534.b .b is Bit Number 015 B DBB** Unsigned Byte B0-B65535 DBB0-DBB65535 Byte, Char W DBW** Unsigned Word W0-W65534 DBW0-DBW65534 Word, Short, BCD D DBD** Unsigned Double Word D0-D65532 DBD0-DBD65532 DWord, Long, LBCD, Float F Float *No S7 data type specified. Applies to non-DB memory types only. **Applies to DB memory types only.
Siemens TCP/IP Ethernet Driver Help 50 Array ID0_4_3 ---- MD0_4_3 ---- ---DB1.DBD0F_4_3 Note: All brand and product names are trademarks, registered trademarks, or service marks of their respective holders. INAT OPC Server TCPIPH1 Item Syntax The following support for the INAT OPC Server TCPIPH1 (V1.22 and up) is considered to be limited. Care must be taken as the data type for a given S7 data type/suffix may differ from the data type for the same S7 data type/suffix in the specified product.
Siemens TCP/IP Ethernet Driver Help Byte 51 BYTE0-BYTE65535 W Word 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 IEEE KF LBCD Float Long DI DINT Signed Double Word DI0-DI65532 DINT0-DINT65532 DWord, Long, LBCD, Float BCD IEEE LBCD Float R REAL IEEE Float R0-R65532 REAL0-REAL65532 Float G String S7 S
Siemens TCP/IP Ethernet Driver Help 52 D DWORD DI DINT R REAL G String IINT0BCD MINT0BCD DB1.INT0BCD Array II0.10 IINT0.10 MI0.10 MINT0.10 DB1.I0.10 DB1.INT0.10 DWord ID0 IDWORD0 MD0 MDWORD0 DB1.D0 DB1.DWORD0 LBCD (BCD) ID0BCD IDWORD0BCD MD0BCD MDWORD0BCD DB1.D0BCD DB1.DWORD0BCD Float (IEEE) ID0IEEE IDWORD0IEEE MD0IEEE MDWORD0IEEE DB1.D0IEEE DB1.DWORD0IEEE Long (KF) ID0KF IDWORD0KF MD0KF MDWORD0KF DB1.D0KF DB1.DWORD0KF Array ID0IEEE.10 IDWORD0IEEE.10 MD0IEEE.10 MDWORD0IEEE.
Siemens TCP/IP Ethernet Driver Help 53 See Also: Examples Memory Types Memory Type Description I E Inputs Address Range Data Type Access Read/Write Q A Outputs Read/Write PI PE Peripheral Inputs PQ PA Peripheral Outputs Read/Write M F Flag Memory Read/Write DB Data Blocks T Timers T0-T65535 DWord, Long Read/Write C Z Counters C0-C65535 Z0-Z65535 Word, Short Read/Write Read Only Dependent on S7 Data Type Read/Write See Also: Examples S7 Data Types The S7 data type is used
Siemens TCP/IP Ethernet Driver Help 54 W Word INT D DWORD DINT REAL String Array ICHAR0,10 MCHAR0,10 DB1,CHAR0,10 Word IW0 IWORD0 MW0 MWORD0 DB1,W0 DB1,WORD0 Array IW0,10 IWORD0,10 MW0,10 MWORD0,10 DB1,W0,10 DB1,WORD0,10 Short IINT0 MINT0 DB1,INT0 Array IINT0,10 MINT0,10 DB1,INT0,10 DWord ID0 IDWORD0 MD0 MDWORD0 DB1,D0 DB1,DWORD0 Array ID0,10 IDWORD0,10 MD0,10 MDWORD0,10 DB1,D0,10 DB1,DWORD0,10 Long IDINT0 MDINT0 DB1,DINT0 Array IDINT0,10 MDINT0,10 DB1,DINT0,10 Fl
Siemens TCP/IP Ethernet Driver Help C Z Counters 55 C0-C65535 Z0-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 whole structures instead of individual tags. For more information on the element offset and its server address equivalent, refer to the tables below. Counters Element Data Type Offset Server Address Equivalent Count_UP Boolean 0.0 DB1,C00.
Siemens TCP/IP Ethernet Driver Help 56 Examples S7 Data Type Data Type Input Flags Data Blocks None DBX Boolean I0.7 ---- M0.7 ---- ---DB1.DBX0.7 B DBB Byte IB0 ---- MB0 ---- ---DB1.DBB0 W DBW Word IW0 ---- MW0 ---- ---DB1.DBW0 D DBD DWord ID0 ---- MD0 ---- ---DB1.DBD0 Note: All brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
Siemens TCP/IP Ethernet Driver Help 57 None* DBX** Bit 0.b-65534.b DBX0.bDBX65534.b .b is Bit Number 015 Boolean B DBB** Unsigned Byte B0-B65535 DBB0-DBB65535 Byte, Char Byte Char String Byte Char String W Unsigned Word W0-W65534 DBW0-DBW65534 Word, Short, BCD DBW** Word INT BCD Word INT BCD D DBD** Unsigned Double Word DWord, Long, LBCD, Float DWord DINT BCD REAL DWord DINT BCD REAL D0-D65532 DBD0-DBD65532 *No S7 data type specified. Applies to non-DB memory types only.
Siemens TCP/IP Ethernet Driver Help 58 All brand and product names are trademarks, registered trademarks, or service marks of their respective holders. Legacy S7-300/400 Item Syntax The default data types for dynamically defined tags are shown in bold. For preferred item syntax, refer to Standard S7-300/400/1200/1500 Item Syntax. Address Type Range Type Access Discrete Inputs I0.b-I65535.b .
Siemens TCP/IP Ethernet Driver Help 59 Float Note: PI and PE access the same memory area. Peripheral Outputs Peripheral Outputs PQ0.b-PQ65535.b .b is Bit Number 0-7 Boolean Read/Write PQB0-PQB65535 PQW0-PQW65534 PQW:KT0-PQW:KT65534 PQW:KC0-PQW:KC65534 PQD0-PQD65532 Byte, Char, String** Word, Short, BCD DWord, Long Word, Short DWord, Long, LBCD, Float Read/Write Read/Write Read/Write Read/Write Read/Write PA0.b-PA65535.b .
Siemens TCP/IP Ethernet Driver Help 60 Data Block Right Byte DB1-N:KR0-KR65534 1-N is Block Number Byte, Char, String** Read/Write DB1DR0-DBNDR65534 1-N is Block Number Byte, Char, String** Read/Write Data Block Unsigned Word DB1-N:KH0-KH65534 1-N is Block Number Word, Short, BCD Read/Write Data Block Signed Word DB1-N:KF0-KF65534 1-N is Block Number Word, Short, BCD Read/Write DB1DBW0-DBNDBW65534 1-N is Block Number Word, Short, BCD Read/Write DB1DW0-DBNDW65534 1-N is Block Number Word,
Siemens TCP/IP Ethernet Driver Help 61 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 also modify the value held in FW1. Similarly, DWord, and Long types can also overlap. It is recommended that these memory types be used so that overlapping does not occur. For example, DWord, FD0, FD4, FD8 and so on can be used to prevent overlapping bytes.
Siemens TCP/IP Ethernet Driver Help 62 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=0x8 DB1:KR0=0x9 DB1DBB0=0x8 Example 2 DB1:KH1=0x9A DB1:KL1=0x9 DB1:KR1=0xA DB1DBB1=0x9 Timers The Siemens TCP/IP Ethernet Driver automatically scales T and KT values based on the Siemens S5 time format.
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 each category.
Siemens TCP/IP Ethernet Driver Help 64 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 Address Validation Error Messages The following error/warning messages may be generated. Click on the link for a description of the message.
Siemens TCP/IP Ethernet Driver Help 65 Data type is not valid for device address . Error Type: Warning Possible Cause: A tag address that has been specified dynamically has been assigned an invalid data type. Solution: Modify the requested data type in the client application. Device address contains a syntax error. Error Type: Warning Possible Cause: A tag address that has been specified dynamically contains one or more invalid characters.
Siemens TCP/IP Ethernet Driver Help 66 Unable to generate a tag database for device . Reason: Failed to read data from the STEP 7 project. Unable to generate a tag database for device . Reason: File system error processing the STEP 7 project. Unable to generate a tag database for device . Reason: Internal driver error occurred. Unable to generate a tag database for device . Reason: The specified CPU is not supported.
Siemens TCP/IP Ethernet Driver Help 67 Solution: Verify that the Simatic STEP 7 project is not corrupt and can be successfully opened in Simatic STEP 7. If this error continues to occur, contact Technical Support. String conversion warning: Auto generated tag names and descriptions may not appear as expected for device . Error Type: Warning Possible Cause: The unicode conversion failed.
Siemens TCP/IP Ethernet Driver Help 68 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 . Reason: Failed to read data from the STEP 7 project. Error Type: Warning Possible Cause: One of the files in the STEP 7 project folder is missing, invalid, or corrupt.
Siemens TCP/IP Ethernet Driver Help Unable to generate a tag database for device . Reason: The specified 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 this time, only S7-300 and S7-400 CPU types are supported.
Siemens TCP/IP Ethernet Driver Help 70 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.
Siemens TCP/IP Ethernet Driver Help 71 Winsock initialization failed (OS error=n). Error Type: Fatal OS Error Indication Possible Solution 10091 Indicates that the underlying network subsystem is not ready for network communication. Wait a few seconds and restart the driver. 10067 Limit on the number of tasks supported by the Windows Sockets implementation has been reached. Close one or more applications that may be using Winsock and restart the driver. Winsock V1.
Siemens TCP/IP Ethernet Driver Help 72 Device is not responding. Error Type: Warning Result: If tag was being read: l If tag is a block tag, the entire block will be invalidated. All tags within that block will be invalidated. l If tag is an array tag or string tag, just this tag will be invalidated. If tag was being written: l Write operation for the given tag will not take place. Possible Cause: 1. The connection between the device and the host PC is broken. 2.
Siemens TCP/IP Ethernet Driver Help 73 Note: No protocol or data access errors can occur for this operation. See Also: Error Codes Unable to connect to device . Frame contains errors. Error Type: Warning Result: 1. If tag is to be read in the process of connecting, and a device error (transport) occurred: l 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 the postfix message "...Block Deactivated.
Siemens TCP/IP Ethernet Driver Help 74 l If tag is an array tag or string tag, just this tag will be deactivated. This is signified by the postfix message "...Tag Deactivated." 2. If tag is to be read in the process of establishing an association, and no device errors occurred: l If tag is a block tag, the entire block will be invalidated. All tags within that block will be invalidated. l If tag is an array tag or string tag, just this tag will be invalidated. 3.
Siemens TCP/IP Ethernet Driver Help 75 1. If tag is to be read in the process of establishing an association, and a device error (such as transport or protocol) occurred: l 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 the postfix message "...Block Deactivated." If tag is an array tag or string tag, just this tag will be deactivated. This is signified by the postfix message "...Tag Deactivated." 2.
Siemens TCP/IP Ethernet Driver Help 76 Contact Technical Support. See Also: Error Codes Unable to read bytes starting at address on device . Device returned protocol error [Class=, Code=]. Error Type: Warning Result: 1. If device error (such as transport, protocol, or access) occurred: l l If tag is a block tag, the entire block (address -> address + block size) will be deactivated. All tags within that block will be deactivated.
Siemens TCP/IP Ethernet Driver Help 77 Unable to read bytes starting at address on device . Frame contains errors. Error Type: Warning Result: 1. If device error (such as transport, protocol, or access) occurred: l l If tag is a block tag, the entire block (address -> address + block size) will be deactivated. All tags within that block will be deactivated. This is signified by the postfix message "...Block Deactivated.
Siemens TCP/IP Ethernet Driver Help 78 2. If no device errors occurred: l If tag is a block tag, the entire block will be invalidated. All tags within that block will be invalidated. l If tag is an array tag or string tag, just this tag will be invalidated. Possible Cause: An error was returned from the PLC or NetLink adapter. Solution: 1. If the error code=0x11, an incorrect MPI ID may be set.
Siemens TCP/IP Ethernet Driver Help 79 Unable to write to
on device . Device returned protocol error [Class=, Code=]. Error Type: Warning Result: The write operation to the address failed. Possible Cause: An S7 Messaging error occurred. This will occur if this portion is malformed or contains incorrect packet lengths. Solution: Contact Technical Support. Unable to write to on device . Device returned transport error [Code=].
Siemens TCP/IP Ethernet Driver Help 80 Warning Result: The write operation to the address failed. Possible Cause: An error was returned from the PLC or NetLink adapter. Solution: 1. If error code=0x11, an incorrect MPI ID may be set. Determine the MPI ID through which communications are occurring, and then re-enter it in the MPI ID Device Property field. 2. If error code=0x87, users may be accessing data out of range in the device.
Siemens TCP/IP Ethernet Driver Help Index A 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 . 64 Array support is not available for the specified address:.Siemens TCP/IP Ethernet Driver Help 82 E Error Codes 63 Error Descriptions 63 F Float 38 H Help Contents 5 How To Configure S7-1200 Connections with the Totally Integrated Automation (TIA) Portal 31 How To Configure S7-1500 Connections 35 How To Configure S7-200 Connections in Micro/WIN 13 How To Configure S7-300/400 Connections in STEP 7 27 I INAT OPC Server TCPIPH1 Item Syntax 50 Internal Tags 43 L Language file warning for device : Memory exception reading the STEP 7 language file.
Siemens TCP/IP Ethernet Driver Help N NetLink 7 NetLink: S7-300 Address Descriptions 42 NetLink: S7-400 Address Descriptions 42 Network 6 O Optimizing Siemens TCP/IP Ethernet Communications 37 Overview 5 S S7-1200 Address Descriptions 41 S7-1500 Address Descriptions 42 S7-200 Address Descriptions 39 S7-300 Address Descriptions 41 S7-400 Address Descriptions 41 S7 Communications Parameters 7 Short 38 Siemens Simatic Net Item Syntax 52 Siemens STEP 7 Item Syntax 54 Softing S7/S5 OPC Server Item Syntax 56 S
Siemens TCP/IP Ethernet Driver Help Unable to establish association with device . Device returned transport error [Code=]. 74 Unable to establish association with device . Frame contains errors. 74 Unable to generate a tag database for device . Reason: The program path has not been specified. 67 Unable to generate a tag database for device . Reason: The STEP 7 project file has not been specified.
Siemens TCP/IP Ethernet Driver Help 85 contains a syntax error. Expected ddD_hhH_mmM_ssS_hhhMS format. 80 W Windows code page warning for device : A required code page () is unavailable on this machine. Tag generation may fail or tag names and descriptions may not appear as expected. 70 Winsock initialization failed (OS error = n). 71 Winsock V1.1 or higher must be installed to use the Siemens TCP/IP Ethernet device driver. 71 Word 38 www. kepware.