How to specify Attribute ID in OPC Server DevicenetExplicit

I'm trying to set up an Allen Bradley 842D Devicenet Absolute Encoder
using the OPC server.  The manuals for the device mention that the
data can be retrieved from the various Attribute ID's in each
class.  From the OPC Server Help example below,  it starts to
describe the location of the data desired,  but fails to show me
where I specify the attribute ID.  For example, lets say in the
example below,  I now want Attribute 2 or 3.  How does the
below example tell me how?.
Since I'm trying to get all this data in via the IA OPC server, 
I'm not planning on using the DNET Vi's.  BUT.....I did look at
the "GetIdentityAttrs.vi" and notice that the VI's provided allow for
Class ID, Instance ID, and Attribute ID.  All of which correctly
gives me the information I want when I run this VI with the 842D
encoder.
From OPC Server Online Help:
NIDeviceNetExplicit Example
Suppose you want to get attribute 1 from Class ID 1, Instance 3 of an
object. Class ID 1 is the Identity Class, where all the identification
information for the device is contained.
Enter the background information when you create the
NIDeviceNetExplicit object, setting the Service Code to 14 and the
Class ID to 1. From the manufacturer’s documentation, you know that
GetAttribute only accepts an unsigned integer (USINT) as a parameter.
The baud rate for the object in question is an 8-bit unsigned integer
(USINT). To read the baud rate, access the IID3.USINT0 data member.
From the Above,  this is what how i'm interpreting the configuration:  IID ( Instance ID).USINT (data offset)
To re-iterate my question:  How do I specify the Attribute ID when using the IA OPC Server DeviceNetExplicit Object? 
Regis

Hi Regis,
The general steps to send & receive the explicit message using the NI OPC Server:
Configure an OPC item to write the explicit message, you have to set the attribute ID for the GET request message here.
Configure an OPC item to read the explicit message, you will get the explicit response from it.
Example: Read the Vendor ID (ClassID=1, InstanceID=1, AttributeID=1, DataType=UINT)
(1) Configure the NIDeviceNetExp object with the right MAC ID, ServiceCode=14(GET), ClassID=1
(2) Add an OPC item (Data Member) NIDeviceNetExp1.IID1.USINT0 to write the parameter.
(3) Add an OPC item (Data Member) NIDeviceNetExp1.IID1.UINT0 to read the Vendor ID.
(4) Then you get the alarm message in IA OPC server and get failure message in your OPC client , if you have one started allready, because it reads the item automatically.
The magic action is here: you write the value 1 to NIDeviceNetExp1.IID1.USINT0. (then the attribute ID 1 is set correctly).
You can get the vendor ID then reading NIDeviceNetExp1.IID1.UINT0.
2. Example: If you want to get the Serial Number (ClassID=1, InstanceID=1, AttributeID=6, DataType=UDINT)
Add an OPC item NIDeviceNetExp1.IID1.UDINT0
You write the value 6 to NIDeviceNetExp1.IID1.USINT0
You can get the Serial Number in NIDeviceNetExp1.IID1.UDINT0
So you can conclude that:
(1) if you write to NIDeviceNetExp1.IID1.USINT0, USINT is the data type used to encode the request message parameter.
(2) if you read from NIDeviceNetExp1.IID1.UDINT0, UDINT is the data type used to decode the response message.
Attached you can find an example using LV and  Datasocket to read the Vendor ID.
Hope that helps with your problem.
DirkW
Attachments:
DNET to OPC Item.vi ‏44 KB

