Writing of the OPC

I'm using LabVIEW 8.6 with DSC module. I build the link of the OPC server for my Siemens S7-200 PLC, using the I/O Server build an OPC client interface.

I create 2 tag to test my application: -.

1. order read the controller input

2. directly write to the PLC output

For the input, I've got the score for PLC input and updated updated to my front.

For the release, I create a control to the façade and a link to the variable, but the result of control did ' t respond to my output.

* no error occur during execution

* link interface is correct check by using "distributed system NOR Manager" on the menu of the tool

* I try to use 'PC Access OPC server' & "(KEPware) KEPServerEX OPC Server" but get same result cannot write

This is the basis of the event, using the event to raise.

Tags: NI Software

Similar Questions

  • Re: Satellite A300-15 has recovery question: couldn't get a writing of the language of the ini

    I am of the Greece.

    I'm going to start the recovery cd, and it returns the following error:
    + Not able to get a writing of the language of the ini file.
    http://free4U.gr/pics/view-152_DSC01468.jpg

    What to do. ?

    Hello

    Have you tried to repeat the recovery procedure?
    Have you used the recovery disk Toshiba or did you start from HARD drive recovery?

    Check the two procedures;
    First try the recovery of HARD drive; Press F8, and then choose fix my computer and in the new window, follow with HARD drive recovery.

  • Channel missing features like tags of the OPC

    Hello

    I have a number of features of channel in my system. First of all, I added these features for track and ran with it for a while. Now, I added the same characteristics for the rest of my strings of the accelerometer, but they fail to appear in the form of tags when I navigate on the server from a client. The first channel, they are all there. The characteristics was the installation for the first string until I allowed mutual FUND on the InsightCM server. I Don t know if it has a meaning or not.

    Thank you.

    Hey Jens,

    It seems that whenever a InsightCM tag value updates our code OPC Server checks to see if there are new tags InsightCM he needs to create corresponding OPC tags for. So if you configure features and a new channel, but has not to collect new data still in InsightCM the OPC server will appear any OPC tag.

    The OPCHistorian.TagCreate trace point creates a log entry when new tags are created.

  • How to install the OPC Server with the Application Setup

    Hi all,

    I make the datalogging progam in the PLC via modbus communication using the OPC server.

    1. I got configer the opc via the Project Explorer client some time it works perfectly, but when I run it by the next day, he cannot communicate with an OPC server but the OPC server is to communicate with the PLC. When I right click on the properties of the customer e/s in the exploer project opc and make any change and still run the application it works where is the problem.

    2. the second problem is by building the installer that will be installered to my PC targate OPC server. Bacuse I had installed the application on the computer target just for testing but OPC Server havn't installed even if there is no option for adding the OPC while bulding server.

    Serdar, SALVATION

    Thanks for the reply I saw your example, your idea is ok, but if I have more then 100 and with different types of data tag then where is the problem to manage all these tags.

    Now, what I had done I took the express to create vi or configer server I/O and give the name of the process even as file name as opcdemomo and same server name reference in the Project Explorer and restart and scream in low tow and three times it works I havn't get any problem.but which is not the right method. 

  • Change the decimal point by point in the writing of the measurement file

    Hello

    I use writing to the extent of the vi file to save data. I can't read the text file in Matlab, I guess that is because the decimal separator is a comma.

    Y at - it than a simple means of LabVIEW to set the decimal separator to be the point instead of the comma? (in writing to measure file vi)

    now, the data is like this 56 897 but I like it in the format 56.897

    Thank you

    Hi simo,.

    Uncheck "use localized comma" in Options-front help?

  • Writing in the spreadsheet with the queue

    Hello

    I am a beginner with queues and I have a few questions.  I have attached a simple example of code that I wrote to better implement a consumer who can queue data and write on a worksheet after running the code.

    First of all, I noticed that the queue still has residual remaining after the code ends.  It then writes this element to the file to run the vi.  I can't figure how to get rid of this element.

    Second, anyone have any suggestions to improve this code?  I've been playing with it for quite some time and I finally got to work like that, but it is certainly configured differently from the other examples I've seen.

    Thirdly, I am reading the number of items in the queue, but the two in the loop of the producer and the consumer, told me that there is no element.  How can this be?  My output file seems to work and I certainly put items in the queue.

    Finally, in the future I'll use data from the queue in two places.  Here I've implemented a notifier to do the job.  This is the best method?

    Thanks for your help!

    Jason

    The reason why you do not get the last element of the queue (at least not until you restart the VI) is that you have your automatic indexation tunnel that collects all the data to send to the writing on file SS service cable for moving to register.  So this last piece of data from the queue to get into the shift register, but it is not getting into the 2-D chart by the tunnel of automatic indexing up to the next iteration of the loop.  When you rerun the VI, as the shift register is not initialized, it is already there and became the first point of your next data execution.

    Why did you put the register shift in?  Just remove and just use the tunnel of automatic indexation.

    I don't know what you really want to do with the 2nd loop to say if the Notifier is correct or not.  But if you do not want to lose data in the other loop, then you need to use a second queue and have your producer loop enqueue data in the two queues, a queue for each consumer loop.

    With regard to the elements draws in the queue, seeing how your code is configured, the queue will almost always empty because the dequeue function will be ready to pull out the element immediately after the enqueue function puts in.  Unless you have your loop producer much faster than your consumer loop running, you will not see a build up of the elements.  (Try putting an expectation of more of 100 msec in your loop of consumer.  Then you will see elements accumulate in the queue.)

    I don't know why you put the spreadsheet feature writing after the loop.  Normal use for queues in an architecture of producer/consumer must transmit the data to a separate loop that contains the functions write file.  This way he can work at his own pace, but write the data and make sure that you do not lose it.  As you have now, if your code runs a long time, you may run out of memory when at the tunnel of automatic indexing table becomes too large.  And if your application crashes before you complete it with your stop button, then all data are lost because you did not it writes the file.

  • Implement and control 'meter' in S7 - 300 by the OPC and LabVIEW

    Hello world

    I use a S7-300 PLC and OPC Server for my projects. I have a problem: S7 - 300 has a meter module which digital signal of County. I only can implemented using SIMATIC STEP 7. Can I set up the meter module using only the server OPC and LabVIEW

    does anyone have a solution or an idea for my problem?

    could you please help me...

    Thank you

    Hi Echion,

    NOR-DAQ (MX) is used only for material OR: no you can not use it.

    To program the controller you must use the right programming environment. For Siemens S7, you need to use Simatic (or perhaps some other 3rd party software supporting IEC61131). Point.

    The OPC server is used only for the exchange of data. This is no interface programming!

  • Datasocket - problem of the OPC

    Hello

    I have a problem with Datasocket, when I try to read some "OPC servers OR", I can't. But if I run the program with the option "Highlight execution", there is no problems. I tried to put a "hold" between the readings, but the problem doesn't go away.

    Thanks for your comments

    Thank you Christophe and billko for your answers.

    I already solve the problem, I'll try to explain it (excuse my English please).

    Before, I put 'DataSocket Open', "DataSocket Read" and "DataSocket farm" in the same loop iteration, without time between opening the connection and read from the OPC server. This is the result of reading was '0' all the time. Here we can see a screenshot:

    To resolve this problem, I've separated the 'open DataSocket', 'DataSocket read' and "DataSocket farm" in three different loops and I added a wait in the first loop:

    No problem now, I think that there was not enough time between opening the connection and read from the OPC server.

    Concerning

  • Sequential simultaneous writing of the queue

    Hello everyone, nice day.

    I have what should be a very simple matter.

    I'm currently implemented a producer consumer-consumption-consumer architecture. (Loop acquisition > write disk acquisition > read data from disk data > display of the user based on the data.) In plain language, I have a created the data loop, a loop of these data, a loop of disc storage and a loop displays a user interface. (This isn't supposed to be a real-time application, and I am aware of the charge created by the writing and the reading of the disc). Just stick with me on this one.

    So my problem occurs concerning the second loop. This loop is responsible to write the data be queued (produced in the loop 'Acquisition') on the disk. The problem is also, feeds on a queue to the loop of "reading disc". This configuration causes a few obstacles. The main obstacle arising from the nature of queues of LabVIEW. The loop "write to disk" writes only a part of the queue of the 'Acquisition' at the same time. This general is not really a problem, until you consider that this loop also determines the execution of the loop of "reading disc", with the use of queues. As a result, this loop determines the rate of the next loop and was therefore likely to slow demand and leave a large number of items in the queue. In addition, you must keep in mind, I'm only queueing about 7 MB of data per element, and my HARD drive has a write speed average of 60 MB with a 64 MB cache. Therefore, my installation I can only write one item at a time, therefore making me use only 7 / 60MB of bandwidth from my drive.

    My question is; It be possible to have the loop "write to disk" write several items in the queue at the same time. I hope that I can write simultaneously enough items that I can use my bandwidth 60MO together writing and speed up execution of any sub routines that depend on data written to disk.

    I know there is probably best architecture for this application, but for the moment, I am limited to this architecture. If you have any suggestions for other architectures, I'm more willing to listen to, but coming back I am looking for a way to improvise simultaneous tail reads and then write them to disk with my current structure.

    Thank you all, thank you for the help.
    Taylor S. Amarel
    Learning is alive.

    You can put your element Dequeue function in a loop For and set N to a number so that you get several items from the queue at a given time.  Turn on indexing and you will have a table of data.  Write the table in its entirety on the disc.  This should speed things up a bit.  Don't forget to use shift registers for the sons of the error and the reference to the queue in the loop For and also put a little delay in the loop to stop 100 percent CPU usage.

  • Writing to the nodes property DAQmx channel does not refresh the channel values

    Hi all

    I have a riddle.  I created a task programmatically in LabVIEW and programmatically added several analog input channels to the task.  It's easy.

    I wish that my user must be able to modify the individual channels within the task.  To this end, I created a set of screws that allow it to change the settings appropriate to the channel (for example, if it is a channel of thermocouple, it can change the type of thermocouple, CRC value, etc... If it is a strain gauge channel, it can change the coefficient of fish and so on).  These screws all works beautifully, like the VI where they live.

    The specific question that I have is that writing to the channel property nodes refreshes not communication channels.  See the images below.  The first image is the code that needs to define new channels of communication:

    Note that immediately after setting the property nodes, I read their values back, just to see what comes out back.

    The second image is an image of the public Service immediately after the execution of this VI.  Note that the values read from the channel property nodes did not updated to match to the set of values, but instead kept their initial configuration values:

    What I am doing wrong?  I fought this for a few days now and I'm stumped.

    Thanks for your time!

    Diane

    Hi, Diane.  A week ago, I also had a problem changing the channel properties (not sure that our situtions are exactly comparable, but...).  My 'solution' to want to change the appearance of the task was to just throw the original task and recreate all the elements of the task from scratch.

    I've not done enough 'experiments' to work when you can and cannot change, but am now much more cautious...

    Bob Schor

  • How to use the acquisition of input data acquire a signal at a frequency while writing to the file at a different frequency

    Hello I'm trying to read in a temperature of a thermocouple and displayed on a waveform graph and at the same time, I want to write data to a file at a significantly lower frequency.  Currently, I am sampling data acquisition at chaque.01s and I would like a sample to write to the file every 2 s.  I thought of activating/deactivating the option activate the relay every 2 s, but I don't know how to do that and I wouldn't be surprised if there is a standard way to do this, but I've not been able to find.

    Thank you

    Miguel

    If you are sampling of chaque.01s and you want to write a snack every 2 s, what about all the other samples?  You want to just throw away?  You read so 200 samples in 2 seconds.  But you want to write a sample.  You can do it if you don't mind losing the other 199 samples.

    You could use the elapsed timer function and the release of the elapsed time of a structure of business wire.  Put your writing inside the real deal function.  Nothing in the case of false.  Make sure that all of the timer to reset automatically.  If every two seconds, the case will be set to true, and will be called the write function.

  • NIDAQ no visible channels by the opc client

    I have a 9188 NiDAQ connected to a PC via ethernet. All modules are visible in MAX and check out OK but if I try to connect using OPC, I don't see an item "ServerPollingRate". Is there something I need to do to get the NI OPC server for publication channels?

    It's my first time with the 9188, I used the expansion chassis compact fieldpoint several times before without any problem.

    Hey,.

    You run an OPC Server OR on the PC? What you're reading with / publish on?

    It would be useful to have a system diagram or description, and what you've done so far in what concerns the implementation.

    Here's a pretty good overview of the OPC with DAQmx configuration, it might have the answers you are looking for.

    http://www.NI.com/white-paper/3742/en

  • Error message - error 1310: error writing to the file: C:\Config.Msi\95cd7a.rbf

    I get the error message on the software updates: error 1310: error writing to the file: C:\Config.Msi\95cd7a.rbf.  Make sure you have access to this directory.  How can I fix it?  Thank you

    Hello

    ·          What version of the operating system is running on your computer?

    ·          What software you are trying to update?

    However, try the following steps:

    Unregister and re-register Windows Installer.

    a. Click Start and then click Run.

    (b) in the Open box, type msiexec /unreg and then press ENTER.

    c. Click Start and then click Run.

    (d) in the Open box, type msiexec/regserver, and then press ENTER.

  • Age of Mythology of installation met a disk error when writing in the file C:\Users\(my name)\Desktop\aom\textures\textures.bar

    Age of Mythology of installation met a disk error when writing in the file C:\Users\(my name)\Desktop\aom\textures\textures.bar. Make sure that your hard disk is not full, and that the file is not in use

    Original title: AOM moved only to 94%

    When I install Age of mythology, I have put on disc 1, do all the stuff, he moved to 45%, and then it asks me to put in disc 2. I do, and he moved to 94%, which is the stage that she calls 'Copy texture.bar' then it stops and I can hear the disc turn and stop repeatedly. After about 10-15 minutes, I get an error message and it said:

    "Age of Mythology of installation encountered a disk error when writing in the file.

    C:\Users\(My Name)\Desktop\aom\textures\textures.bar.

    Make sure that your hard disk is not full, and that the file is not in use. »

    I know that my hard disk is not full, because I just got this computer a month ago. In addition, when the disc is, it vibrates and makes a buzzing sound that only stopped when I put my finger on the space between the disc and the side of the laptop.

    Could you please help me?

    See if it's in the download of the demo. http://AOM.HeavenGames.com/

  • capture data using writing to the file position encoder

    Hello dear Sir

    can anyone help to check with my encoder to measure data?
    I connect the writing to the file of the measurement, but when I open the .txt file,.
    no result is, thank you very much for your help


Maybe you are looking for