Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

HTGetValueAtScooter() 関数

  • Last UpdatedMar 13, 2018
  • 1 minute read

HTGetValueAtScooter() 関数は、指定したスクータ位置、トレンド、およびペン番号のサンプルに対して要求したタイプの値を返します。UpdateCount 引数により、関数処理の終了後に式が評価されて値が求められます。

カテゴリ

履歴

構文

RealResult=HTGetValueAtScooter(Hist_Tag, UpdateCount,ScootNum,ScootLoc,PenNum, ValType_Text);

引数

Hist_Tag

トレンド名が割り当てられた履歴トレンドのタグ変数

UpdateCount

トレンドの.UpdateCountドットフィールドを示す整数値。

ScootNum

左または右スクータを示す整数値:

1 = 左スクータ

2 = 右スクータ

ScootLoc

トレンドの .ScooterPosRight または .ScooterPosLeft ドットフィールドを示す実数値。

PenNum

ペン番号(1~8)を示す整数値か整数型タグ変数。

ValType_Text

戻り値のタイプを示す文字列:

PenValue = スクータ位置の値。

PenValid = 無効の場合は 0、有効の場合は 1。

HTGetValueAtScooter() 関数に ValType_Text 引数を使用する場合は、上記の有効なタイプのいずれかを使用します。

以下の関数の戻り値は、Trend1 トレンドのペン 3 の右スクータ現在位置に対応する値が実際のサンプル値の場合は 1 で、無効値の場合は 0 です。

HTGetValueAtScooter("Trend1",Trend1.UpdateCount, 2,Trend1.ScooterPosRight,3, "PenValid");