Copyright © 2015, OPC Council Japan, All Rights Reserved
日本OPC協議会 技術部会
本田寿明
Copyright © 2015, OPC Council Japan, All Rights Reserved
国際標準規格のOPC UA(IEC62541) 次世代のコンセプト OPC UAの強み OPC UAアプリケーション開発をする前に OPCアプリケーション開発入門 発刊 OPC UAアプリケーションの作成◦ 配布OPC UA .NET SDK◦ 配布OPC UA .NET SDKの中身◦ UAサーバーに接続する◦ セキュリティポリシーを選択する
OPC UAアプリケーションの運用◦ 証明書の交換
デモンストレーション◦ デモシステム①◦ デモシステム②
2
Copyright © 2015, OPC Council Japan, All Rights Reserved
3
OP
C C
lassic
OP
C U
A
Copyright © 2015, OPC Council Japan, All Rights Reserved
IoT(Internet of Things)
◦ インダストリー4.0
◦ インダストリアル・インターネット
中心的な通信プロトコル!
4
Copyright © 2015, OPC Council Japan, All Rights Reserved
5
バリアブル/プロパティ
振る舞い(メソッド)
フォルダ
変数(データ)
オブジェクト
Copyright © 2015, OPC Council Japan, All Rights Reserved
6
認証と認可
完全性と機密性
アプリケーション認証
利用環境の妥当性
- Application Instance Certificate
ソフトウエア認証
ソフトウエアの妥当性
- Software Certificate
ユーザ認証
利用者の妥当性
- Username & Password
- WS-Security Token
- X.509 V3
ユーザ認可
アクセス制御
- Access Level
- Write Mask
- Executable
FIC001.SV=50.00
Write: FIC001.SV=50.00
メッセージ認証
暗号化
Copyright © 2015, OPC Council Japan, All Rights Reserved
7
UA Binary
UA Secure
Conversation
UA TCP
TCP/IP
UA Binary
None
None
HTTPS
UA XML
WS Secure
Conversation
SOAP 1.2
HTTP
通信速度
速 遅
インターネット親和性
低 高
Copyright © 2015, OPC Council Japan, All Rights Reserved
8
Copyright © 2015, OPC Council Japan, All Rights Reserved
9
Copyright © 2015, OPC Council Japan, All Rights Reserved
団体・会社名 国 Toolkit Types Language
Client Server C/C++ Java .NET
OPC Foundation アメリカ(日本)
✔ ✔ ✔ ✔ ✔
Unified Automation
GmbH
ドイツ ✔ ✔ ✔ ✔ ✔
Softing Industrial
Automation GmbH
ドイツ ✔ ✔ ✔ ✔
Prosys PMS Ltd フィンランド ✔ ✔ ✔ ✔
MatrikonOPC カナダ ✔ ✔ ✔
10
参考:http://www.opcconnect.com/uakit.php
Copyright © 2015, OPC Council Japan, All Rights Reserved
11
第1部 OPC Classic
1. OPCの基本知識2. EXCELを利用したOPCアプリケーションの開発3. Visual BasicによるOPCアプリケーションの開発4. .NETラッパーによるDAアプリケーションの開発5. 動作環境の設定
第2部 OPC UA
7. OPC UAの基本知識8. OPC ClassicクライアントからOPC UAサーバへのアクセス9. .NET SDKによるUAアプリケーションの開発
工業技術社 ISBN 4-905957-23-0 C 3055
Copyright © 2015, OPC Council Japan, All Rights Reserved
12
Copyright © 2015, OPC Council Japan, All Rights Reserved
13
Opc.Ua.Core.dll
Opc.Ua.Server.dll Opc.Ua.Client.dll
Opc.Ua.ClientControls.dll
OPCFoundation.UA.ClientSDK.dll
書籍用に配布
Opc.Ua.Configurati
on.dll
Copyright © 2015, OPC Council Japan, All Rights Reserved
OPCFoundation.UA.ClientSDK.dll
◦ Opc.Ua
◦ Opc.Ua.Bindings
◦ Opc.Ua.Client
◦ Opc.Ua.Client.Controls
◦ Opc.Ua.Client.Controls.Common
◦ Opc.Ua.Configuration
◦ Opc.Ua.Export
◦ Opc.Ua.Schema
◦ Opc.Ua.Schema.Binary
◦ Opc.Ua.Schema.Xml
◦ Opc.Ua.Security
◦ Opc.Ua.Server.Controls
14
UAクライアントを作成UAクライアント開発で使用する名前空間
Copyright © 2015, OPC Council Japan, All Rights Reserved
15
UAサーバーのエンドポイント情報を取得する
セキュリティポリシーを選択する
UAサーバーと接続する(セッションを作成する)
UAサーバーUAクライアント
GetEndpoints
CreateSession
UAサーバーと接続する(チャネルを作成する)
CreateChannel
UAサーバーUAクライアント
UAサーバーUAクライアント
(1)
(2)
(3)
(4)
Copyright © 2015, OPC Council Japan, All Rights Reserved
16
(0)
(1)
(2)
(3)
(4)
Copyright © 2015, OPC Council Japan, All Rights Reserved
使用したクラスの格納場所
17
名前空間 クラス名
Opc.Ua ApplicationConfiguration
EndpointDescription
EndpointConfiguration
ConfiguredEndpoint
SessionChannel
Opc.Ua.Client.Controls ClientUtils
ConfiguredServerDlg
Opc.Ua.Client Session
Copyright © 2015, OPC Council Japan, All Rights Reserved
18
セキュリティポリシー 暗号化 対称鍵の最小の長さ
Basic256 Aes 256
Basic128Rsa15 Aes 128
None - -
UAクライアント(ver 1.02.336.0)
Copyright © 2015, OPC Council Japan, All Rights Reserved
19
Message Header
Security Header
Sequence Header
Body
Padding
Signature
Data To Encrypt
引用元:OPC UA Part 6 - Mappings
Copyright © 2015, OPC Council Japan, All Rights Reserved
20
Copyright © 2015, OPC Council Japan, All Rights Reserved
21
<暗号化無し>(None)
<暗号化有り>(Basic256)
暗号化されて簡単には覗けない
Copyright © 2015, OPC Council Japan, All Rights Reserved
22
Copyright © 2015, OPC Council Japan, All Rights Reserved
ピアツーピア交換(記憶媒体)
ピアツーピア交換(ネットワーク経由)
23
UAサーバーUAクライアント
UAサーバーUAクライアント
Copyright © 2015, OPC Council Japan, All Rights Reserved
証明書を一括管理
24
Copyright © 2015, OPC Council Japan, All Rights Reserved
25
Copyright © 2015, OPC Council Japan, All Rights Reserved
26
Copyright © 2015, OPC Council Japan, All Rights Reserved
27
Data Access
Excel
(UAクライアント)OPC ClassicサーバーCogent DataHub
(UAサーバー)
UA通信 DCOM
Copyright © 2015, OPC Council Japan, All Rights Reserved
28
Excel
(UAクライアント)監視
監視監視
UA Sample Client
(UAクライアント)
開始
開始 開始
開始
溶接ロボット① 溶接ロボット② 溶接ロボット③
Top Related