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

    Sunday, January 23, 2011

    What is OCX?

    What is OCX? OCX (Ole Control Extension) is an independent program modules, which can be accessed by other programs in Windows.
    Now superseded by ActiveX control, but an ActiveX container (a program that can be "attached" by ActiveX) still support OCX, in other words, backward compatible. Examples of ActiveX container such as Internet Explorer, Wonderware InTouch.

    How InTouch could recognize ActiveX / OCX?

     
    ActiveX must be recognized by Windows first (registered).

     
    How to register OCX:

    Go to Run on the Start Menu, type:

    regsvr32 (path or file name ocx)

    for example: regsvr32 c: \ calendar.ocx

    Once OCX is registered in Windows, InTouch will recognized the OCX.
    In WindowMaker, select Special tab > Configure > Wizard / ActiveX Installation
    Select ActiveX Control Installation tab. If ActiveX is already registered by Windows, it will appear in the ActiveX Control list. Select the ActiveX, click install.

    ActiveX will appear in the Wizard - Installed ActiveX Control.

    Friday, January 21, 2011

    Export Log File from System Management Console (SMC)

    Log files are useful for troubleshooting Wonderware's error.
    To export log files from the SMC (System Management Console):

    * Go to the SMC: Start - All Programs - Wonderware - System Management Console
    * Expand Logviewer
    * Expand Default group, click Local
    * Then right click, select Message, choose Export
    * Save, for file type choose .aaLGX

    Types of Wonderware InTouch License

    If you want to buy Wonderware InTouch (current version 10.1 SP3), there are several types of licenses:

    1. InTouch Development
    With InTouch Development, in addition we can run the application, also can develop the application. The meaning of develop: we can make a new application, or edit an existing application.  

    Example editing application:
    We want to change the color of the button, add text, change the animation.
    If you buy InTouch Development,  automatically you also get the License of Device Integration / IO Server.

    2. InTouch Runtime
    InTouch Runtime only could  running application, can not make a new application or edit an existing application.
    There are two types of InTouch Runtime: with IO (Server) and without IO (Server).

    * With the IO, as well as the development, you automatically get a license Device Integration / IO Server.

    In addition, InTouch sold based on the number of Tag (variable).
    Starting from 64, 500, 1000, 3000, and most of the 60K tag.
    For example:
    Development 1000 InTouch tags
    Runtime InTouch tag without IO 1000
    InTouch Runtime tagged with OI 1000
    InTouch Development 60K tag

    Thursday, January 20, 2011

    SMC Error: Unable to connect to logger on [PC Name]

    When we tried to open System Management Console (SMC),  but failed and came out an error message:
    "Unable to connect to logger on [PC Name]"


    How to solve the problem:

    For operating system Windows 2003 Server:
    1. Edit the boot.ini, by going to Start / Run
    2. Type sysdm.cpl and then click OK
    3. Select the Advanced tab
    4. Click Settings in the Startup and Recovery
    5. In the System Startup, click Edit button

    For Windows 2003, add to the Boot.ini file:
    / execute / NOPAE

    For example:

    [operating systems]
    multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS = "Microsoft Windows Server 2003 " / fastdetect / execute / NOPAE

    For Windows XP with SP2 added to the Boot.ini:
    / noexecute = alwaysoff / NOPAE

    Wednesday, January 19, 2011

    InTouch Script Character Limitation

    The script in InTouch, is limited to about 30000 characters including spaces. If this limit is exceeded, there will be an error message "Exceeded Expression Buffer". How to resolve this limitation?

         * Create a Quickfunction.
         * Create another script that linked one another. Example: at the end of the first script, add a "trigger" in the form of tagname. Suppose tag_x = 1; then make a second script (condition script), with condition tag_x == 1, condition type: On True. The contents of the script, went on an earlier script. Do not forget at the end of the second script, reset tag_x value back to zero.

    Monday, January 17, 2011

    Disclosure Policy

    This policy is valid from 17 January 2011


     This blog is a personal blog written and edited by me. For questions about this blog, please contact  nobi.hmi@gmail.com.


     This blog accepts forms of cash advertising, sponsorship, paid insertions or other forms of compensation.

     The compensation received may influence the advertising content, topics or posts made in this blog. That content, advertising space or post may not always be identified as paid or sponsored content.

     The owner(s) of this blog is compensated to provide opinion on products, services, websites and various other topics. Even though the owner(s) of this blog receives compensation for our posts or advertisements, we always give our honest opinions, findings, beliefs, or experiences on those topics or products. The views and opinions expressed on this blog are purely the bloggers' own. Any product claim, statistic, quote or other representation about a product or service should be verified with the manufacturer, provider or party in question.

     This blog does contain content which might present a conflict of interest. This content may not always be identified.


    To get your own policy, go to http://www.disclosurepolicy.org