Lookout OPC Client – Asynchronous I/O and Update Rate serious problems (Sequence of data)

I am using the Lookout OPCClient driver to connect to AB PLCs (EtherNet/IP protocol) and power measurement equipment (Modbus TCP protocol). The OPC server is the NI OPC Servers. The data that are read out from PLCs and PMs are energy meter readings, energy counters, power, voltage, current, frequency, power factor and el. energy quality measurements (THD). That energy meter readings are being stored in SQL database.
I am experiencing a serious problem regarding the accuracy of the meter readings. Several times per day, randomly, meter readings are losing the time sequence. For example, sequence is: 167, after few seconds 165, 166.  In other words, present value followed by two previous old values. That generates a serious problem in our application that is expecting a naturally rising sequence of counter values.
Analyzing further, I isolated the problem to the connection between Lookout OPCClient and OPC Server. I made a simple application in Lookout 6.7 (opcproc.lkp, attached) with OPCClient parameters: NIOPCServers, OPC2, Asynchronus I/O, Update rate: 10000, Deadband: 0.0, that is reading just one tag from NI OPC Servers demo application (simdemo.opf).
By using OPC diagnostic tool from NI OPC Servers I record the sequence of OPC requests and responses.  I found out that OPCClient sends every 2.5 sec “IOPCAsyncIO2::Refresh2()” call that is request for refreshing of all items in one OPC group. Few milliseconds later OPC Sever responds with callback function “IOPCDataCallback:: OnDataChange()(Device Refresh)” that actually refresh the data.
This periodic sequence is intrinsic to the OPCClient and cannot be disabled or changed (by my knowledge).  This sequence is periodically interrupted by “IOPCDataCallback:: OnDataChange()” caused by update rate parameter of OPCClient (client is subscribed to server for periodic update of changed items).
In the case of demo application on every 4 refresh callbacks caused by refresh requests (2.5 sec) there is one update subscription callback determined by Update rate (10 sec).
QUESTION 1:
What is the purpose of update sequence and update rate when we have every 2.5 sec fresh values?
PROBLEM
The problem arises when we have a large number of items in OPC group. In that case the OPC Server starts to queue refresh requests because they cannot be fulfilled in 2.5 sec time because of large number of I/O points that must be scanned. At the same time update subscription callbacks are running at the period determined by Update rate. I observed in my production system that regular update callbacks has higher priority than refresh callbacks from the queue. That causes the loosing of timed sequence of data. After the update callback with fresh data, sometimes follow one or two refresh callbacks from queue with old (invalid) data. By adjusting Update rate parameter (1 hour, 2hours …) I can postpone the collision of data refreshes but I cannot eliminate it. Furthermore, the 2.5 sec automatic refresh are large burden for systems with many I/O points.
QUESTION 2:
Is there a way to disable automatic refresh request every 2.5 sec and just use update requests determined by Update rate?
QUESTION 3:
Is there a way (or parameter) to change the period of automatic refresh (2.5 sec)?
This problem is discovered for Lookout 6.5, 6.6 and 6.7 so I could say it is intrinsic to OPCClient. If I use synchronous I/O requests there is not an automatic refresh, but that is not an option for large systems.
Thanks!
Alan Vrana
System engineer
SCADA Projekt d.o.o.
Picmanova 2
10000 ZAGREB
CROATIA
T +385 1 6622230
F +385 1 6683463
e-mail [email protected]
Alan Vrana
SCADA Projekt d.o.o.
ZAGREB, Croatia
Attachments:
opcproc.zip ‏4 KB

The physical connection from LV to the switch is (I believe) copper crossover to fiber converter into a switch.  Then, fiber from the switch to the end device (relay).  The relay has all of the typical modbus registries and has been verified by inducing signals in to the system and measured/polled in LabVIEW and observed Variable Monitor.  I am working with LV 8.2 and 8.5. 
An OPC server would only add an additional translation of addressing within the configuration.  The only real draw back would be the network overhead required to do this processing and not being representative of the end design configuration.
I will reiterated my question in another way:
I must answer the question to management that relates to data collection, test results and analysis; how often are you polling the client in relation to the outcomes measured?  At this time I can not point at any configuration in the set up and execution that directs the data framing rate.  I only measure the traffic and work with results.  This needs to be clearly identified based on the relay modbus/tcp design capability of supporting an fixed number of client requests per second. 
For testing purposes, I would like to be able to stress the system to failure and have prove capabilities with measured data.  The present problem is that I have no basis to establish varying polling rates that effect the measured data transmission. 
This raises another question.  What handles the Variable Monitor data requests and how is this rate determined?
Thanks for your interest in my efforts.
Steve

