Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

DeviceXPlorer OPC Server V6 開発時に使っている便利な機能のまとめ

0
Posted at

はじめに

たけびし (TAKEBISHI) 製の OPC サーバーである、デバイスエクスプローラ (DeviceXPlorer) で開発時に使っている便利な機能の備忘録です。

改訂履歴

  • 2026/05/19 : 初版公開。

本文

1. 環境

  • Windows Server 2025 Datacenter Evaluation
  • たけびし デバイスエクスプローラ OPC サーバー Ver.6.8.2.1 32 bit 版

2. シミュレーション

DeviceXPlorer OPC Server では、シミュレーション機能を使うことで、実機のない環境でもタグの値を READ / WRITE することができます。デバイスを右クリックし、プロパティを選択します。

オプションタグから、シミュレーション項目の共有メモリにチェックを入れます。

これで実機なしでも、タグの値を READ / WRITE できるようになります。

3. イベントを使用したハートビートの実装

DeviceXPlorer OPC Server のイベント機能を使用すると、簡単なスクリプトを実行できます。今回は Tag_D0000 をハートビート用のタグとして使用し、自動応答するイベントを作ってみます。

デバイスを右クリックし、イベントを選択します。

イベントリスト上で右クリックし、新規作成からスクリプトを選択します。

以下のプログラムを実装します。

Heatbeat.lua
local tag = @@t("Tag_D0000"); 

if tag.Value == 0 then
    tag.Value = 1
end

Tag_D0000 の値が自動的に書き換わるようになります。

おわりに

他にも何か見つけたら、随時追記します。

0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?