2017Äê9Ô£¬OPC UAÕýʽ³ÉΪ¹ú¼ÒÍƼöÐÔ±ê×¼¡£¶ø¹ØÓÚOPC UAÊÇʲô£¬ºÍOPCÓÐʲôÇø±ð£¬ÎªÊ²Ã´ÒªÊ¹ÓÃOPC UA£¬Ðí¶àÈËÈ´¸ÐÓ¦ÒÉ»ó¡£ÒÔÏÂÕâƪÎÄÕ£¬½«×ÊÖú¸÷È˽â´ðÒÉ»ó¡£
ʲôÊÇOPC
ΪÁ˱ãÓÚ×Ô¶¯»¯ÐÐÒµ²î±ð³§¼ÒµÄ×°±¸ºÍÓ¦ÓóÌÐòÄÜÏ໥½»Á÷Êý¾Ý£¬½ç˵ÁËÒ»¸öͳһµÄ½Ó¿Úº¯Êý£¬¾ÍÊÇOPCÐÒé¹æ·¶¡£ÓÐÁËOPC¾Í¿ÉÒÔʹÓÃͳһµÄ·½·¨È¥»á¼û²î±ð×°±¸³§É̵IJúÆ·Êý¾Ý¡£
¾µäOPC¹æ·¶»ùÓÚ΢ÈíWindowsϵͳÌṩµÄCOM/DCOMÊÖÒÕ£¬ÓÃÓÚÈí¼þÖ®¼äÊý¾Ý½»Á÷µÄ¹æ·¶¡£OPC¹æ·¶½ç˵Á˼¸ÖÖ²î±ðµÄ£¬ÓÃÓÚ»á¼ûÀú³ÌÊý¾Ý¡¢±¨¾¯ÐÅÏ¢ÒÔ¼°ÀúÊ·Êý¾ÝµÄ°æ±¾¹æ·¶£º
• OPCʵʱÊý¾Ý»á¼û¹æ·¶£ºOPC DA (Data Access, exchange of real-time values)½ç˵ÁË°üÀ¨Êý¾ÝÖµ£¬¸üÐÂʱ¼äÓëÊý¾ÝÆ·ÖÊÐÅÏ¢µÄÏà¹Ø±ê×¼¡£
• OPC±¨¾¯ÊÂÎñ»á¼û¹æ·¶£ºOPC A&E (Alarms & Events, exchange of alarms and events) ½ç˵Á˱¨¾¯Óëʱ¼äÀàÐ͵ÄÐÂÎÅÀàÐÅÏ¢£¬ÒÔ¼°×´Ì¬×ª±äÖÎÀíµÈÏà¹Ø±ê×¼¡£
• OPCÀúÊ·Êý¾Ý»á¼û¹æ·¶£ºOPC HDA (Historical Data Access, exchange of historical values) ½ç˵ÁËÅÌÎÊ¡¢ÆÊÎöÀúÊ·Êý¾ÝºÍº¬ÓÐʱ±êµÄÊý¾ÝµÄÒªÁì¡£
• OPC»ùÓÚXML WebЧÀ͵ÄÊý¾Ý»á¼û¹æ·¶£ºOPC XML DA (XML-based exchange of real-time values)¹æ·¶½ç˵Á˳£Óñê¼ÇµÄÃüÃû¿Õ¼ä£¬¼°Ä¿µÄÃüÃû¿Õ¼ä¡£
ÒÔÉÏËùÓеĽӿڽç˵¶¼Í³³ÆΪOPC¡£
ʲôÊÇOPC UA
ΪÁËÓ¦¶Ô±ê×¼»¯ºÍ¿çƽ̨µÄÇ÷ÊÆ£¬ÎªÁ˸üºÃµÄÍƹãOPC£¬OPC»ù½ð»á½üЩÄêÔÚ֮ǰOPCÀÖ³ÉÓ¦ÓõĻù´¡ÉÏÍƳöÁËÒ»¸öеÄOPC±ê×¼-OPC UA¡£
OPC UA½Ó¿ÚÐÒé°üÀ¨ÁË֮ǰµÄ A&E, DA,OPC XML DA or HDA£¬Ö»Ê¹ÓÃÒ»¸öµØµã¿Õ¼ä¾ÍÄÜ»á¼û֮ǰËùÓеŤ¾ß£¬²¢ÇÒ²»ÊÜWINDOWSƽ̨ÏÞÖÆ£¬ÎÞаÐÔºÍÇå¾²ÐÔ±È֮ǰµÄOPC¶¼»ñµÃÁËÌáÉý¡£
OPC UA¹æ·¶²»ÔÙÊÇ»ùÓÚCOM/DCOMÊÖÒÕ£¬Òò´ËOPC UA²»µ«ÄÜÔÚWindowsƽ̨ÉÏʵÏÖ£¬¸ü¿ÉÒÔÔÚLinux£¬ÒÔ¼°ÆäËûµÄǶÈëʽƽ̨ÖÐʵÏÖ¡£
Çø±ð
OPCºÍOPC UAÐÒéʹÓõÄTCP²ã·×ÆçÑù£º
OPCÊÇ»ùÓÚDOM/COMÉÏ£¬Ó¦Óòã×²ã£»
OPC UAÊÇ»ùÓÚTCP IP scoket ´«Êä²ã¡£
OPCËäȻͨ¹ýÉèÖÃCOM/DOMÀ´ÌṩÊý¾Ý¼ÓÃܺÍÊðÃû¹¦Ð§£¬ÉèÖ÷À»ðǽ£¬Óû§È¨ÏÞÀ´ÈÃÊý¾Ý»á¼û±äµÃÔ½·¢Çå¾²£¬¿ÉÊÇ»áÔöÌíÌØÁíÍâÊÂÇéÁ¿£¬ÓÈÆäÊǶԷÇITµÄ¹¤³ÌʦÀ´Ëµ£»
¹ØÓÚOPC UA£¬Êý¾Ý¼ÓÃܺÍÊðÃû£¬·À»ðǽµÈ¶¼ÊÇĬÈϵĹ¦Ð§¡£ºÃ±È»ùÓÚDOMµÄOPCʹÓõĶ¯Ì¬¶Ë¿Ú·ÖÅÉ£¬¶Ë¿Ú²»Àο¿£¬È÷À»ðǽÄÑÒÔÈ·¶¨£¬¶øOPC UAµÄ¶Ë¿Ú¶¼ÊÇΨһµÄ£¬ºÃ±ÈSINUMERIK 840DÊÇPORT 4840£¬SIMATIC S7ÊÇPORT 4845¡£DOM/COMÒ²¿ÉÒÔÌìÉú²î±ð¼¶±ðµÄÊÂÎñÈÕÖ¾£¬µ«ÈÕÖ¾ÄÚÈݲ»·óÏêϸ£¬Ö»»áÌṩ“ËÅþÁ¬ÉÏЧÀÍÆ÷”ÕâÖÖ£¬¶ø¹ØÓÚOPC UAÀ´Ëµ¶¼ÊÇĬÈϵĹ¦Ð§£¬ÌìÉúµÄÈÕÖ¾ÄÚÈݸüÖÜÈ«¡£
ΪʲôʹÓÃOPC UA
01
¹¦Ð§·½Ã棬OPC UA²»µ«Ö§³Ö¹Å°åOPCµÄËùÓй¦Ð§£¬¸üÖ§³Ö¸ü¶àÐµĹ¦Ð§£¬ÀýÈçµØµã¿Õ¼äÓÅ»¯¡¢»¥·ÃÈÏÖ¤µÈ¡£
02
ƽ̨֧³Ö·½Ã棬ÓÉÓÚ²»ÔÙ»ùÓÚCOM/DCOMÊÖÒÕ£¬OPC UA±ê×¼ÌṩµÄ¸ü¶àµÄ¿ÉÖ§³ÖµÄÓ²¼þ»òÈí¼þƽ̨¡£
03
Çå¾²ÐÔ·½Ã棬×î´óµÄת±äÊÇOPC UA¿ÉÒÔͨ¹ýÈκμòµ¥¶Ë¿Ú£¨¾ÖÎÀíÔ±¿ª·Åºó£©¾ÙÐÐͨѶ£¬ÕâʹµÃOPCͨѶ²»ÔÙ¼ûÓÉÓÚ·À»ðǽÊܵ½´ó×ÚµÄÏÞÖÆ¡£