Saturday, January 29, 2011

Enable / Disable Task Manager in Windows XP Home / Pro

Click Start.
Click Run.
Enter gpedit.msc in the Open box and click OK
  • Select User Configuration
  • Select Administrative Templates
  • Select System
  • Select Ctrl+Alt+Delete options
  • Select Remove Task Manager
  • Double-click the Remove Task Manager option 
Select disabling the policy.

    Friday, January 28, 2011

    Using OPC Link

    OPC Link is a software for connecting OPC Server and InTouch.
    Now it replaced by Factory Suite Gateway (FS Gateway). 

    Installation Source:

    From the CD Device Integration CD 1 of 2. Check in the OPC - OPC Link.

    After installation finished, run the OPC Link (From Start -> All Programs -> Wonderware -> IO Server -> OPC Links

    note: OPC Server also must active.

    After running OPC Link, click on the Configure -> Topic Definition
    Click New to create a new Topic.

    Enter a topic name, ex my_opc
    Browse a node name.
    Then for the OPC Server Name, select from the dropdown list.
    OPC Path, click the browse button on the right.

    Setting in Wonderware InTouch:

    On the Access name, use application name: OPCLINK
    Topic name: my_opc

    For item name:
    EACH item name must start with a prefix:

    d discrete values
    i integer value
    r real value
    message value m

    Suppose the OPC address is temperature (real), then the item name should be with prefix: rtemperature.

    Script for OLE DB Connection

    SQLConnect (ConnectionID, "Provider = SQLOLEDB.1; Password = 'sa'; persist Security Info = True; User ID = 'sa'; Initial Catalog = 'coba'; Data Source = trimaxindo");

    Initial Catalog: Database Name
    Data Source: The name of the PC where SQL Server installed

    Thursday, January 27, 2011

    Hardware Key Error

    When Wonderware InTouch is started, but could not detect the hardware key, there is possibility that the dongle key is damaged.

    We can check at SMC (System Management Console) for an error messages. If there is an error message like below, it means the hardware key was damaged.

    3917 3108 2256 15/01/2008 10:03:21 AM Info WWLicRequest InTouch InTouch Invalid host (-9.57

    Another case, Sentinel Driver running late.

    This could be solved by changing the startup setting for the Sentinel Driver.
    Go to Device Manager -> View -> Show Hidden Devices -> Non-Plug and Play Drivers -> Sentinel -> Driver -> Change from Automatic Startup Section to Boot

    Wednesday, January 26, 2011

    Step by Step Insert Data to Microsoft Access (ODBC)

    How to write data to MS Access using Wonderware InTouch's script:
    1. Create a database, tables in MS Access.
    2. Create a DSN for the database that we have made in step 1. For example, the name DSN = MyDSN
    3. Use the script SQLConnect to connect to an Access database.
    Error DIM AS INTEGER; error = SQLConnect (ConnectionID, "DSN =
    MyDSN"); error_con = SQLErrorMsg (error);
    4. Make BindList on InTouch. Log into the SQL Access Manager, create new BindList. This BindList  function is for mapping the tagname to the column on the Database.
    Keep in mind, the column must use [], suppose the name of the column is level, in bindlist, type [Level]
    5. Create a script to insert data into the database:
    Error DIM AS INTEGER;
    error = SQLInsert (ConnectionID, "Test", "Level");
    error_ins = SQLErrorMsg (error);

    Assertion Error (Runtime Crash while Running an Application)






    Assertion error usually cause by Corrupted application. Either whole application, or maybe just one window.
    So what we should do when this error occured:

    1. Try to recompile the application by deleting these files in application directory: *.wvw, *.avl, *.$$$, RETENTIV.*
    2. If the error still occured, try to check which window caused the error ( it will stop compiling when we start windowviewer). Delete that window via windowmaker, then try windowviewer again.

    Tuesday, January 25, 2011

    Cannot Edit InTouch Application

    If we want to edit the InTouch application using Windowmaker, but failed and come out an error message:

    Nodename is currently editing the application


    Note: Nodename - Current PC Name.

    Solution:
    Go to the InTouch application folder that you want to edit. Find and delete file appedit.lok