Home
Support
La Interfaz OPC DataSocket 3.0 No Soporta Algunos Caracteres Como Parte del ItemID
La Interfaz OPC DataSocket 3.0 No Soporta Algunos Caracteres Como Parte del ItemID
Software Primario: Measurement Studio>>.NET Support
Versión de Software Primario: 3.0
Versión de Software Primario Corregido: N/A
Software Secundario: Measurement Studio>>Visual C++ Support
Problema: Mi servidor OPC expone algunos ítems con nombres que incluyen corchetes, por ejemplo:
opc:/Server1/Item1.Band[BAND]
Tengo entendido que DataSocket 3.0 es compatible con OPC 1.0A. Revisé las especificaciones de este último y no impone restricción alguna en los caracteres. Solo menciona lo siguiente:
"The Item definition (ItemID) used in the OPCITEMDEF and elsewhere is a null-terminated string that uniquely identifies an OPC data item. The syntax of the identifier is server dependent (although it should include only printable UNICODE characters)."
Solución: DataSocket 3.0 maneja corchetes
al final del nombre del item como un caracter de control. Si desea prevenir que DataSocket mal interprete los corchetes, entonces agregue un # al final del nombre del ítem:
opc:/Server1/Item1.Band[BAND]#
No tiene que renombrar el ítem en el servidor. Este es el String que debe utilizar en el cliente, el String que se pasa al DataSocket. El símbolo # es ignorado por el DataSocket, pero el símbolo mantiene los corchetes en el nombre del item al ser el último caracter y en todo caso DataSocket no tratará de analizar el nombre, será manejado como tal.
Ligas Relacionadas:
Archivos Adjuntos:
Día del Reporte: 06/09/2000
Última Actualización: 05/08/2009
Identificación del Documento: 1Y8C4L9L
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.