No Copy


No Right Click

Selamat Datang di Situs Belajar PLC dan SCADA

Blog gratis yang menyajikan berita seputar PLC dan SCADA.

Microsoft Windows 10

Berita seputar Microsoft Windows 10. Membahas berbagai informasi mengenai Microsoft windows terbaru.

Apple OSX

Artikel yang membahas tentang OSX terbaru dari Apple tentu sangat menarik untuk dibaca. Tak kalah serunya jika kita paham mengenai tips dan trik yang ada didalamnya.

Photography

Photography asik dan menarik jika kita mengetahuinya lebih dalam. Disini kita bisa melihat berbagai hal dari sudut pandang photo. Menarik untuk dipahami.

Showing posts with label DAServer. Show all posts
Showing posts with label DAServer. Show all posts

Wednesday, April 22, 2009

Configuring SIDirect DAServer to Communicate with S7 PLC Over TCP Connection

The SIDirect DAServer provides access to data within the Siemens S7 200, S7 300, and S7 400 PLC families through a standard EtherNet network interface card without requiring Siemens SimaticNet software. The SIDirect DAServer is capable of DDE, FastDDE, SuiteLink™, or OPC connections to Windows® client program such as an InTouch® application.

This Technote provides a step-by-step procedure of how to configure and use Wonderware's SIDirect DAServer with a S7 PLC (S7-400 PLC is being used in this technote) via DDE/SuiteLink protocol.

Before you continue, make sure the following requirements have been met:

  • Read and follow the instructions in the SIDirect DAServer's readme file and related documents for System requirements, proper installation procedures, and supported Operating systems.
  • Install the latest version of the SIDirect DAServer. If a previous version was installed, uninstall it using Add/Remove Programs in the Control Panel. This technote is written using SIDirect DAServer version 1.0.0.
  • Install and configure TCP/IP network protocol and the network interface card (NIC)
    so that it can communicate with the PLC via Ethernet.
  • Make sure that you can "ping" the PLC successfully and receive valid replies from the PLC.
Note: Please check the SIDirect DASERVER Online Help for more information about the supported firmware and hardware. Only the TCP bus communications protocol is supported by the SIDirect DAServer. The SIDirect does not support MPI, Profibus, and other non-EtherNet protocols.

Configurating the SIDirect DAServer

  1. Start the SIDirect DAServer Manager by selecting Start/Programs on the taskbar.

  2. Navigate to the Wonderware folder that contains the System Management Console, then click System Management Console.

  3. From the ArchestrA System Management Console (SMC), find the SIDirect DAServer in the DAServer Manager tree. Under the local node the DAServer name is ArchestrA.DASSIDirect.1 (Figure 1 below).


    Figure 1: DASSIDirect DAServer in the SMC

  4. Expand ArchestrA.DASSIDirect.1 and highlight Configuration.

    The Global Parameters dialog box will appear as shown in Figure 2 (below):


    Figure 2: DASSIDirect - Global Parameters

    • Device Group Update Interval: Specifies the update interval of the default device group.
    • Slow Poll Interval: Specifies the interval that the DAServer polls the field device after it goes into slow poll mode when connectivity problems occur. The DAServer will be governed by device group update intervals when the communication returns to normal.
    • Transaction to Subscription Ratio: Transactions are poke/read messages from a DDE/SL/OPC client. Subscriptions are messages generated by items being on advise. Subscriptions are sent periodically at the Update Interval.

    The Transaction to Subscription ratio defines the maximum number of transactions the DAServer sends before sending one subscription. It is the ratio of transaction to subscription messages when there are several transaction messages pending. The second half of the ratio is always 1. Therefore, the default ratio 2 means 2:1 transaction to subscription messages. The ratio ensures that a certain amount of subscription activity is guaranteed even in a transaction overloaded state.

    For example if the ratio is set to 2 and there are 3 transaction messages and 2 subscription messages become due at the same time, the toolkit will send out 2 transaction messages, 1 subscription message, 1 transaction message and then 1 subscription message.

    • Transaction Message Timeout: The timeout for transactions (read/write/refresh/property) per message. This timeout prevents a client from hanging in a transaction forever if for some reason the transaction messages are never scheduled until completion. It is the maximum amount of time between message updates within a transaction. The timeout has to be set in such a way that under no circumstances data acquisition on an individual message takes longer than this timeout.
    • Server Protocol Timer: This option is disabled, since the SIDirect uses event driven protocol engine.
    • Diagnostic Backlog Size: Specifies the maximum number of transactions shown in the Transactions diagnostic root.
    • Poke Mode: The following modes are available:
    - Control
    Mode preserves the poke order without folding.
    - Transition
    Mode preserves the poke order with minimum folding by keeping the first, second and last poke values of an item.
    - Optimization
    Mode does not preserve the poke order and has maximum folding by only poking the last value of an item.

    • Case Sensitive: Controls how the DAServer scans item and device group names with respect to upper/lower case.
    • Device Group Cache: This parameter is for future use.
    • Simulation Mode: This parameter is is disabled for the SIDirect DAServer.
    • System Items: This parameter controls whether the system items appear in the browse interface and if they are recognized as valid ItemIDs by the DAServer's data acquisition interfaces.
    • Unique Device Groups: This parameter controls whether the device group names are checked for uniqueness across all device nodes of a DAServer.

  5. Right-click the Configuration icon.

  6. Select Add PortCpS7 Object from the sub-menu.

  7. Right-click New_PortCp_000, and select Add S7Cp Object. The S7 CP parameter dialog window appears as shown in Figure 3 (below):


    Figure 3: S7 CP Communication Parameters

    • Network Address: Enter the IP address for the PLC. The S7 PLC used in the example of this technote has IP address of 192.168.10.41.
    • Local TSAP: Specifies the local station's transport service access point. The first digit specifies the device, and the second digit should be zero (0). Recommended setting is 01.00.
    • Remote TSAP: Specifies the PLC's transport service access point.
    • Remote Rack No: Enter the decimal number for the Rack.
    • Remote Slot No: Enter the decimal number for the Slot of the CPU.

    The example in this technote uses the rack number 0 and the slot number 3 , where the S7-400 CPU is located. (The power supply takes up two slots, so the CPU is in slot 3.)

    • Connection Resource: Select the Hex number for the Connection Resource from the drop-down menu.

  8. Select the Device Groups tab.

  9. Right-click on the white space in the Device Groups dialog box to add a device group ( similar to Topic Definition ) in the Device Groups dialog box as shown in Figure 4 (below):


    Figure 4: Device Group Dialog Box

  10. Select, then right click the default Topic_0 to rename it to some meaningful name such as S7PLC as shown in Figure 5 (below):


    Figure 5: S7PLC Device Group

  11. In the hierarchy tree on the left pane, right-click ArchestrA.DASSIDirect.1 and select Activate Server from the sub-menu to start the DAServer. The icon next to ArchestrA.DASSIDirect.1 will change from red to green as shown in Figure 6 (below):


    Figure 6: SIDirect DAServer is Activated

