Try   HackMD

OPC UA/DA Overview

理解OPC UA/DA過程中的簡易筆記。

OPC

Without OPC:







%0



SCADA1

SCADA1



PLC1

PLC1



SCADA1->PLC1


can bus



PLC2

PLC2



SCADA1->PLC2


Modbus



SCADA2

SCADA2



PLC3

PLC3



SCADA2->PLC3


RS-485



PLC4

PLC4



SCADA2->PLC4


I2C



SCADA3

SCADA3



PLC5

PLC5



SCADA3->PLC5


Profibus



PLC6

PLC6



SCADA3->PLC6


Ethernet



With OPC:







%0



HMI

HMI
Client



s



OPC Server



HMI->s





SCADA1

SCADA1
Client



SCADA1->s





SCADA2

SCADA2
Client



SCADA2->s





SCADA3

SCADA3
Client



SCADA3->s


 OPC



PLC1

PLC1



s->PLC1





PLC2

PLC2



s->PLC2





PLC3

PLC3



s->PLC3





PLC4

PLC4



s->PLC4





PLC5

PLC5



s->PLC5





PLC6

PLC6



s->PLC6


OPC, Modbus, Profibus... etc



使用OPC,軟體(SCADA、人機介面)開發商就不需特地為了各種不同的PLC通訊界面製作各種驅動軟體,擷取任何的資料,只需要建立OPC Client,並向OPC Server發送資料請求並擷取資料即可。而現今大多數中高端的PLC已經內建OPC Server。

Client and Server Fundamental Interactions:

  • A Client initiates communications(sending request) with a Server.
  • A Server's behaviour depends on Clients.
  • A server waits for incoming requests from Clients.
  • Interacting like a simple web service.

OPC Server config:

  • Channel: protocol being used
  • Device: device type like part number of PLC and its hierarchy path.
  • Tag: data of interest.
    • Tag name: fan speed RPM, boiler temperature, tank level, etc
    • PLC memory address (not sure is this is correct)
    • tag properties: mostly data type(boolean, integer, float)

OPC DA(1995~2009)

  • Only works on same Windows Domain or Workgroup.
  • Only works with Windows OS via COM/DCOM.
  • Opening DCOM also open a big hole on firewall, impossible route over Internet.
  • Security was not a concern dates back to when this protocol designed.

OPC UA(2009~now)

  • based solely on IP-based standards. (ex: opc.tcp://ServerIP)
  • Crossing platforms.
  • Established crossing LAN, WAN and Internet.
  • Passing data through router and firewall.
  • Security
    • Key exchange from Client to Server and from Server to Client.
    • Surpporting HTTPS/SSL/TCP.
    • RSA data encryption.
  • Not sure if it's fully open or not.

Reference:

OPC Server & Client Data Communications – Introduction and Overview (Kepware, KEPServerEX)

【物聯網線 08】簡化工業裝置的聯網利器:Azure IoT + OPC UA

OPC Proxy by Microsoft

OPC Publisher by Microsoft

OPC Foundation Official Website

Open OPC UA

FreeOpcUa