SafetyOn プロパティー
解説
コントローラーの安全扉入力状態を返します。
書式
ReadOnly Property SafetyOn As Boolean
戻り値
安全扉が開いているときはTrue、閉じているときはFalse
コメント
SafetyOnプロパティーを使用して安全扉状態を取得し、SafeguardOpenとSafeguardCloseイベントで状態を更新します。
SafetyOn 使用例
VB 例:
If m_spel.SafetyOn Then
lblSafeguard.Text = "Safe guard is active"
Else
lblSafeguard.Text = ""
End If
C# 例:
if (m_spel.SafetyOn)
lblSafeguard.Text = "Safe guard is active";
else
lblSafeguard.Text = "";