Testing the DASSIDirect Server

The DASSIDirect Server is ready for use. We are now going to do a quick communications test to verify that we can establish the connection to the PLC.

  1. Click Start/Run and enter WWClient to start the Wonderware WWClient program.

  2. Select Connections/Create from the main menu. The Create Connection dialog box will appear.

  3. Enter appropriate information as shown in Figure 7 (below), where:
    • Node: blank since the DASSIDirect and the WWClient are on the same computer. Otherwise, enter the computer name of the machine running the DAServer.
    • Application: DASSIDirect, which is the application name of the SIDirect DAServer.
    • Topic: S7PLC, which is the exact name of the new device group we just created in the DASSIDirect's device groups window.
    • Connection Type: IOT which is the SuiteLink protocol used for this technote.


    Figure 7: Create Connection Dialog Box

  4. Click Create, then Done.

    The WWClient window should now appear similar to Figure 8 (below):


    Figure 8: WWClient Showing Connection with the DASSIDirect

  5. Select Item from the main menu.

  6. Enter a known good PLC register address.

    The following figures show an example of WWClient successfully advising item MB90 from the S7 PLC. Enter MB90 in the Item entry box. Click the AdviseEX button to register and advise the item. If the Ethernet connection to the PLC is good, you should see the value for the register MB90 as shown in Figures 9 and 10 (below):


    Figure 9: Item


    Figure 10: WWClient Displaying MB90 Values

How to use DASSIDirect DAServer Together with Siemens S7-200 PLC?

Introduction

This technote will go over the steps necessary to setup communication between the new DASSIDirect DAServer and a Siemens S7-200 PLC.

The TechNote consists of 4 parts:

Configure the S7-200 PLC
  • Configure the DAServer
  • Test the Communication
  • Memory Areas in the S7-200 PLCs and How to Access Them Via
    DASSIDirect