Similar Messages

  • Hello!!!ho​w can I control an omron plc (sysmac cqm1)with an OPC server?I want to adquire a signal controllin​g its amplitude and frecuency.​How can it be done with OPC server?I already have the NI CD of OPC drivers.Th​ank you

    Hello!!!how can I control an omron plc (sysmac cqm1)with an OPC server?I want to adquire a signal controlling its amplitude and frecuency.How can it be done with OPC server?I already have the NI CD of OPC drivers.Thank you

    Hola Jose David, que OPC estas utilizando?, Si tienes comunicación entre tu computadora y PLC pero falla la comunicación entre el OPC y el PLC? La configuración y direcciones entre los dos es correcta? La comunicación es por cable serial?
    Espero tus respuestas
    Saludos
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • How can I write to an OPC Server?

    Hello!
    I was busy a few days with LabVIEW 8 to finish a special task, but now I've got problems to solve the following problem:
    I have an OPC connection between a frequency converter and LabVIEW 8. With the example vi's I get the data out of the OPC Server (revolutions per minute).
    So I can read data out of the OPC Server, but how can I write? I want to write several voltage values to the OPC Server that the frequency converter gets the required revolutions per minute.
    Have you got any ideas? Are there existing example vi's to write data to an OPC Server?
    Best regards and Thanks in advance!

    So here it is - a little bit modified, but you should get the idea out of it.
    If you have questions, I'll try to answer them .
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    IOControl.llb ‏168 KB

  • How to make SVE a visible OPC server to third party OPC clients?

    I've read SVE works as an OPC sever, but when I try to browse it with a third-party OPC client I get no items.
    Is there any configuration needed? Is DSC needed?
    http://zone.ni.com/reference/en-XX/help/371361E-01/lvconcepts/opc_conn_from_tpclients/

    Hi Keptat
    DCOM shouldn’t be the problem because you are not using the OPC server from an external computer or from other PC user, nevertheless, you can always try to do it.
    I’m attaching some links with information about the DCOM privileges and how to configure de SVE.
    Are you able to see others OPC servers with your clients?
    http://zone.ni.com/devzone/cda/tut/p/id/3371
    http://zone.ni.com/devzone/cda/tut/p/id/4679#toc3
    http://digital.ni.com/public.nsf/allkb/5C8A90CD57B279F286256C2C006F1EB4?OpenDocument
    Coamín Cruz
    NI México
    Mensaje editado por Coamín

  • How to setup and configure NI OPC Server to OMRON PLC (CJ2H model) using FINS Ethernet communication protocol?

    Hi,
    Could someone help me in the setup and configuration of NI OPC server to OMRON PLC (CJ2H model) using FINS Ethernet communication protocol? I already read some materials available in the web but it uses a different PLC and communication protocol. The OPC server is installed in my laptop and I'm using Windows 8 as my OS. I used a cross over RJ45 LAN cable and connected to the ETN21 module of the PLC. I was able to confirmed the communication of my laptop and PLC by pinging the ip address of the ETN21. I also tried to configure the OPC server based on the documents I just read online. I created a channel, device and tag to the OPC server. By the way, I just need to read the data from the tag I created. Can someone also tell me how to monitor the data on the tag? I hope that you could help me. Thank you in advance. 

    Good day,
    Try following the instructions on the driver’s help, take a look at the attach picture. It should be a good starting point. After the PLC is configured you can use this tutorial (Connect LabVIEW to Any PLC Using OPC » http://www.ni.com/white-paper/7450/en/) for a guide on how to monitor the tags.
    I hope this helps
    Alejandro | Academic Program Engineer | National Instruments
    Attachments:
    OPC Server Help.JPG ‏237 KB

  • How to specify port when ssh to server

    Hi all.
    I have a server that I am configuring, and one of the steps I'm taking is to change the default ssh port from 22 to another port to elude the script kiddies.
    When I ssh to the server in Terminal, I'm having issues connecting (while I don't using Putty in winblows).
    I think it is because I'm not specifying the port correctly.
    Does anyone here know the correct syntax in Terminal to specify a different port than 22?
    I've used ":" and "[]", so I'm at a loss at the moment...

    Hi--
    Does anyone here know the correct syntax in Terminal
    to specify a different port than 22?
    <pre class="command">ssh -p 1234 [email protected]</pre>assuming you're just doing a straight login to a command-line, has always worked for me.
    By the way, if you're new to the Terminal, most of the commands you'll run in the Terminal have really good man pages. Just type:
    <pre class="command">man ssh</pre>to see it.
    If you know what you're looking for, it's right there in the last line of the synopsis:
    <pre class="command">SYNOPSIS
    ssh [-1246AaCfgkNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D port]
    [-e escape_char] [-F configfile] [-i identity_file]
    [-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option]
    [-p port] [-R port:host:hostport] [user@]hostname [command]
    </pre>If you're not sure what you're looking for, you can often find it a bit lower down. Unfortunately, in the case of ssh, it has a long man page, so you have to go quite a bit further down to find it:
    <pre class="command"> -p port
    Port to connect to on the remote host. This can be specified on
    a per-host basis in the configuration file.</pre>
    Have fun,
    charlie

  • List all items stored on an OPC server

    Hi!
    is there a way to get all items stored on an OPC server without using the DSC toolkit ?

    Bonjour,
    Effectivement,  le toolkit DSC est principalement utilisé pour l'E/S sur des serveurs OPC.
    Sinon, voici quelques liens qui pourraient vous aider :
    Setting Proper Access for Remote OPC Server When Using National Instruments OPC Clients
    http://digital.ni.com/public.nsf/allkb/5C8A90CD57B279F286256C2C006F1EB4?OpenDocument
    How Do I Connect to an OPC Server Using DataSocket?
    http://digital.ni.com/public.nsf/allkb/F92C1F2F7B35105B86256DB200628B24?OpenDocument
    Cordialement,
    Rémi M.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les présentations NIDays 2010 déjà disponibles au téléchargement !

  • Communicate With OPC Server

    I am Using the PLC of Unitronics they have there OPC server called uniOPC sever i need to communication the OPC server using DSC what are the steps to communication.I am new with Labview.

    How Do I Connect to an OPC Server Using DataSocket?

  • How to read enumerated values from an OPC server via Datasocket

    Hi Labviewers,
    I am using LV8.2 and I am trying to find if it is possible to read enumerations from an OPC server via Datasocket, not just the values.
    I can successfully read a value for an OPC server via Datasocket and I get a value for example 3, is it possible to get the enumeration/string that corresponds to this value i.e. "Open".
    Many thanks in advance
    Dimitris

    Hi Sarah,
    With the input type as variant I get the following response:
    1                                     <-This is the current numeric value of the parameter
    4 Attribute(s):
       'Quality' -> 192
       'TimeHigh' -> 29861723
       'TimeLow' -> -665408304
       'Timestamp' -> 39.238E+3
    With the Input set to         Enum constant I get no values or strings coming back. With the Input set to                Ring constant I just get the numeric value   
    Dimitris   

  • How to delete duplicate attribute in on premise server for office 365 dir sync tool

    Hi,
    Please anyone help to how to remove duplicate attribute in on premise server for office 365 dir sync tool .
    While running the dirsync tool iam getting the below error : 
    "Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [ProxyAddresses smtp:[email protected],SMTP:[email protected];].
     Correct or remove the duplicate values in your local directory.  Please refer to http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute value"
    Still i am troubleshooting to reslove this problem . I have run the ID Fix tool there i could see some 10 duplicate errors . Next what should i do , please anyone help me to find it
    Thanks.....

    Hi,
    Please anyone help to how to remove duplicate attribute in on premise server for office 365 dir sync tool .
    While running the dirsync tool iam getting the below error : 
    "Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [ProxyAddresses smtp:[email protected],SMTP:[email protected];].
     Correct or remove the duplicate values in your local directory.  Please refer to http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute value"
    Still i am troubleshooting to reslove this problem . I have run the ID Fix tool there i could see some 10 duplicate errors . Next what should i do , please anyone help me to find it
    Thanks.....

  • How can I write to a Siemens S7-300 PLC tag from OPC Server.vbai page by using a Knob object ?

    I am using NI OPC Server and I can read Siemens S7-300 PLC tags such as thermocouple values from the PLC. Additonally I can write manually a constant value to that tag by selecting it in the NI Distributed System Manager. And I can read the written value from NI Distributed System Manager or from NI OPC Server. But I can not write any value to the S7300 PLC tags such as by using a knob object at the NI Vision Builder AI Inpection (.vbai) page.
    Any help is welcomed. Thanks in advance.
    Attachments:
    manual_writing_to_plc.png ‏298 KB

    The tutorial at the following location explains how to use Vision Builder AI as a OPC server.
    https://decibel.ni.com/content/docs/DOC-18647
    http://www.ni.com/white-paper/13574/en
    To allow VBAI to connect to an OPC Server (i.e. act as an OPC client), you need to purchase and install the DSC Run-time System.
    Once installed, you can create an OPC I/O client using the Distributed System Manager, create variables bound to OPC tags, then create VBAI network variables that are bound to these variables.
    Another possible technical solution to connect to OPC Servers supporting Data Access 2.0 is to use the datasocket API in a Run LabVIEW step.
    http://forums.ni.com/t5/Machine-Vision/Read-and-Write-with-OPC-through-NI-Vision/m-p/2048278/highlig...
    Hope this helps.
    -Christophe

  • How to specify URL in server.xml of Tomcat

    Hi Everybody,
    I need help.How to specify url in the server.xml.
    I developed one application in the Tomcat 3.3.I want to access the by entering uri(like:http:test.com).
    What are tags to enter in the server.xml.
    Right now i am accessing like:http://localhost:8080/Test/Login.jsp
    I want replace this with (www.test.com).
    This site will access from anywhere means it is going to live.
    So what are things have to do in the server.xml
    Please provide the solution.
    Regards
    Sridhar

    Hi Raktim:
    I looked around on SDN and it seems that i have found what you have been looking for.
    Kindly look at page number 24 and 25 of this page
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4d46fb8a-0b01-0010-9fbe-e4b96533b222
    P.S: Kindly assign points if your query is resolved, also close the question to assist other users narrow the search and find solutions

  • How do I browse an OPC Server's Namespace with Teststand ActiveX Steps?

    Hello
    I use Teststand as the client of an OPC Connection. At the Moment I'm trying to realize an browse funktionality by using the "OPC Automation 2.0" automation server in the
    ActiveX adapter.
    What I can create is the OPCBrowse object by using the "CreateBrowser" method. But then there's no method to browse the OPC server's namespace for the ItemID's.
    Does someone have an idea how I can go on further?
    thx, Michael   

    For your information, there is a new TestStand Add-on "OPC DA Connect" which adds a StepType Palette dedicated to OPC Data Access.
    You can configure each step by browsing the OPC servers on your network and browsing variables within these servers.
    The browsing functionnality that you where looking for as been implemented in this toolkit.
    Hoping this helps.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

  • How to understand the Error message of the connection of OPC server

    hi guys, one issue need your help
    when I run the NI OPC servers, one error message will appear in the process information.
    Just like as followed:
    ==================================================​=========================
    2011-6-23   11:50:05   Default User   NI OPC Servers   Stopping Simulator device driver.
    2011-6-23   11:50:05   Default User   NI OPC Servers   Closing project D:\National Instruments\Shared\NI OPC Servers\projects\simdemo.opf
    2011-6-23   11:50:25   Default User   NI OPC Servers   NI OPC Servers
    2011-6-23   11:50:25   Default User   NI OPC Servers   Unable to load driver DLL 'D:\National Instruments\Shared\NI OPC Servers\drivers\dataforth_isolynx_u.dll'
    more messages
    ==================================================​===========================
    how to understand "2011-6-23   11:50:25   Default User   NI OPC Servers   Unable to load driver DLL 'D:\National Instruments\Shared\NI OPC Servers\drivers\dataforth_isolynx_u.dll'??????
    Thanks

    Hi!
    I have the same problem when opening the OPC Server.
    Unfortunately I have no solution, but I think it has something to do with incorrect Certificates and is more of a Windows Problem.
    If anybody can help, please let us know!
    Best Regards
    Martin

  • How to replicate 'memberOf' attribute to global catalog server

    Hi,
    I am trying to replicate 'member of' attribute to global catalog server, to get the data from child domain where trust is enabled.
    i did a little reserach and found that 'isMemberOfPartialAttributeSet' should be true to get it replicated to global catalog server.
    in schema, i am trying set 'isMemberOfPartialAttributeSet' true for "is-member-of-DL" attribute and getting illegal modification.
    is there any other way, where i can modify (or with help of Microsoft).
    OS: windows 2003 R2 (SP2) - MSDN
    Thanks!
    Karthik
    Thanks, Karthikeyan R

    Hi Karthik,
    Based on my tests, the right way to modify attributes that replicate to the Global Catalog is:
    Open Active Directory schema snap-in.
    Then locate the attribute which you wish to modify.
    Right click on it, and select Properties.
    Tick the check box “Replicate this attribute to the Global Catalog”.
    Here is a screenshot for you:
    More references below:
    Install the Active Directory Schema snap-in
    http://technet.microsoft.com/en-us/library/cc755885(v=WS.10).aspx
    How to Modify Attributes That Replicate to the Global Catalog
    http://support.microsoft.com/kb/248717
    Best Regards,
    Amy

Maybe you are looking for

  • Movie not showing up in iTunes.

    I have 3 or 4 movies that i purchased that are not showing up in iTunes. The movies are still available in the store and are showing up on my iOS devices.

  • Subscription paid but account inactive - Payment ...

    Hi username - anup_nz 400 mintues India subscription I had paid for the 400 mintues to India - The amount has been withdrawn from the account and payment reference received-but yet I am unable to make calls with my subscription.  I have been waiting

  • Error appearing on table

    Hi everyone, I have a 2 row table. The first row is a text cell while the second row contains 3 radio buttons. When I inserted the radio buttons into the row, I found that I had to wrap the radio group within a subform and then set the content to "Fl

  • Using AQ Topic in OC4J Cluster

    Hello, I want to load balance messages from an AQ JMS Topic to an OC4J JEE application running in an AS Cluster. I have that setup: AQ: Topic / Durable Subscriber -> OC4J: 2 Containers Comming from the BEA JMS terminology I used to configure a "Messa

  • Why can't I open ppt file while I have already purchased office:mac 2011

    I am using macbook air running the latest os x Maverick, I have also installed office:mac 2011.  My friend sent me a ppt file but it cannot be opened.  Could someone please help?!  Many thanks!