OISIDIR
OISIDIR
SIDIRECT Driver
User Guide
[Link]
© 2015-2023 by AVEVA Group Limited or its subsidiaries. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any
means, mechanical, photocopying, recording, or otherwise, without the prior written permission of AVEVA
Group Limited. No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AVEVA assumes no responsibility
for errors or omissions. The information in this documentation is subject to change without notice and does not
represent a commitment on the part of AVEVA. The software described in this documentation is furnished under
a license agreement. This software may be used or copied only in accordance with the terms of such license
agreement. AVEVA, the AVEVA logo and logotype, OSIsoft, the OSIsoft logo and logotype, ArchestrA, Avantis,
Citect, DYNSIM, eDNA, EYESIM, InBatch, InduSoft, InStep, IntelaTrac, InTouch, Managed PI, OASyS, OSIsoft
Advanced Services, OSIsoft Cloud Services, OSIsoft Connected Services, OSIsoft EDS, PIPEPHASE, PI ACE, PI
Advanced Computing Engine, PI AF SDK, PI API, PI Asset Framework, PI Audit Viewer, PI Builder, PI Cloud
Connect, PI Connectors, PI Data Archive, PI DataLink, PI DataLink Server, PI Developers Club, PI Integrator for
Business Analytics, PI Interfaces, PI JDBC Driver, PI Manual Logger, PI Notifications, PI ODBC Driver, PI OLEDB
Enterprise, PI OLEDB Provider, PI OPC DA Server, PI OPC HDA Server, PI ProcessBook, PI SDK, PI Server, PI Square,
PI System, PI System Access, PI Vision, PI Visualization Suite, PI Web API, PI WebParts, PI Web Services, PRiSM,
PRO/II, PROVISION, ROMeo, RLINK, RtReports, SIM4ME, SimCentral, SimSci, Skelta, SmartGlance, Spiral Software,
WindowMaker, WindowViewer, and Wonderware are trademarks of AVEVA and/or its subsidiaries. All other
brands may be trademarks of their respective owners.
U.S. GOVERNMENT RIGHTS
Use, duplication or disclosure by the U.S. Government is subject to restrictions set forth in the license agreement
with AVEVA Group Limited or its subsidiaries and as provided in DFARS 227.7202, DFARS 252.227-7013, FAR
12-212, FAR 52.227-19, or their successors, as applicable.
Publication date: Tuesday, May 9, 2023
Publication ID: 868888
Contact Information
AVEVA Group Limited
High Cross
Madingley Road
Cambridge
CB3 0HB. UK
[Link]
For information on how to contact sales and customer training, see [Link]
For information on how to contact technical support, see [Link]
To access the AVEVA Knowledge and Support center, visit [Link]
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 2
Contents
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 3
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Contents
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 4
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Contents
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 5
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Contents
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 6
Chapter 1
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 7
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 1 – Introduction to the SIDirect Communication Driver
While the SIDirect Communication Driver can support other PLCs in Siemens S7 family of PLCs, it is specifically
designed to support the S7-1500 . For the complete list of supported hardware and firmware, see "Tested
Communication Driver Hardware and Firmware".
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 8
Chapter 2
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 9
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
4. Configure all the global parameters as required for this Communication Drivers Pack Help.
Note: Any global parameters fields that appear disabled are not supported for the Communication Driver.
5. Configure the PORT objects.
• For step-by-step procedures on how to configure the Legacy Object, see Configuring the SIDirect Legacy
Object.
• For step-by-step procedures on how to configure the Symbolic Object, see Configuring the SIDirect
Symbolic Object.
6. When the SIDirect hierarchy build is completed, you can start configuring the respective devices for
communications.
• Optionally, the desired device groups can be created under the Device Groups section with each of the
PLC objects.
• Desired device items can also be optionally created under the Device Items section with each of the PLC
objects.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 10
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
3. Configure the global parameters. See "Configuring Global Parameters" in the Communication Drivers Pack
help.
4. Add a port. See Configuring Port Parameters.
5. Add one or more device groups. See Device Group Definitions.
6. Add device items. See Device Item Definitions.
7. Activate the Communication Driver. See "Activating/Deactivating the OI Server" in the Communication
Drivers Pack help
8. Access data from the client, see "Accessing Items Using the OPC Communications Protocol" in the
Communication Drivers Pack help.
9. Troubleshoot any problems. See Troubleshooting the SIDirect Communication Driver.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 11
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 12
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 13
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
Edit the elements in the Parameters page as needed. Five of the six elements in the page are configurable.
Note: The Legacy object is preconfigured with three Device Groups and a default network address. The
default network address and preconfigured Device Groups are not present in Legacy objects
("New_Legacy_000") that you add.
• Processor Type (not configurable): S7 PLC.
• S7 Connection: This has three configurable settings:a
• Network Address: The IP address or host name of the remote S7 CP.
Enter network address where the PLC is located (for example, "[Link]"), or a host name if one is
defined in the local hostlist. The address field cannot be blank and the IP address or host name cannot
be more than 255 characters.
Note: The preconfigured Legacy object includes a default network address: "[Link]". Any additional
Legacy objects that you add do not contain the default address (network address is blank).
• Local TSAP: The local TSAP of the computer. Select the Hex numbers for the connection resources from
the menu. The Local TSAP consists of two (2) Hex numbers. The first number corresponds to the
connection resource. Each number ranges from 00 to FF. The default values are 01 and 00, respectively.
• Remote TSAP: This Remote TSAP corresponds to what you configured in the TSAP for the S7 CP.
Configure the Remote TSAP by typing in the decimal numbers for the Remote Rack and Remote Slot, and
by selecting the Hex number for the Connection Resource from the menu. The values for the Remote
Rack No. and Remote Slot No. range from 0 to 255, with the default values of 0 and 3, respectively. The
value for the Connection Resource ranges from 00 to FF. The default value is 03.
• PLC Connectivity: The watchdog scheme for detecting the connectivity status to the PLC when there are no
activities (no items are subscribed to).
• Select the Verify connectivity when no item is subscribed check box to turn on the watchdog.
• Specify the watchdog time interval, in seconds, in the Frequency in seconds to verify the PLC
connectivity box.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 14
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
• Reply Timeout: Enter a value, in milliseconds, beyond which messages time out.
• Allowable range is 0 to 100,000 milliseconds.
• The default value is 15,000 milliseconds. If you decrease this value, the SIDirect Communication Driver
reacts faster to a communications failure.
• Connection Timeout: Enter a value, in milliseconds, beyond which a pending request to initiate a connection
times out.
• Allowable range is 0 to 100,000 milliseconds.
• The default value is 30,000 milliseconds.
• Alarms and Events: Enable Alarms or Events or disable both for this connection by selecting:
• Disable all
• Enable alarms
• Enable events
On any one connection, you can configure Alarms, Events, or none. If you need to access both Alarms and
Events, create two different connections.
• Use PLC Alarm Time: The alarm time in the PLC used to timestamp alarm and event-related data.
You can enable this feature to time stamp data in the alarm and event blocks with the timestamps provided
in the alarm and event blocks. The Communication Driver, in this case, will not generate its timestamp for
the received data. This feature is only available for data in the alarm and event blocks.
• Time Difference Between the PLC Time and the UTC: The time difference, in hours, between the PLC time
and the UTC time.
• The value range is from +12 hours to -12 hours.
• The default value is 0.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 15
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
Note: The SIDirect Symbolic object is preconfigured with three Device Groups and a default network address.
The default network address and preconfigured Device Groups are not present in additional Symbolic objects
("New_Symbolic_000") that you add.
• S7 Connection: This has two configurable settings:
• Network Address: The IP address or host name of the remote S7 PLC.
Enter the network address (for example, "[Link]"), or a host name if one is defined in the local
hostlist. The address field cannot be blank and the IP address or host name cannot be more than 255
characters.
Note: The preconfigured SIDirect Symbolic object includes a default network address: "[Link]". Any
additional Symbolic objects that you add do not contain the default address (network address is blank).
• Enable Password: You can enable password protection for access to the PLC.
i. Select the Enable Password check-box to activate the password entry field.
ii. Click Show Password to view the password you entered.
To help ensure security, passwords for Symbolic node objects can only be set on the local node and
cannot be transferred from one Configuration File (.aaCfg) to another. Therefore, if Password is
enabled on any Symbolic node object, each must be re-entered after any of the following
operations:
• Copying the Configuration File to another computer
• Cloning the base server
• Creating an instance of the base server
Device Redundancy
The OI Server Manager provides the ability to assign redundant device for fail-over protection in the event of
device failure. Two devices must be configured in the same Communication Driver having identical item syntax.
Primary and secondary devices will be set up in the REDUNDANT_DEVICE object in the OCMC, along with a
common item name (ping item) shared by each device to determine device status.
Note: Unsolicited message configuration is not supported from the device redundant hierarchy.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 16
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 17
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 2 – SIDirect Communication Driver Configuration
5. Rename the newly created object as appropriate. The New_REDUNDANT_DEVICE_000 configuration view is
displayed in the Configuration branch of the hierarchy.
6. Enter or use the device browser to select the primary and secondary devices. Open the device browser by
clicking on the ellipses (...) button and expand the device hierarchy that is displayed in the browser.
7. Enter one device item as the Ping Item that can be shared between the primary and secondary devices to
determine device status.
8. Save the hierarchy node configuration by clicking on the save icon.
Important: A Ping item must be specified and be a valid tag in both the primary and secondary controllers to
determine the connection status for $SYS$Status. The Ping item can be a static item in the device such as a
firmware version or processor type. If the Ping item is invalid or does not exist in the controller, the failover
operation may not work correctly as the value of $SYS$Status may continue to stay as FALSE in the standby
device.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 18
Chapter 3
The Device Groups and Device Items allow you to create new, modify, or delete device-group and device-item
definitions for a SIDirect Symbolic object.
• For DDE/SuiteLink communications, one or more device-group definitions must exist for each PLC that the
SIDirect Communication Driver communicates with.
• Each device-group (topic) definition must contain a unique name for the PLC associated with it.
Each configuration view associated with objects in the SIDirect Communication Driver hierarchy tree has a Save
button. When you modify the Parameters, Device Groups, or the Device Items dialog box, click Save to
implement the new modifications. If you try to open another configuration dialog box you are prompted to save
the new data to the configuration set.
• Device Group Definitions
• Device Item Definitions
• SIDirect Scan-Based Message Handling
• Using the S7 Tag Creator
• Unsolicited Message Handling
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 19
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 3 – Device Groups and Device Items
Note: When you select another part of the Server tree hierarchy, you are prompted to save the modifications to
the configuration set.
To create or add device groups
1. Right-click in the Device Groups box and click Add.
2. Enter a unique name for the device group. Device group names are case-insensitive.
To delete device groups
• Right-click on the device group to be deleted from the list and select Delete.
To edit device groups
1. Right-click on the device group to be edited.
2. Select Edit from the menu to open the Device Group Parameters dialog box.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 20
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 3 – Device Groups and Device Items
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 21
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 3 – Device Groups and Device Items
• Optimization
Select one of the following settings to configure the optimization mode the SIDirect needs to use to acquire
data from the PLC:
• S7 SAPI
• Block read
• Auto
The default is Auto. For more detailed information, see "Optimization Considerations".
Note: The S7-1200 and S7-1500 PLCs do not support SAPI.
• Block Services
Communication DriverIf the Block Services function is required, you have to configure two settings in the
Block Services box:
• Initial Values Timeout
Allowable range for Initial Values Timeout is 0 to 65,535 milliseconds; the default value is 5,000.
• Update Timeout
Allowable range for Update Timeout is 0 to 65,535 milliseconds. The default value is 5,000.
The Block Services function needs time-outs to supervise reading initial values and updating the block
items to this connection. A time-out value of 0 (zero) disables the time supervision of block messages.
Block services are unconfirmed services. If the remote station does not send data within this time range,
the Block Services is reinitialized and an error message appears in the Logger.
To configure default update intervals
• To configure a default update interval for the object, right-click in the Device Groups box and click Config
Default Update Interval on the menu.
To edit update intervals
• To edit the update interval for an object, double-click its value in the Update Interval column and make the
edits.
• Update Interval is the frequency in milliseconds that the SIDirect Communication Driver acquires data
from the topics associated with that device group.
• Different topics can be polled at different rates in a PLC by defining multiple device-group names for the
same PLC and setting a different Update Interval for each device group.
Note: When you select another part of the SIDirect Communication Driver tree hierarchy, you are prompted to
save the modifications to the configuration set.
Optimization Considerations
The SIDirect Communication Driver uses the following same optimization considerations as the S7
Communication Driver:
• Use different Poke modes.
• Use different reading optimization modes.
• Use cyclic services to minimize traffic.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 22
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 3 – Device Groups and Device Items
After you configure item names, the Communication Driver can perform OPC Item browsing. When the
Communication Driver is running and an OPC client requests item information, the configured items appear
under the PLC hierarchy node. User-defined data types appears at the lowest level in the hierarchy when
browsed via the OPC client.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 23
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 3 – Device Groups and Device Items
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 24
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 3 – Device Groups and Device Items
When the file is imported, new item references are added based on unique names. If there are duplicate
names, you can replace the existing entry with a new entry or ignore the new entry.
When the Communication Driver is running and an OPC Client requests item information, the imported
configured items appear under the PLC hierarchy node.
Note: The SIDirect Communication Driver does not support importing preconfigured items (alias names of items
that work with OPC) in an output file generated by the Siemens Step7 software.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 25
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 3 – Device Groups and Device Items
works only with the S7 I/O Server. Additionally, the SIDirect S7 Tag Creator has numerous other features that are
not found in the I/O Server S7 Tag Creator.
Note: The S7 Tag Creator does not read the current memory/register layout from the S7 PLC online.
Using the SIDirect DIObject S7 Tag Creator, you can:
• Generate alias names and tag names from the Siemens Step 7 .awl, .asc, .dif, .sdf, and .seq output files.
• Categorize tags into three different views for your selection: S7 tag hierarchy, alias name, and tag data type.
• Continuously apply user-defined filter criteria for alias names.
• Automatically generate tags.
• Import tags into the Scan Group, Block Read, and Block Write DA Groups on the S7C_S7 DIObject editor.
The S7 Tag Creator module generates tags for ArchestrA and SIDirect DIObjects. You can either directly specify
the tags or import tag files generated by the Siemens S7 Step 7 programming software.
Block Services
In addition to unsolicited messages based on critical conditions or events, S7 PLCs can also handle another type
of unsolicited messages called Block Services.
You can use Block Services to send blocks of data up to 64KBytes within one send job and trigger it by using a
timer, an event, an I/O activity, or initiate it via a program code.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 26
Chapter 4
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 27
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 4 – Using Auto-Build with the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 28
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 4 – Using Auto-Build with the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 29
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 4 – Using Auto-Build with the SIDirect Communication Driver
Refer to the section "Using Auto-Build" in the Communication Drivers Pack Help for more details.
Note: If you make any changes to the configuration of the System Management Server (SMS) during run time,
you must restart the AVEVA Communications Backend Service in the Services console of your machine. In the
Advanced Configuration of the System Management Server (SMS), if you change the HTTP Port or the HTTPS
Port then you must run the below command as an administrator in the command prompt:
If you change the HTTP Port field
netsh http add urlacl url=[Link] port configured in SMS>/oi/ user="NT
Authority\Network Service"
If you change the HTTPS Port field
netsh http add urlacl url=[Link] port configured in SMS>/oi/ user="NT
Authority\Network Service"
If you do not run the above commands after changing the ports and try to access the Auto-Build functionality,
you will get a HTTP 503 error saying the service is unavailable.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 30
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 4 – Using Auto-Build with the SIDirect Communication Driver
The attributes of the selected instance are displayed in the center of the IDE screen as shown below.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 31
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 4 – Using Auto-Build with the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 32
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 4 – Using Auto-Build with the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 33
Chapter 5
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 34
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Item Naming
The SIDirect Communication Driver uses an item-naming convention based on the two-letter data-type
identifiers used in programming the Siemens PLCs. The server accepts both the English and German standard
identifiers.
The tables in this section describe the item naming convention for the Siemens S7-1500 PLCs. The ranges
specified in those tables vary according to the type of the controller used.
Note: PDU (Protocol Data Unit) size is factored in determining Read/Write size limits. The S7-300 family of
controllers can process PDU lengths of 480 to 960 bytes, depending on the controller. An S7-400 controller can
process PDU lengths of 960 bytes.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 35
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 36
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Where:
d is the data block number, with a range from 1 to 65535.
x is the start address, with a range from 0 to 65535.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 37
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Note: All data blocks are Read/Write. The longest string or array that can be read in a cyclic service has the
length of the PDU size minus 32 bytes. The longest string the InTouch software can process is 131 bytes. The
longest string that can be poked is 256 bytes or the PDU size minus 28 bytes, whichever is less. The
Communication Driver processes a write (POKE) to a Data Block.
Examples for S7-300/400/1200/1500 PLCs:
DB123,W24
DB23,DINT10BCD
DI5,X2.0
DI6,BYTE4,10
Flag Bytes
The following table summarizes data format, item or point, suffix, data type, and range for Flag Bytes. See
Conversions and Suffixes of Items (Absolute Addressing) for suffix definitions.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 38
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 39
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 40
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
VT_BSTR -24D_20H_31M_23S_648MS to
24D_20H_31M_23S_647MS
Where:
x is the start address, with a range from 0 to 65535.
y is the bit position, with a range from 0 to 7.
0 is the LSB (Least Significant Bit).
7 is the MSB (Most Significant Bit).
n is the start address of 2-byte data/2-byte data arrays, with a range
from 0 to 65534.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 41
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Note: All flags are Read/Write. The longest string or array that can be read in a cyclic service is the length of the
PDU size minus 32 bytes. The longest string the InTouch software can process is 131 bytes. The longest string
that can be poked is 256 bytes or the PDU size minus 28 bytes, whichever is less. The Communication Driver
processes a write (POKE) to a Flag Byte.
Input Bytes
The following table summarizes the data format, item or point, suffix, data type, and range for Input Bytes. For
suffix definitions, see Conversions and Suffixes of Items (Absolute Addressing).
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 42
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 43
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 44
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Where:
x is the start address, with a range from 0 to 65535.
y is the bit position, with a range from 0 to 7.
0 is the LSB (Least Significant Bit).
7 is the MSB (Most Significant Bit).
n is the start address of 2-byte data/2-byte data arrays, with a
range from 0 to 65534.
m is the start address of 4-byte data/4-byte data arrays, with a
range from 0 to 65532.
v is the length of data in elements (an item in an array), with a
range from 1 to (net PDU data size/type size - header
information).
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 45
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Note: All inputs are Read-Only. The longest string or array that can be read in a cyclic service is the length of the
PDU size minus 32 bytes. The longest string the InTouch software can process is 131 bytes. The Communication
Driver does not process a write (POKE) to an Input Byte.
Output Bytes
The following table summarizes data format, item or point, suffix, data type, and range for Output Bytes. See
Conversions and Suffixes of Items (Absolute Addressing) for suffix definitions.
Data Format Item/Point Suffix Data Type Range
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 46
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 47
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 48
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 49
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 50
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 51
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 52
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
*: For DDE/SuiteLink, the item value is the Hex ASCIi representation of the complete array. The result is one string containing
all the elements of the array in the Hex ASCIi representation of the binary data in big-endian format when data is returned to
the DDE/SuiteLink layer.
**: For DDE/SuiteLink, this value is restricted to the range of 0 to 2147483647. Values higher than that are clamped to the
maximum value of 2147483647 in a SuiteLink or DDE client. In this case, the quality of the item shows "Clamp High."
***: The Communication Driver provides suffixes (S5T, TR, DT, KT, and BCD) that are used to interpret raw bytes as having a
special data format. Review the PLC processor documentation, as not all processors have ladder logic internally to interpret
those data formats the same way (for example, the S7-1200 PLC).
Where:
n is the start address of 2-byte data/2-byte data arrays, with a range from 0 to
65534.
m is the start address of 4-byte data/4-byte data arrays, with a range from 0 to
65532.
v is the length of data in elements (an item in an array), with a range from 1 to
(net PDU data size/type size - header information).
Note: All outputs are Read/Write. The longest string or array that can be read in a cyclic service is the length of
the PDU size minus 32 bytes. The longest string the InTouch software can process is 131 bytes. The longest string
that can be poked is 256 bytes or the PDU size minus 28 bytes, whichever is less. The Communication Driver
processes a write (POKE) to an Output Byte.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 53
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 54
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 55
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 56
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Where:
x is the start address, with a range from 0 to 65535.
y is the bit position, with a range from 0 to 7.
0 is the LSB (Least Significant Bit).
7 is the MSB (Most Significant Bit).
n is the start address of 2-byte data/2-byte data arrays, with a
range from 0 to 65534.
m is the start address of 4-byte data/4-byte data arrays, with a
range from 0 to 65532.
v is the length of data in elements (an item in an array), with a
range from 1 to (net PDU data size/type size - header
information).
Note: All peripheral inputs are Read-Only. The longest string or array that can be read in a cyclic service is the
length of the PDU size minus 32 bytes. The longest string the InTouch software can process is 131 bytes. The
longest string that can be poked is 256 bytes or the PDU size minus 28 bytes, whichever is less. The
Communication Driver does not process a write (POKE) to a Peripheral Input Byte. Some input modules are not
readable.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 57
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 58
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 59
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 60
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 61
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
n is the start address of 2-byte data/2-byte data arrays, with a range from 0 to
65534.
m is the start address of 4-byte data/4-byte data arrays, with a range from 0 to
65532.
v is the length of data in elements (an item in an array), with a range from 1 to
(net PDU data size/type size - header information).
***: The Communication Driver provides suffixes (S5T, TR, DT, KT, and BCD) that are used to interpret raw bytes
as having a special data format. Review the PLC processor documentation, as not all processors have ladder logic
internally to interpret those data formats the same way (for example, the S7-1200 PLC).
Note: All peripheral outputs are Write-Only. The longest string or array that can be read in a cyclic service is the
length of the PDU size minus 32 bytes. The longest string the InTouch software can process is 131 bytes. The
longest string that can be poked is 256 bytes or the PDU size minus 28 bytes, whichever is less. All output
modules are not readable. Only POKES are allowed.
Counters
The following table summarizes data format, item or point, suffix, data type, and range for Counters.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 62
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Where:
x is the start address, with a range from 0 to 65535.
When the suffix is used, the client is responsible for ensuring the correct value is specified or returned.
Note: S7-1200 and S7-1500 PLCs do not support "direct" counter\timer access by the client/server. That is, you
cannot use the current S7-300/400 item name Cx or Tx and its associated suffixes to subscribe to counter\timer
values from the S7-1200 and S7-1500 PLCs. However, you can use the database items to indirectly output the
associated system counter\timer value (internal IEC counter\timer) from the PLC.
For example:
If the value of counter C0 is 42, the value read by just using the "C0" item syntax is 42. However, if the item
syntax is "C0 BCD," the value returned by the Communication Driver is 66.
A similar principle applies to poking:
If the value for the counter is 42, using the "C0" pokes a value of 42 into the counter C0. However, with the "C0
BCD" syntax, the poke value is 66.
Note: All counters are Read/Write. The Communication Driver processes a write (POKE) to a counter. Although
the Communication Driver allows poking any word value into counters, the S7 PLC can only process values in the
range of 0…2457 or 0…999 (BCD).
Timers
The following table summarizes data format, item or point, suffix, data type, and range only for the S7-300,
S7-400, and S7-1200 Timers.
When the suffix is used, the client is responsible for ensuring the correct value is specified or returned.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 63
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Note: S7-1200 and S7-1500 PLCs do not support "direct" counter\timer access by the client/server. That is, you
cannot use the current S7-300/400 item name Cx or Tx and its associated suffixes to subscribe to counter\timer
values from the S7-1200 and S7-1500 PLCs. However, you can use the database items to indirectly output the
associated system counter\timer value (internal IEC counter\timer) from the PLC.
For example:
If the value of timer T0 is 42, the value read by just using the "T0" item syntax is 42. However, if the item syntax is
"T0BCD," the value returned by the Communication Driver is 66.
A similar principle applies to poking:
If the value for the timer is 42, using the "T0" pokes a value of 42 into the timer T0. However, with the "T0BCD"
syntax, the poke value is 66.
Note: All timers are Read/Write. The Communication Driver processes a write (POKE) to a timer. Although the
Communication Driver allows poking any word value into timers, the S7 PLC can only process values that
represent a valid time format.
Block Items
The SIDirect Communication Driver supports Block Items for the S7-300, S7-400, and S7-1500 PLCs. The server
does not support Block Items for the S7-1200 PLCs.
The Block Items have two sets of items:
• Read-Only Block Items
• Write-Only Block Items
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 64
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 65
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 66
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Note: All Block items are Read-Only. The longest string or array that can be read in a block service is the length
of 65534 bytes. The longest string the InTouch software can process is 131 bytes.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 67
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
acknowledgment is received
from the PLC.
After the acknowledgment is
received from the PLC, the
value of this item is set to 0.
*: For DDE/SuiteLink, the item value is the Hex ASCIi representation of the complete array. The result is one string containing
all the elements of the array in the Hex ASCIi representation of the binary data in big-endian format when data is returned to
the DDE/SuiteLink layer.
**: The starting address is always at 0 for Writes. The number of bytes written to the PLC block is determined from the length
of the input byte stream. However, the length of the byte stream must be less than 65535.
***: The Siemens S7 block write protocol BSEND does not allow a starting address. All block writes to the PLC always start at
address 0. To circumvent this limitation, the BWC item syntax allows for a starting address. The logical number of bytes written
to the PLC block is determined from the difference in the start address and end address, (q-x+1), or the length of the input byte
stream.
If the input byte stream is longer than the (q-x+1), only (q-x+1) bytes are written.
If the input byte stream is shorter than (q-x+1), the whole input byte stream is written.
Internally, the Communication Driver allocates cache buffers based on the PLC data block and the end address. For more
information, see Block Write Caching.
****: The [Link] item is readable to allow monitoring of the status of the block send function.
Where:
Note: All BW and BWC block items are Write-Only. [Link] items are Read/Write. The longest string or
array that can be written in a block service is the length of 65534 bytes. The longest string the InTouch software
can process is 131 bytes.
Block Write Caching
BWC is a special item that caches the data before sending it to the PLC. The item syntax for the BWC item is:
BWC<R_ID>-<length>,<start_address>
The R_ID is the ID that is configured for the Block Write in the PLC. A caching buffer is created, based on R_ID
and length as an index, inside the server whenever you advise the BWC item. The buffer is not created if one
already exists for the same R_ID and length.
For example, you advise the following items: BWC10-60,50, BWC10-60,20, BWC10-60,0, BWC10-20,10 and
BWC10-20,0. Only two buffers are created inside the server for these items:
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 68
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 69
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Xx.y VT_BOOL 0 or 1
Sx,v VT_BSTR String
STRINGx,v VT_BSTR String
Bx DT VT_UI1 0 to 255
BYTEx VT_UI1 0 to 255
VT_BSTR String
Bx,v VT_ARRAY|VT_UI1 0 to 255 for each
element**
BYTEx,v VT_ARRAY|VT_UI1
0 to 255 for each
element**
CHARx DT VT_I1 -128 to 127
VT_BSTR String
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 70
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Xx.y VT_BOOL 0 or 1
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 71
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Bx DT VT_UI1 0 to 255
BYTEx VT_UI1 0 to 255
VT_BSTR String
Bx,v VT_ARRAY|VT_UI1 0 to 255 for each
element**
BYTEx,v VT_ARRAY|VT_UI1
0 to 255 for each
element**
CHARx DT VT_I1 -128 to 127
VT_BSTR String
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 72
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
String
Where:
<EV_ID> is the ID defined by Step7, in the integer format, filled with
leading zeros up to six (6) characters.
x is the start address, with a range from 0 to 65535.
y is the bit position, with a range from 0 to 7.
0 is the LSB (Least Significant Bit).
7 is the MSB (Most Significant Bit).
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 73
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 74
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Term Description
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 75
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Endian Conversion
In endian conversions, all items with the following data formats are copied in a reverse-byte order to convert the
data from the big endian of the PLC to the little endian of the computer:
• Word
• Integer
• Double Word
• Double Integer
• Real
Suffix BCD
All items with the following data formats and suffix BCD are converted from the BCD format into the integer and
back:
• Word
• Integer
• Double Word
• Double Integer
Suffix DT
All items with the following data formats and suffix DT (Date and Time) are converted from DT into a message
and back to store a value in the range of 1990-1-1-[Link].000 to 2089-12-31-[Link].999."
• Byte
• Char
This is an 8-byte value (although declared as "byte") that contains both the date and time. In the client, you see a
string such as: 1999-12-13-[Link].888. The construction is a BCD interpretation. This means that the value in
the memory of the PLC (seen as a hex value) represents directly the single "parts" of the string above.
The example above looks like the following in the memory:
0x9912130706058880
The last character ("0" in this example) is not used in this string, but represents the day of the week. If a DT item
is poked, the server writes the correct day of the week to the PLC.
Suffix KT
All items with the following data format and suffix KT are converted from KT to a message and back to store a
value in the range of 0.0 to 999.3.
• Word
The item contains a time value in the same format as in the old Step-5 PLCs. In the client, you see a string such
as: 999.3. The construction is like a BCD interpretation, but the digits are twisted.
The example above looks like the following in the memory of the PLC:
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 76
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
0x3999
Another example, 0x2345, in the memory of the PLC is 345.2 as the item value.
Suffix S5T
All items with the following data format and suffix S5T are converted from S5T to a message and back to store a
value in the range of 0ms to 2h46m30s.
• Word
The memory in the PLC is exactly the same as for the KT items, but the presentation is different, although the
meaning is the same. This means a memory content of 0x3999 (as in the example for KT) results in the string of
2h46m30s0ms.
The meaning of 999.3 (KT) is:
999 The first three characters are the time value in BCD.
Suffix TR
All items with the following data format and with suffix TR (Time as real value) are converted from TR into a real
value or back to store a value in the range of 0.0 to 9990.0 (s).
• Word
The memory in the PLC is exactly the same as for the KT items, but the presentation is different, although the
meaning is the same. The memory content of 0x3999 (as in the example for KT) results in the real value of
9990.0. The construction is the result of the multiplication as described in the examples for S5T, given to the
client as a real value.
Suffix D
All items with the following data formats and with suffix D (Date) are converted from D into a message or back to
store a value in the range of 1990-1-1 to 2168-12-31.
• Word
• Integer
The item contains the date. The construction is the number of days since 1/1/1990. The integer value 4010, for
example, represents 2000-12-24.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 77
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Suffix T
All items with the following data formats and with suffix T (Time) are converted from T into a message or back to
store a value in the range of
–24D_20H_31M_23S_648MS to 24D_20H_31M_23S_647MS.
• Double Word
• Double Integer
The item contains a time in the IEC format. The client shows a value such as: 3D_7H_32M_11S_153MS. This is
the time in milliseconds, shown as a more readable string.
The range from 0 to 2147483647 (0x0 to 0x7FFFFFFF) is interpreted as a positive time value. The range from
-2147483648 to -1 (0x80000000 to 0xFFFFFFFF) is interpreted as a negative time value.
Suffix TOD
All items with the following data formats and with suffix TOD (Time Of Day) are converted from TOD into a
message or back to store a value in the range of [Link].000 to [Link].999.
• Double Word
• Double Integer
The item contains the time of a day. The client shows a value such as: [Link].654. This is the time in
milliseconds (as for T), shown as a more readable string. The highest value is [Link].999. There are no negative
values. All values greater than 86399999 (0x05265BFF) are shown with quality 0x0056 (Clamp Hi).
Note: If you use the Communication Driver in the English operating system, the following applies. The string is
always represented in a 24-hour format, regardless of the time representation of the operating system used. This
means you see the time [Link] P.M. as [Link].0.
LREAL 64 -1.7976931348623158e+308 to
-2.2250738585072014e-308,
±0,
+2.2250738585072014e-308 to
+1.7976931348623158e+308
S7-1500 PLCs may not support LREAL types on all memory regions.
The item name syntax for LREAL is as follows:
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 78
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Where:
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 79
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
2 Month USINT 1 to 12
3 Day USINT 1 to 31
5 Hour USINT 0 to 23
6 Minute USINT 0 to 59
7 Seconds USINT 0 to 59
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 80
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 81
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 82
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Where:
d is the data block number, with a range from 1 to 65535
m is the start offset of an DTL tag
v is the length of an array in elements (an item in an array), with a
range from 1 to 65535
DTL Clamping
Any DTL value being read from or poked to the PLC that has a year field less than the minimum or greater than
the maximum year results in the date and time being clamped as follows:
For Canonical VT_BSTR:
Year < 1970 = 1970-01-01-[Link].000000000
Year > 2554 = 2554-12-31-[Link].999999999
For Canonical VT_DATE:
Year < 1970 = 1970-01-01-[Link]
Year > 2554 = 2554-12-31-[Link]
If any other field, month, day, hour, min, second, or nanosecond is less than the minimum or greater than the
maximum, it results in a rejected poke or read. Also, an uncertain quality results for subscribed tags.
This applies to the syntax of all DTL names.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 83
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
The reason for doing this is to maintain the meaning of the decimal place after the seconds field. For example,
2011-10-31-[Link].5 results in 500000000 being poked to the nanoseconds field of the DTL, which really means
1/2 a second. To enter 5 nanoseconds, you must poke 2011-10-31-[Link].000000005.
All other fields of the date and time are considered to be padded to the left.
High-Speed Counters
S7-1500 PLCs support High-Speed Counters. After the High-Speed Counters are enabled in the PLC program, they
can be accessed through the Input Bytes in DWord format (for example, ID1000, depending on which counter is
to be addressed, the configuration of the counter, and the CPU model of the S7-1500 PLC).
For more information about configuring and using the High-Speed Counters, see the S7-1500 PLC
documentation.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 84
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 85
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 86
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Data Format Structural Suffix Data Type Access Value Range / Notes
Element
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 87
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
±0,0
+2.2250738585072014e-308
to
+1.7976931348623158e+308
LWord VT_UI8 Read/Write 0 to 18446744073709551615
Real VT_R4 Read/Write -3.402823e+38 to
-1.175495e-38
±0,0
+1.175495e-38 to
+3.402823e+38
SInt VT_I1 Read/Write -128 to 127
String VT_BSTR Read/Write 0 to 254 characters
UDInt VT_UI4 Read/Write 0 to 4294967295
UInt VT_UI2 Read/Write 0 to 65535
ULInt VT_UI8 Read/Write 0 to 18446744073709551615
USInt VT_UI1 Read/Write 0 to 255
WChar VT_UI2 Read/Write $0000 - $D7FF
WString VT_BSTR Read/Write 0 to 254 characters
x. possible values: 0 to 16382
Word VT_UI2 Read/Write 0 to 65535
Date VT_UI2 Read/Write 0 to 65535 (days)
D VT_BSTR Read only 1990-01-01 to 2168-12-31
Date_And_T VT_Date Read/Write 1990-01-01-[Link].000 to
ime 2089-12-31-[Link].999
DT VT_BSTR Read/Write 1990-01-01-[Link].000 to
2089-12-31-[Link].999
Note: DT suffix is required for
SuiteLink.
LDT VT_UI8 Read/Write 0 to 18446744073709551615
(nanoseconds)
LDT VT_BSTR Read/Write 1970-01-01-[Link].000000000
to
2263-04-11-[Link].8547758
08
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 88
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
DTL <Structure>
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 89
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Data Format Structural Suffix Data Type Access Value Range / Notes
Element
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 90
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 91
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 92
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 93
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 94
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Data Format Structural Element Suffix Data Type Access Value Range /
Notes
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 95
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 96
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Data
Tag Member Application Server Attribute I/O reference
Block
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 97
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
In Object Viewer:[Link](DB.T2[0].Mem)
In InTouch: DB.T2[0].Mem
In UDO: attribute(DB."T1 T2"[2].Mem)
DB T1 T2[2] Mem In Object Viewer: [Link](DB."T1 T2"[2].Mem)
In InTouch: DB."T1 T2"[2].Mem
Where:
• SIDir - represents a DDE/SL object configured to connect SIDirect Communication Driver
• T01 - is the topic name in the DDE/SL object
Suffix D (Symbolic)
The suffix D can be used with the DATE data type. When used without the suffix D, DATE saves the date as an
unsigned integer, containing the year, month, and day. See General Data Types for additional information about
DATE.
The suffix D (Date) converts DATE into a string to store the year, month, and day.
Usage: DATE D
For example: MyDate D
• The suffix D converts DATE to an 8-byte string (VT_BSTR) that stores the date. Range is 1990-01-01 to
2168-12-31. The construction is the number of days since 1/1/1990.
• When used without the suffix D, the SIDirect Communication Driver reads DATE from the PLC as an unsigned
integer (VT_UI2). Range is 0 to 65535 (days).
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 98
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Suffix LT (Symbolic)
The suffix LT can be used with the LTime data type. When used without the suffix, LTime saves time as an integer,
containing number of days (d), hours (h), minutes (m), seconds (s), milliseconds (ms), microseconds, (us), and
nanoseconds (ns). See General Data Types for additional information about LTime.
The suffix LT converts the LTime data type into a 64-bit string defining the time.
Usage: LTime LT
For example: MyLTime LT
• The suffix LT converts LTime into a 64-bit string (VT_BSTR) that stores the time in string format. Range is
-106751d23h47m16s854ms775us808ns to 106751d23h47m16s854ms775us807ns
• When used without the suffix LT, the SIDirect Communication Driver reads LTime from the PLC as an integer
(VT_I8). Range is -9223372036854775808 to +9223372036854775807
Suffix T (Symbolic)
The suffix T can be used with the Time data type. When used without the suffix S5T, the SIDirect Communication
Driver reads the 4-byte time from the S7-1500 PLC. See General Data Types for additional information about
Time.
The suffix T converts Time into a string.
Usage: Time T
For example: MyTime T
• The suffix T converts Time into a string (VT_BSTR) that stores the time as a value in the range of
-24d20h31m23s648ms to +24d20h31m23s647ms.
• When used without the suffix T, the SIDirect Communication Driver reads Time from the PLC as an integer
(VT_I4) with a range of -2147483648 to +2147483647 (milliseconds).
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 99
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Data Conversion
The following table describes how the SIDirect Communication Driver handles values that cannot be converted
or do not meet the limit specifications.
Conversion Description
Quality Settings
The SIDirect Communication Driver uses the general OPC-defined quality settings. An item can have six basic
data quality states.
00C0 Data quality good Data communications is good and data is good.
The register is read or written to without any problems
converting the data.
0055 Clamp low Data communications is good but the data is uncertain.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 100
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
0040 Quality uncertain/No Data communications is good but the data is uncertain.
convert
The data cannot be converted.
The server may return either a constant in place of the data
or return quality information alone.
The data is usable. However, it is not known whether the
value is too large or too small.
Incorrect data type.
Floating point is not a number.
For example, 0x000a in a PLC BCD register.
0004 Bad configure/No This is a configuration error.
access
Data communications is good but the data cannot be sent
and/or received. The data is bad and cannot be used.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 101
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 5 – SIDirect Communication Driver Reference
Item Validation
When items are added, they are not initially validated. Since SIDirect symbolic addressing is in text format, the
SIDirect Communication Driver can only determine whether an item is valid by querying the PLC to check
whether the item is defined, and then returning the data type. Validation begins after items are added.
If you are adding many items, performance would be negatively impacted if the query was performed
immediately. This delayed validation improves performance.
The SIDirect Communication Driver contains a tag database in its address space that closely mirrors the tag
database in the S7 1200 or S7-1500 PLC. If the tag database in the PLC is not available, adding an item always
succeeds and the data type VT_EMPTY is sent to the PLC. Once the SIDirect Communication Driver successfully
queries the PLC, the data type is updated to the correct type.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 102
Chapter 6
• Troubleshooting Tools
• Finding the SIDirect Communication Driver Version Number
• Monitoring Connectivity Status with the PLC
• Monitoring the status of Communication Driver Conversations
• Debugging Communications Between the SIDirect Communication Driver and the PLC
• Diagnostics and Error Tracing
Troubleshooting Tools
The OI Server Manager provides access to diagnostics and other statistical data. The Log Viewer provides access
to event messages logged during the operation of the SIDirect Communication Driver. Your client, for example,
the InTouch software, can also monitor connectivity with the PLC through the $SYS$Status item. Use these tools
together with the information in this chapter to troubleshoot your SIDirect Communication Driver.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 103
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 104
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
=view|DDEStatus!S7PLC
or
=view|IOStatus!S7PLC
where,
• view is the name of the InTouch application.
• [DDE][IO] Status is the built-in topic name that monitors the status of communications between the
Communication Driver and the InTouch software.
• S7PLC is the exact access name defined in the InTouch application for the PLC.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 105
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Note: When using the channel=INITIATE statement, the word channel must be used in the =POKE statement
instead of the actual cell reference. The "application name" and "topic name" portions of the formula must be
enclosed in quotation marks.
=POKE(channel,"itemname", Data_Reference)
• Pokes the value contained in the Data_Reference to the specified item name or the actual location in the
PLC, via the channel number that is returned by the previously executed INITIATE function.
• Data_Reference is the row/column ID of the cell containing the data value.
=TERMINATE(channel)
• Closes the channel at the end of the macro.
• Channel is the channel number returned by the previously executed INITIATE function.
• Some applications have a limited number of channels, therefore they should be closed when finished
=RETURN()
Marks the end of the macro.
Note: See the .xlm sample Excel poke macro provided on the install CD. See the Microsoft Excel documentation
for complete details on entering Remote Reference formulas for cells.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 106
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
For more information on Diagnostics, see "Using the Diagnostics Node" section in the Communication Drivers
Pack help.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 107
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 108
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 109
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 110
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 111
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Diagnostics Facility
The SIDirect Communication Driver provides diagnostics in the following areas:
• Communications Processor Diagnostics
• S7 Communications Processor Diagnostics
• Items Diagnostics
• Messages Diagnostics
• Device Group Diagnostics
Items Diagnostics
To the IO Server-provided diagnostics of items, the following two columns are added:
• The message ID
The message ID consists of two parts:
• A letter indicating the type of message.
For example, P-poll, C-cyclic, B-block, and so on.
• A message number.
For example, order ID, block ID, event ID, and so on.
• The S7 error code
The diagnostic information shows the message ID. For example, order ID, block ID, or event ID, and the error
code description.
The following table shows different error codes and the corresponding description:
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 112
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 113
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 114
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Messages Diagnostics
Four types of messages with different diagnostics appear.
Variable Service Message with:
• P – poll message
• W – poke message
• C – cyclic message
• B – block message
In addition to the standard Communication Driver diagnostic messages, the following information is added:
• Message ID
• Two PDU sizes indicating block size if applicable and request block size
• The message or S7 error code
The diagnostic information shows the Communication Driver information text plus the message ID, PDU size, and
error text description.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 115
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Message is in The message state is set The response for this Adjust the message reply
SlowPollMode (%s to Slow poll interval. message has not been timeout in the server in
msg=0x%08X) for topic received by the server. accordance with the
%s Either the response performance of the PLC
time is very small or the to achieve the optimal
PLC is very busy. behavior.
Message leaves the The message state is The server recovered N/A
SlowPollMode (%s coming out of the Slow from the error
msg=0x%08X) for topic poll interval. situation.
%s
UpdateInterval for The update interval for N/A N/A
Device Group: %s the device group has
changed to %d been changed. The
messages are now to be
polled at a new update
interval for this device
group.
Setting all items to bad The server updates the The connection with Check the connection
in hierarchy: %s status of all the items as the PLC is broken. with the PLC.
Bad on this connection.
Connection with '%s' The socket connection The PLC is not The SIDirect
dropped, restarting with the PLC fails due to responding to the Communication Driver
connection a given error code: "The Connect request from will attempt to
PLC initiated termination the Communication automatically reconnect.
of the Socket Driver. No user action is
Connection." required.
Connection with '%s' The socket connection The PLC has been Check the PLC connection
dropped while pending, with the PLC fails due to disconnected and/or and clear any
going to slow poll a given error code: "The has faulted. outstanding PLC faults.
PLC initiated termination
of the Socket
Connection."
Block receive size: The server receives an This message from the Check the PLC health
doesn't match msg size invalid block packet from PLC is garbled. status and the network
the PLC. condition.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 116
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Note: See the Log Viewer online documentation for more information about using log flags.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 117
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Internal Error: The internal type This is an internal Turn on POLL_TRACE in the
CIoVariant::Update() conversion program error. Logger to obtain additional
encounters an trace information. Report
invalid or unknown the error to Wonderware
type. Technical Support.
Send fail because of The message cannot This is an internal Turn on POLL_TRACE,
wrong order id be sent to the PLC program error. POKE_TRACE, and
because of the CYCLIC_TRACE in the Logger
order ID is incorrect. to obtain additional trace
information. If the problem
persists, report it to
Technical Support.
(%d):s7_multiple_read_r The poll message This is an internal Turn on POLL_TRACE in the
eq (orderid=%d) [(%d) cannot be sent to program error. Logger to obtain additional
%s] the PLC. trace information. If the
problem persists, report it
to Technical Support.
Internal state error: The server receives This is an unknown Turn on POLL_TRACE in the
multiple read response a duplicate error. Logger to obtain additional
(S7Type 0x%X) response for the trace information. If the
poll message. problem persists, check
with the PLC vendor.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 118
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
(%d):Invalid item name: The requested item The item syntax is Correct the item syntax as
%s (%s) name has a bad wrong. defined in this user’s guide.
syntax.
(%d):Invalid item name The requested item The item suffix is Correct the item suffix as
suffix: %s (%s) suffix has a bad wrong. defined in this user’s guide.
syntax.
Alarm event header key The alarm received This is a PLC issue. Turn on
not: FF09: %02X%02X from the PLC has a ALARMS_AND_EVENTS_TR
bad header. ACE in the Logger to obtain
additional trace
information. Report the
error to Wonderware
Technical Support.
Send: (MSG_FAIL): The server fails to This is an internal Turn on POLL_TRACE,
message (%s send the message to error. POKE_TRACE, and
msg=0x%08X) the PLC. CYCLIC_TRACE in the Logger
[msg_state=%d,con_state to obtain additional trace
=%d] information. Report the
error to Technical Support.
Timeout for initial values The block message The PLC does not Check the PLC program and
of block with r_id=%d has timed out for send the block see the B_SEND is
the initial updates. update. configured correctly.
Timeout updating values Timeout occurs The connection with Check the PLC program and
of block with r_id=%d while updating the the PLC may be see the B_SEND is
subsequent values dropped. configured correctly.
for the block
message.
Release blockid:%d for Releasing the block This is an internal Turn on BLOCK_TRACE in
message (%s ID from the block error. the Logger to obtain
msg=0x%08X,con=%s) message operation additional trace
[number of blockids=%d] fails. information. If the error
was not successful persists, report it to
Technical Support.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 119
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
S7BlockMessage:: The server cannot The server runs out Turn on BLOCK_TRACE in
HandleResponse: cannot allocate the of memory. the Logger to obtain
allocate memory for memory for the additional trace
response data (len: %d) response received information. Restart the
from the PLC for the server or the computer.
block message.
S7BlockMessage:: The server receives This is a PLC Turn on BLOCK_TRACE in
HandleResponse: too too much data for problem. the Logger to obtain
much block data the block message. additional trace
received: (received: %d + information. Report the
new: %d more than error to Technical Support.
expected: %d)
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 120
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Can't send request for The server cannot This is an unknown Turn on POLL_TRACE,
msg=0x%08X (no orderid send the message to error. POKE_TRACE, and
available) the PLC because it CYCLIC_TRACE in the Logger
runs out of order to obtain additional trace
IDs. information. Report the
error to Technical Support.
Send fail because of The server cannot This is an unknown Turn on POLL_TRACE,
wrong order id send the message to error. POKE_TRACE, and
the PLC because the CYCLIC_TRACE in the Logger
order ID is incorrect. to obtain additional trace
information. Report the
error to Technical Support.
(%d): The write request to The data poke may Turn on POKE_TRACE in the
s7_multiple_write_req the PLC fails. be too long or this is Logger to obtain additional
(orderid=%d) [(%d) %s] an internal error. trace information. Report
the error to Technical
Support.
Internal state error: The server receives This is an unknown Turn on POKE_TRACE in the
multiple write response a duplicate error. Logger to obtain additional
(S7Type 0x%X) response for the trace information. If the
poke message. problem persists, report the
error to Technical Support.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 121
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Can't create poke The server cannot The item byte range Split the item into smaller
message for item %s, fit this item into a is larger than the PLC items so that they can be
data size is too large poke message, PDU size. fitted into the available PDU
size (480 bytes).
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 122
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
therefore it cannot
poke this item.
Can't create poke The poke data for The poke data value Check the value being
message for item %s, not creating a poke cannot be converted poked and create the
able to generate data message cannot be into the PLC correct format.
generated. datatype.
,%s, Leaving Slow Poll This is only a piece The connectivity to If this message shows up
Mode of information the PLC recovered consistently, verify the
about the server from a failure. network connectivity to the
leaving the Slow Poll Normal PLC.
mode. communications is
resumed.
,%s, Entering Slow Poll This is only a piece The connectivity to Verify the network
Mode of information the PLC failed. The connectivity to the PLC.
about the server Communication Turn on
entering the Slow Driver tries to CONNECTION_TRACE,
Poll mode. reconnect at the DASSend, and DASReceive
Slow Poll interval. in the Logger to obtain
additional diagnostic
information.
TIMEOUT for pending A timeout occurs A configuration or Check the communications
initiate request while waiting for an communications or configuration. If the
initiate error occurred. problem persists, turn on
confirmation. CONNECTION_TRACE,
DASSend, and DASReceive
in the Logger to obtain
additional diagnostic
information.
(%d):s7_initiate_req There is an error in A configuration or Check the connection and
[(%d) %s] initiating a request communications the PLC configuration/
(establishing a error occurred. program. If the problem
connection). persists, turn on
CONNECTION_TRACE,
DASSend, and DASReceive
in the Logger to obtain
additional diagnostic
information.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 123
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 124
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
ERROR: order ID %d The server tries to This is an internal If the problem persists, turn
exists for cyclic ID: %d in add the order ID for error. on CYCLIC_TRACE in the
cyclic reference map the cyclic service Logger to obtain additional
that has already diagnostic information.
been occupied by
some other
message.
ERROR: Retrieving order The server cannot This is an internal If the problem persists, turn
ID: %d from cyclic ID: %d find the order ID in error. on CYCLIC_TRACE in the
in cyclic reference map the order ID map for Logger to obtain additional
this message. diagnostic information.
ERROR: UNKNOWN cyclic The server receives The PLC reports a Check with the PLC vendor.
ID (%d) in cyclic read an unknown cyclic cyclic response that
indication message form the is not requested by
PLC. the Communication
Driver.
,%s, Connection aborted The connection to Either the PLC closed If this is caused by the
the PLC is closed. the connection or normal shutdown or items
the server closed the removal, no actions are
connection. required. If not, verify the
PLC configuration for the
Keep-Alive parameter.
S7 Trace Messages
The SIDirect Communication Driver provides five types of trace messages as follows:
• Connection Trace
• Poll Trace
• Cyclic Trace
• Block Trace
• Alarms and Events Trace
The following table lists the trace messages produced by the Communication Driver. For more information about
trace messages, see SIDirect Communication Driver Logger Flags.
CONNECTION_TRACE Messages
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 125
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
(%d):s7_initiate_req [0] There is an error establishing a The credit is not If after some time the
connection. available to send problem still exists,
The server cannot send the this request. restart the server.
Connect Request to the PLC.
The first parameter is the error
code of the function call (-1 =
Message Blocked, -2 = Message
Failed) from the PLC.
The parameters inside the
square bracket is 0.
Can't connect There is an error establishing a The credit is not If after some time the
connection. The server cannot available to send problem still exists,
send the Connect Request to this request. restart the server.
the PLC.
Close connection INFO: The Communication N/A N/A
(con=%s): Driver closes the connection
(cpd=%d,cref=%d) with the PLC. The parameters
associated with the PLC
connection are listed.
Connection (con=%s) was The server connection attempts The PLC is in a Check the PLC or
not successful to the PLC fails. faulty condition check the cable
or the connection.
connection is
broken.
Connection (con=%s) was INFO: The server connects with N/A N/A
successful the PLC successfully.
Internal Error: %s Set The connection with the PLC This is an Check the PLC or cable
state of connection to %d cannot be established. unknown error. connection, or restart
the server.
Open connection INFO: The socket connect call to N/A N/A
(con=%s) the PLC is successful but the
connection negotiation is still
not completed
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 126
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
%s Set state of The SIDirect Communication The connection is If the cable is not
connection to CLOSED Driver closes the connection to closed by the disconnected, check
the PLC. server or by the the PLC configuration
PLC. and see if you have
specified the Keep-
Alive parameter. The
Keep-Alive parameter
causes the closing of
connection if there are
no activities for some
specified amount of
time.
%s Set state of The connection with the PLC The server Check the PLC or cable
connection to ERROR cannot be established. cannot connect connection, or restart
to the PLC at all. the server.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 127
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
add pItem (%s) to S7Info INFO: The server adds item to N/A N/A
(pS7Info=0x%08X, addr: the S7Info while building the
%d range: %d) Poll message.
Build message (%s INFO: The server builds a POLL N/A N/A
msg=0x%08X) for topic message for the topic.
%s
Delete message (%s INFO: Destructor for the POLL N/A N/A
msg=0x%08X) for topic message gets called.
%s
dumping read values INFO: Dumping the read values N/A N/A
received from the PLC in the
logger.
Got orderid:%d for INFO: The server assigns the N/A N/A
message (%s order ID for the POLL message.
msg=0x%08X,con=%s)
[number of orderids=%d]
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 128
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Release orderid:%d for INFO: Release the order ID from N/A N/A
message (%s the message.
msg=0x%08X,con=%s)
[number of orderids=%d]
remove pItem (%s) from INFO: The server removes the N/A N/A
S7Info (pInfo=0x%08X) item from the S7Info.
POKE_TRACE Messages
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 129
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Delete message (%s INFO: Destructor for the Poke N/A N/A
msg=0x%08X) for topic message gets called.
%s
Got orderid:%d for INFO: Server assigns the order N/A N/A
message (%s id for the Poke Message.
msg=0x%08X,con=%s)
[number of orderids=%d]
Release orderid:%d for INFO: Release the order ID from N/A N/A
message (%s the poke message.
msg=0x%08X,con=%s)
[number of orderids=%d]
remove pItem (%s) from INFO: Server removing the item N/A N/A
S7Info (pInfo=0x%08X) from the S7Info.
TREAL item %s high INFO: The value of TREAL item N/A N/A
clamped to 9990s is clamped at high value.
TREAL item %s low INFO: The value of TREAL item N/A N/A
clamped to 0ms is clamped at low value.
CYCLIC_TRACE Messages
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 130
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Release orderid:%d for INFO: Release the order ID from N/A N/A
message (%s the cyclic message.
msg=0x%08X,con=%s)
[number of orderids=%d]
remove pItem (%s) from INFO: Server removing the item N/A N/A
S7Info (pInfo=0x%08X) from the S7Info.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 131
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
BLOCK_TRACE Messages
add item (%s) to INFO: Adding items to the block N/A N/A
S7BlockMessage (%s message.
msg=0x%08X)
remove item (%s) from INFO: Remove item from the N/A N/A
S7BlockMessage (%s block message.
msg=0x%08X)
ALARMS_AND_EVENTS_TRACE Messages
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 132
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
add item (%s) to S7Event INFO: Add item to the event N/A N/A
(msg=0x%08X) message.
Build alarm object INFO: Server builds the alarm N/A N/A
(0x%08X) for connection object that are going to receive
%s the alarms and events.
Build scan object INFO: Server builds the scan N/A N/A
(0x%08X) for connection object.
%s
Delete alarm object INFO: The destructor of the N/A N/A
(0x%08X) for connection alarm object gets called.
%s
remove item (%s) from INFO: Remove item from the N/A N/A
S7Event (0x%08X) event message.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 133
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
C004D000L Invalid item name The requested item name has bad syntax.
C004D001L Item name not exist The requested item name has good syntax, but it
does not exist.
C004D002L Device not connect The device is not connected, so data cannot be
acquired.
C004D100L Device off scan The device is communicating, but it cannot accept
queries for data items.
Send: exit (MSG_OK): The server tries to The response This is a flow control issue. The
Attempt to send POLL send the Poll message from the PLC is server is too fast to send the
message while pending while it waits for the slow. message but the PLC is slow in
(%s msg=0x%08X) response from the PLC responding to those messages.
[msg_state=%d,con_stat for the same message. Try to reduce the load from the
e=%d] PLC by disconnecting other
clients from the PLC or reducing
the scan rate of the message. If
the problem exists call the PLC
vendor.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 134
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Update item (%s, The server updates the N/A Check the OPC quality for the
quality=0x%04X) on %s item with Bad quality. appropriate error message.
This message shows up
only when the item
quality is Bad.
S7Info (%s Logging the error code There is an item Check the PLC configuration
pS7Info=0x%08X/ returned by the PLC for access error in the and see whether the memory
pMsg=0x%08X) returned the read request. PLC. area you try to access exists in
error: %s the PLC with proper access
right.
Could not generate data The server cannot read This is an internal Turn on POKE_TRACE in the
for item %s the poke value. error. Logger to obtain additional
trace information. Report the
error to Technical Support.
Send: exit (MSG_OK): The server tries to The response This is a flow control issue. The
Attempt to send POKE send the poke message from the PLC is server is too fast to send the
message while pending while it waits for the slow. message but the PLC is slow in
(%s msg=0x%08X) response from the PLC responding to those messages.
[msg_state=%d,con_stat for the same message. Try to reduce the load from the
e=%d] PLC by disconnecting other
clients from the PLC or reducing
the scan rate of the message. If
the problem exists call the PLC
vendor.
S7 Topic's <%s> property The server is not hot- The server does Re-start the server to see this
<%s> was changed to configurable for the not use the change in effect.
<%s> given property. changed value.
Invalid value, clamp at Poke data is clamped Poke value See the Communication Driver
high limit for poking into a valid range exceeds the S7 user's guide for the correct
item: %s on %s before it is sent to the data type range. range of values.
PLC.
Clamping S5T poke data S5T poke value is Poke value See the Communication Driver
for %s on %s (client poke clamped to 9990000 exceeds the valid user's guide for the correct
%ums clamped to before it is sent to the range. range of values.
9990000) PLC.
Loosing precision on Non-zero S5T poke Poke value is See the Communication Driver
converting S5T poke value is converted to 0. below the S7 S5T user's guide for the correct
data for %s on %s (client type resolution. range of values.
poke %ums converted to
0ms)
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 135
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
Loosing precision on Precision is lost on The resolution of See the Communication Driver
converting S5T poke value. the S7 data type user's guide for the correct
data for %s on %s (client does not match range of values.
poke %ums converted to the poked value.
%ums)
Invalid poke value, Poke data is clamped Poke value See the Communication Driver
clamp at low limit for into a valid range exceeds the S7 user's guide for the correct
item: %s on %s before it is sent to the data type range. range of values.
PLC.
Invalid poke value, Poke data is set to Poke value See the Communication Driver
cannot convert value for constant. exceeds the S7 user's guide for the correct
item: <item name> on data type range. range of values.
<device group>
ERROR: Invalid value, Poke data is clamped Poke value See the Communication Driver
clamp at high limit for into a valid range. exceeds the S7 user's guide for the correct
poking item: %s on %s data type range. range of values.
ERROR: Invalid value, Poke data is clamped Poke value See the Communication Driver
clamp at low limit for into a valid range. exceeds the S7 user's guide for the correct
poking item: %s on %s data type range. range of values.
ERROR: Invalid value, Poke data is set to Poke value See the Communication Driver
cannot convert for constant. exceeds the S7 user's guide for the correct
poking item: %s on %s data type range. range of values.
Write complete fails - The server cannot Connection to the Check the PLC connection or
item: %s on %s write the value of the PLC is bad or Item configuration.
item to the PLC. access is denied
by the PLC.
S7Cp's <%s> property The server is not hot- The server does Restart the server to see this
<%s> was changed to configurable for the not use the change in effect.
<%s> given property. changed value.
Data Conversion
The following table describes how the SIDirect Communication Driver handles values that cannot be converted
or do not meet the limit specifications.
Conversion Description
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 136
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
NONSPECIFIC If a value cannot be converted, the quality of the item goes to NONSPECIFIC.
Uncertain-HIGHLIMITED If a value is greater than the upper limit, the quality of the item goes to
uncertain-HIGHLIMITED.
Uncertain-LOWLIMITED If a value is minor than the lower limit, the quality of the item goes to
uncertain-LOWLIMITED.
Quality Settings
The SIDirect Communication Driver uses the general OPC-defined quality settings. An item can have six basic
data quality states.
00C0 Data quality good Data communications is good and data is good.
The register is read or written to without any
problems converting the data.
0055 Clamp low Data communications is good but the data is
uncertain.
The data is clamped at a low limit.
The register is correctly read or written to, but it
is necessary to clamp its value to a limit.
The value is smaller than the minimum allowed.
0056 Clamp high Data communications is good but the data is
uncertain.
The data is clamped at a high limit.
The register is correctly read or written to, but it
is necessary to clamp its value to a limit.
The value is larger than the maximum allowed.
A string is truncated.
For example, a floating point value is clamped to
FLT_MAX.
0040 Quality uncertain/No Data communications is good but the data is
convert uncertain.
The data cannot be converted.
The server may return either a constant in place
of the data or return quality information alone.
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 137
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 138
AVEVA™ Communication Drivers Pack – Siemens - SIDIRECT Driver User Guide
Chapter 6 – Troubleshooting the SIDirect Communication Driver
© 2023 AVEVA Group Limited and its subsidiaries. All rights reserved. Page 139