Configure the S7-200 PLC
  1. Start Step7-Micro/Win 32. Create a new project or load
    your existing one (Figure 1 below):


    Figure 1: Step 7 - Micro/WIN32 - Project1 Dialog Box

  2. Click on Tools and then select Ethernet Wizard.
  3. Step through the wizard:





    Figure 2: Ethernet Wizard
  4. Click Yes when asked to use symbolic addressing. Otherwise the wizard
    cannot continue:

    Figure 3: Click Yes

  5. Enter the module position of the CP243-1.
    If you are uncertain about the position, click the button Read Modules.
    Otherwise you can enter the number directly:


    Figure 4: Specify Module Position Dialog Box
  6. Enter the IP configuration of your CP243-1.
    Especially during the startup phase of the project, I would recommend not
    to use a BOOTP server.
    Let the module detect the connection type (Figure 5 below):


    Figure 5: Module Address Configuration
  7. Enter the numbers of connections you want to configure for the CP243-1
    Default value is 0, which would not allow communication. In this example
    I will use 2 connections (Figure 6 below):


    Figure 6: 2 Connections
    Now you have to configure the connections. Connection 0 (Figure 7 below) will
    accept all incoming client requests:


    Figure 7: Connection Configuration
  8. Always select This is a Server Connection. I recommend using the
    default TSAP's as suggested by Step7-Micro/Win32.
  9. Click Next Connection (or Prev. Connection if available)
    to step through all the connections to configure them.
    Note: If you plan to use such a connection, be sure that only one client
    tries to connect to the PLC via this connection at the same time. All other
    connection tries will be rejected.
    Connection 1 accepts only requests from the specified client:

    Figure 8: Specified Client Requests
  10. If all connections are configured click OK.
    During the startup phase of a project I would recommend not to use a CRC protection:


    Figure 9: No CRC Protection

    The wizard now needs a range in the V-Memory where to store this information.
    Step7-Micro/Win32 will suggest a valid range.
  11. Click on Suggest Address if you have planned to use this range for
    something else.
    In this case Step7-Micro/Win32 will suggest another free range that has the
    correct size to hold this data:


    Figure 10: Store Memory Allocation for Address
  12. Click Next.
    The program now has enough information:

    Figure 11: Generate Project Components
  13. Click Finish to complete the configuration:

    Figure 12: Complete the Wizard Configuration
  14. Click Yes.
    In Step7-Micro/Win32 you should now see something like the following
    figure:


    Figure 13: Step7_Micro/Win32 Window
    Step7-Micro/Win32 has created some new entries in the V-Memory, starting at
    the address as specified during the setup of the CP243-1.
  15. Download the configuration to the PLC:

    Figure 14: Download the Configuration
  16. Select all options and click OK (Figure 15 below):

    Figure 15: Download Options
  17. Set the PLC to STOP mode in order to be able to download a new configuration:

    Figure 16: PLC STOP Mode
  18. After the download don't forget to set the PLC to RUN mode again.
    This will not be done automatically:

    Figure 17: PLC RUN Mode

The PLC side is now configured.

Configure the DAServer

Configuration of the DAServer is quite easy.

Since we have created two connections in the PLC, we will also create two connections
in DASSIDirect DAServer. Connection 0 will correspond to the connection as created in Figure
7:


Figure 18: DASSIDirect Connection 0

The Remote TSAP in DASSIDirect must be the Local TSAP in the PLC configuration,
and vice versa.

Connection 1 shown in Figure 19 (below) will correspond to the connection
as created in Figure 8:


Figure 19: DASSIDirect Connection 1

The single parts of the remote TSAPs in DASSIDirect are called Remote Rack
No
, Remote Slot No and Connection Resource. This naming convention
was meant for S7-300 and S7-400 PLC's.

For S7-200 PLC's it is a little bit different. The Remote Slot No (which
is the remote slot number of the CP, not the CPU) in the DASSIDirect configuration
corresponds to the Module Position as seen in Figure 4.
The Remote Rack No should always be 0.

Another way to figure out the correct values for the remote TSAP's in DASSIDirect
is described in the following information:

Figure 20 (below) shows you how to figure out the meaning of the single parts
of the remote TSAP in DASSIDirect from a local TSAP configuration in the PLC
as seen in Figure 7 or Figure 8 (The TSAP
in Figure 20 do not correspond to the TSAP's as used in the above example. I
wanted to have different numbers for Rack and Slot in Figure 20!).


Figure 20: Remote TSAP

The TSAP in Figure 20 would correspond to the remote TSAP value in Figure
7 or Figure 8.

In this example the value for Connection Resource in DASSIDirect would
be 02, the value for the Remote Rack No would be 0 and
the Remote Slot No would be 3.

Now create your device group(s), if necessary.

For a DDE/SuiteLink connection you need to have at least one device group per
connection, for OPC it is not necessary. For to test the communication as described
below, please enter a device group called S7200.

The connection between DASSIDirect and the S7-200 PLC should now be ready to
test.

Test the Communication

In previous TechNotes we used wwclient for testing. This tool will no
longer be installed when installing ArchestrA (A²) products like InTouch
8.0 or any DAServer. If you have InTouch 7.11 installed you will find this tool
under Program Files/Wonderware FactorySuite/Common and you can use this
tool.

  1. Create a simple InTouch application with one tag.
  2. Select Special/Access Names from the main menu.
  3. Select Add.
    The Add Access Name dialog box appears:


    Figure 21: Add Access Name
  4. Enter a meaningful name in the Access field.
  5. Leave the Node Name blank if you have InTouch and DASSIDirect on
    the same node.
    Otherwise enter the nodename of the PC where DASSIDirect resides.
    The Topic Name must match the Device Group name as configured
    in DASSIDirect.
  6. Select Special/Tagname Dictionary and select New.


    Figure 22: New Tagname
  7. Select Type: I/O Integer and the access name as created in the previous
    steps.
  8. Use the item MB1 because it always exists in all S7-200 PLCs.
    Use this tag in the window you just created.
  9. Activate DASSIDirect in the System Management Console (SMC).
  10. Start WindowViewer™.
  11. Open the Diagnostic in the SMC to verify the communication:

    Figure 23: Check Communication from the SMC
    If you see a Time value that is changing, and a Client Quality
    of 00C0, your communication is fine.
#