Similar Messages

  • I am intalling client now on windows98 and i have a problem

    Hello i am Eloy
    i am intalling client now on windows98 and i have this problem

    Hello i am Eloy
    i am intalling client now on windows98 and i have
    this problem....
    Which problem do you have?
    Win98 was a very "buggy" windows version. Unexpected falls, blue screens, memory violations errors, I was very disappointed about it. This version is seldom found nowadays and a lot of machines come with XP, 2003 or vista from factory.
    Win98 was long ago a deprecated platform, so even if you have not clarified which problem you are facing, if it has to do with new software 9iR2, 10gR1, 10gR2, whatever the problem the only solution is to install a newer OS version.
    ~ Madrid.

  • Audigy 2 ZS and Inspire T7900 Serious Problems!

    Hey Guys I'am a guy from germany and I have serious problems with my speaker system!
    Following System:
    Windows XP Professional with SP2Creative Audigy 2 ZS SoundcardCreatice Inspire T7900(7.1) Speakers
    My Problem:
    No Surround!My Card is configured to 7.1 Speaker System, I have the newest Drivers from the page and all is 100% correct connected although wenn i make a Speaker Test in the THX Konsole the Guy only speaks from the Front speakers!!left frontspeaker: front left,side left rear leftright frontspeaker: front right, side right, rear right, front middle
    (order of the announcements aren't right here)
    when i connect 2.0 speakers from my brother to the green plug the same happens!!
    What's going on here?!! is that a BUG?
    please help
    grettz Kai

    It sounds like the soundcard drivers aren't installed properly or aren't being properly configuring the speaker settings.
    Try changing to 2.0/2.1 and 4.0/4.1 and see if those modes work with the speakers connected as they are. If they do then 'tis a software problem and uninstalling and reinstalling the Audigy drivers should fix it (hopefully).

  • 10.6.8 Server: Spotlight stops working for clients after fresh installation and updates

    Problem:
    On 2013-02-22, I reinstalled my Xserve with fresh 10.6.3 and upgraded it to 10.6.8 OS X Server. Spotlight used to be working perfectly for clients to search over the network but now it is not working. Administrators doing local spotlight search on Xserve server side is searchable. Clients with less privileges searching files across the network to the server will receive null result. Administrators searching files across the network is still working.
    I believe it has something to do with the update packages and some security improvement bugs introduced in late 2012 or early 2013.
    All my clients Macs are in either 10.7.5 and 10.8.2.
    Can anyone confirm this? All my staff members in the company cannot do the spotlight search to the server now!

    Hi, maracujana,
    the problem can be solved if you allow the permssion of parental folder of your share points to have at least Read Only permission for User and Group:
    permission: 644
    User: Read&Write
    Group: Read Only
    Others: Read Only (or No Access)
    In my case, it is strange that PCs can still do the search to the Snow Leopard Server by SMB protocol while Mac using AFP cannot even when the parental folder had permission 600. This could be a secure issue in Snow Leopard's SMB1.0 protocol. Note that SMB in Snow Leopard is SMB1.0, which is less secure and hence deprecated after Snow Leopard. From Lion onwards, all OS X uses SMB2.0 and/or SMB X.
    Oh, yes, there is one more thing:
    you may find your scanner using SMB protocol stopped functioning properly if you use (Mountain) Lion client and (Mountain) Lion server. It boils down to Apple's silent change of SMB protocol from SMB1.0 to SMB2.0. Solution? Use FTP protocol for now. Don't blame Apple too much because Apple had to follow the rules of GPLv3. The SMB issue will go on as Microsoft introduces its own SMB 3.0 protocol in Windows 8 while Apple introduces its SMB verison dubbed SMB X.
    Hope this helps.

  • Everytime i plug my iphone and update through itunes all my game data goes away how can i get it back/stop this from happening

    please help

    I have the same question, but can you clarify something please.  I have about 10 apps showing in the apps section of iTunes - all of which I am happy to have on my iphone - but NOT on the Touch. 
    1.  How do I 'delete' the apps wrongly synched to the Touch, and
    2.  For the future, when I download an app. hor do I ensure it is only synched with the iphone and not the Touch.  I have very space left on the Touch and don't want to clutter it with unwanted apps.
    regards from a newbe

  • Multiple formats and frame rates in one sequence

    i have material shot on many different cameras. it includes PAL and NTSC, HD and SD, 24, 25, 30, and 60 fps, ProRes, DCVProHD, DVCam, etc etc. the final product is going to HD in both NTSC 24fps and Pal 25fps, for NatGeo domestic and international.
    the roughs are already done with this hodgepodge. my job is to clean up the audio (done), and send the video out in for color, titles, and graphics. i'm trying to get at least the frame rates to match at 24, much of it is already in 24 dvcprohd or prores, so i have been doing quicktime exports of the non-dvcprohd/prores video to prores, then conforming to 24p in cinema tools, then overlaying the clips in the sequence with a fit to fill edit. sync has not been a problem, miraculously, even though the speeds end up between 100 and 125 percent.
    am i doing anything right, and if not, what's a preferable way to handle this mess? i tried media manager initially but nothing would relink, so i gave up and started doing the clips individually as stated above.
    all i know for sure is that whatever i end up doing, they're not paying me nearly enough.
    -m

    Hi Shane - Thanks for getting back to me! I figured I'd have to compress it, but
    my question is - how? Initially, I used MPEG Streamclip to import the 23.98 dvd footage in as a DV/DVC Pro QT at 100% Best Quality. I then imported those files into FCP. After getting your e-mail, I went to export the files into Compressor (from FCP), and I'm only given 5 setting choices under "QT." I'm not sure which one to select . . . Uncompressed 10 bit? Any ideas? Again, thanks so much!!!

  • Smart playlists don't sync onto iPhone 6, and some other serious problems

    Am syncing my music library via cable from a Mac Book iTUnes library onto the iPhone. The songs are on the phone, but
    - many songs are duplicated and greyed out
    - some songs don't sync at all and have a "download from the cloud" symbol next to them
    - some songs are greyed out AND have a "download from the cloud" symbol next to them
    - none of my roughly 30 smart playlists and one regular playlist are synced, There are only two standard entries "Genius Playlis" and "New Playlist".
    - have tried manually syncing playlists by deselecting "sync all" and just checking one to be synced, but it won't sync either
    - there is a mismatch in song count. ITunes on the Mac has 1415 songs, iTunes n the iPHone has 1024 songs
    What's going on?????

    Tried all the solutions but later found that the problem was related to iTunes being unable to find the link to the original file.
    In iTunes, click on the Music icon at top left of screen, which should bring up  the list of your music, artist, album etc.if you see an exclamation mark next to each file, it may be that the link to the location of your music file is lost. You need to right click on the track name and click GET INFO, then search through your computer to find the location of the missing file. I did this for a few tracks and then iTunes helpfully (?) asked if i would like it to do the rest of my music for me.
    Then went back t iTunes and SYNCED as normal. I am not a techo type but hope this is helpful for others. Happy New Year

  • Firefox is no help and makes themselves invisible and firefox3.6.3 is invading my space and causing me serious problems

    firefox 3.6.3 is messing up and tying up my computer. ...infiltrating like a virus constantly and time and again and again EVERYTIME i get online
    == This happened ==
    Every time Firefox opened
    == for months and months ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

    Could you provide more detail about what it is doing?

  • Lookout opc or link problems

    I am using Lookout 6.0.2 on a new Win XP desktop.  The Lookout OPC client object is used for communications via Rockwell Software RSLinx's (Professional Rev 2.43.01.23) OPC server to ControlLogix PLC's over ethernet.  In other words, the Lookout communicates with RSLinx by OPC, and the RSLinx communicates with PLC's by ControlNet.
    We have 3 Lookout processes, one which is the "server" process, and contains the OPC Client object. The other 2 process files are "client" processes, and reference the OPC Client object  by symbolic link.
    We have many Lookout switches in the "client" processes, that are remoted to a tag in the ControlLogix PLC using symbolic link. A typical link for a remoted switch is:
    ..\..\[Link_to_Drivers]\OPCclient1.PLC_12.Online.SWITCH_TAGNAME
    OR   IF USING ABSOLUTE REFERENCE:   \\ComputerName\ProcessName\[Link_to_Drivers]\OPCclient1.PLC_12.Online.SWITCH_TAGNAME
    In this  way, the Lookout switch object has a read/write link.
    The problem is this:  Periodically the write link will stop working.  When this happens, all the Lookout switches and even the Lookout pots will lose ability to write to PLC, but the read links are still working. We can read the data and the switch positions, but the changing setpoints with the pots and operating equipment with the switches is then impossible.  This "lock up" can be fixed by closing down all the Lookout processes (but not Lookout), and then restarting the Lookout processes.
    This problem is intermittant and not repeatable.  Does anyone have idea how to troubleshoot this problem, or have an way to isolate and fix this problem? Thanks!

    This problem is fixed by lookout 6.0.2 updates. It can be downloaded from http://joule.ni.com/nidu/cds/view/p/id/506/lang/en
    You need first to login MyNI, and then download lo602_updates.zip. Unzip it and copy all files to lookout folder.
    This update is applied to Lookout 6.0.2 server system. You don't need to copy these files to client system.
    Ryan Shi
    National Instruments

  • Lookout opc problems

    I am using Lookout 6.0.2 on a new Win XP desktop.  The Lookout OPC client object is used for communications via Rockwell Software RSLinx's (Professional Rev 2.43.01.23) OPC server to ControlLogix PLC's over ethernet.  In other words, the Lookout communicates with RSLinx by OPC, and the RSLinx communicates with PLC's by ControlNet.
    We have 3 Lookout processes, one which is the "server" process, and contains the OPC Client object. The other 2 process files are "client" processes, and reference the OPC Client object  by symbolic link.
    We have many Lookout switches in the "client" processes, that are remoted to a tag in the ControlLogix PLC using symbolic link. A typical link for a remoted switch is:
    ..\..\[Link_to_Drivers]\OPCclient1.PLC_12.Online.SWITCH_TAGNAME
    OR   IF USING ABSOLUTE REFERENCE:   \\ComputerName\ProcessName\[Link_to_Drivers]\OPCclient1.PLC_12.Online.SWITCH_TAGNAME
    In this  way, the Lookout switch object has a read/write link. 
    The problem is this:  Periodically the write link will stop working.  When this happens, all the Lookout switches and even the Lookout pots will lose ability to write to PLC, but the read links are still working. We can read the data and the switch positions, but the changing setpoints with the pots and operating equipment with the switches is then impossible.  This "lock up" can be fixed by closing down all the Lookout processes (but not Lookout), and then restarting the Lookout processes. 
    This problem is intermittant and not repeatable.  Does anyone have idea how to troubleshoot this problem, or have an way to isolate and fix this problem?

    doug:
    You may want to repost in the Lookout board:
    http://forums.ni.com/ni/board?board.id=190
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Variable Engine crashes when querying a tag that doen't exist with OPC client

    Hi!
    I'm working on a system based on LV 2011 DSC.  The system is multi-node and uses Sahred Variables.
    We have a node that has everything available in the system and we would like to use the embedded OPC server in the Variable Engine to grab everything in real-time and feed a corporate historian system.
    It happened couple of time that querying a tag that was not defined in NI (example: typo when typing an address in the OPC client) caused some instability and made the node crash.  After a reboot, everything was ok.
    Is there a way to prevent a supervisory system of making crash a production system?  Can we limit the OPC server to the defined tags in the library?
    Thanks.
    Francois

    The variable engine is known to be buggy from time to time, so be sure you upgrade all the related software to the latest version (or not
    If it is possible, have the OPC client create a new tag for any that are queried, but do not exist.
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • "reproc: Insert and Update failed on" replicated table

    Hello, I've published a new publication item on an Oracle Lite Server (9i and mobile server 5.0.2.10).
    After inserting records on the server replicated table (Table1), when I try to sync some devices, I have the following error message on the client PDA "reproc Insert and Update failed on " Table1.
    If I empty the server table's records, then the client PDA syncs OK.
    Can someone refresh me with the cause of this error ?
    Thank's in advance.
    Regards,
    Olivier

    Hi,
    This is my actual requirement.
    During the updates i.e update process and delete process, if the filed status is changed to 'O', '0' or ' ' in SAP, then those records in Oracle should be deleted.
    if the field status is changed to other than 'O', '0', or ' ' SAP, then those records needs to be updated with the remaining information
    How do XI Know that these fields are changed in the SAP table to perform delete ,is some notification required when there is change in SAP Table through proxy ?

  • When I tried to sync my 4G iphone factory unlocked to iTunes I got this message "An update to the carrier settings for your iPhone is available. Would you like to download it now?"  Should I hit "Download and Update"? or "Learn More" ?

    When I tried to sync my 4G iphone factory unlocked to iTunes I got this message "An update to the carrier settings for your iPhone is available. Would you like to download it now?"  Should I hit "Download and Update"? or "Learn More" ?

    I have a factory unlocked iPhone 3GS (eg: purchased from Apple).  I received the same message at some point and eventually (after reading a bit more) accepted "Download and Update".  No problem.  No apparent bad effects. It just seems to update things specific to the carrier (Bell Mobility in my case).

  • ABAP Client proxies: extract data from the response and update Z table

    Hi All,
    I have following ABAP code for client proxies:
    We have DT_Req, MT_Req, DT_Res, MT_Res and MI_Sync_OB (O/p Message: MT_Req, I/P message:MT_Res)
    Proxy Objects generated:
    ZCO_MI_SYNC_OB
    ZMT_REQ
    ZDT_REQ
    ZDT_REQ_RECORDS
    ZDT_REQ_RECORDS_TAB
    ZMT_RES
    ZDT_RES
    ZDT_RES_RECORDS
    ZDT_RES_RECORDS_TAB
    ABAP Code:
    REPORT ZTEST_DELETE.
    DATA:
    lo_history TYPE REF TO ZCO_MI_SYNC_OB,
    lo_sys_exception TYPE REF TO cx_ai_system_fault,
    Structures to set and get message content
    lv_history_req_mt TYPE ZMT_REQ OCCURS 0 WITH HEADER LINE,
    lv_history_res_mt TYPE ZMT_RES,
    lv_history_req_rec TYPE ZDT_REQ_RECORDS,
    lv_history_res_rec TYPE ZDT_RES_RECORDS.
    lv_history_req_rec-VLAUE = SY-DATUM.
    APPEND lv_history_req_rec TO lv_history_req_mt-MT_REQ-RECORDS.
    CREATE OBJECT lo_history.
    TRY.
    Call outbound Proxy
    CALL METHOD lo_history->execute_synchronous
    EXPORTING
    output = lv_history_req_mt
    IMPORTING
    <b>input = lv_history_res_mt.</b>
    Error handling
    CATCH cx_ai_system_fault INTO lo_sys_exception.
    SKIP 2.
    WRITE:/ lo_sys_exception->errortext.
    RETURN.
    ENDTRY.
    <b>Now I have my response data in the internable "lv_history_res_mt-MT_REQ-RECORDS" which is deep structure.
    How do I extract data records (multiple) from the above internal table and update to Z table??</b>
    Thanx
    Navin

    Hi Navin,
    go to SPROXY, flag structure and search for your table definition. You will find a table definition a field "line" or something, where you find the right structure. Create a new structure with DATA: myStructure type tableStructure. Define a second structure type with your Ztable. Next Loop at internal table into the structure. Inside that loop fill the Zstructure. Insert the Zstrucure (Press F1 on insert to have the syntax you need)
    loop at internalTable into intStructure.
    zstructure-myField = intStructure-myField.
    INSERT ztable FROM zstructure.
    endloop.
    Regards,
    Udo

  • Writing and updating XML file on client side

    Hello,
    I'm looking for a simple example which permit to write and
    update a xml file on the client side.
    Someone can help me, please?

    meghashyamgr ,
    Because of security reasons a swf running in a browser cannot
    read or write xml files to a user's computer. What can be done,
    however, is write xml to what is known as a SharedObject.
    SharedObjects act as cookies for Flashplayer.
    If you would like an example of this I'd be more than happy
    to show you...

Maybe you are looking for

  • Segment_Unknown error encountered while running flat file recon

    When we tried to run 'SAP HRMS User Recon' schedule task by using a flat file generated from SAP HR system, we are facing an error 'com.sap.conn.jco.AbapException: (126) SEGMENT_UNKNOWN: SEGMENT_UNKNOWN'. The complete stack trace is as below : [2013-

  • Table for the report RPUAUD00  Logged Changes in Infotype data

    Hi I have a query with the program RPUAUD00 Logged changes in Infotype Data.  In which table stores the details of the program RPUAUD00.  for example in the 1st period there is a LWP record for the employee.  If in the 2nd period the LWP entered in 1

  • Collection Report - Template AGE3

    Hi Team, I have duplicated the AGE3001 template and facing a problem on trying to get the comments field into the collection report and would appreciate if there anyone know how to do it? or if there is anyone who have a sample query on aging report,

  • Relationship between ERPi metadata rules and Data load rules

    I am using version 11.1.1.3 to load EBS data to ERPi and then to FDM. I have created a Metadata rule where I have assigned a ledger from the Source Accounting Entities. I have also created a Data Load rule that references the same ledger as the metad

  • Deposit cheque of one house bank to another house bank

    Dear all,           I want to post an entry where depositing a chque of one house bank to another house bank, with same currency. what is the t code of posting this transaction. how to post cheque book issuance charges in bank account. your replies w