From 08e4d2f8e2492a0973c41ba8609f4856135d932a Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Tue, 19 Dec 2023 11:21:00 +0800 Subject: [PATCH] =?UTF-8?q?iscs=20=20ecs=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/iscs_pscada.go | 6 +++--- fi/iscs_pscada.go | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/component/iscs_pscada.go b/component/iscs_pscada.go index 5726bd2..fe6f3f4 100644 --- a/component/iscs_pscada.go +++ b/component/iscs_pscada.go @@ -23,9 +23,9 @@ type ThreePositionSwitch struct { type SwitchThreePosition = uint8 const ( - StpOpened SwitchThreePosition = iota //开关分闸,线路断开,未与任何位置接通 - StpClosedPosition1 //开关合闸到位置1,与位置1线路导通 - StpClosedPosition2 //开关合闸到位置2,与位置2线路导通 + StpOpened SwitchThreePosition = iota //开关分闸,线路断开,未与任何位置接通 + StpClosedWorking //隔离开关合闸 + StpClosedLanding //接地开关合闸 ) ///////////////////////// diff --git a/fi/iscs_pscada.go b/fi/iscs_pscada.go index d5c87f9..afbd1fe 100644 --- a/fi/iscs_pscada.go +++ b/fi/iscs_pscada.go @@ -36,9 +36,9 @@ func TransBusbarBackupOperate(w ecs.World, deviceId string, input bool) error { type SwitchThreePositionOptEnum = uint8 const ( - StpOpened SwitchThreePositionOptEnum = iota //开关分闸,线路断开,未与任何位置接通 - StpClosedPosition1 //开关合闸到位置1,与位置1线路导通 - StpClosedPosition2 //开关合闸到位置2,与位置2线路导通 + StpOpened SwitchThreePositionOptEnum = iota //开关分闸,线路断开,未与任何位置接通 + StpClosedWorking //隔离开关合闸 + StpClosedLanding //接地开关合闸 ) // ThreePositionSwitchOperate 三工位开关操作 @@ -54,10 +54,10 @@ func ThreePositionSwitchOperate(w ecs.World, deviceId string, opt SwitchThreePos switch opt { case StpOpened: return component.StpOpened, nil - case StpClosedPosition1: - return component.StpClosedPosition1, nil - case StpClosedPosition2: - return component.StpClosedPosition2, nil + case StpClosedWorking: + return component.StpClosedWorking, nil + case StpClosedLanding: + return component.StpClosedLanding, nil default: return component.StpOpened, fmt.Errorf("三工位开关操作[%d]不存在", opt) }