From 1aa1fb84742db8ca95624e8694a1eb4e08060d5d Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 30 Sep 2021 08:38:45 +0200 Subject: [PATCH] Fix decode connected x robotservice --- IOB-WIN-NEXT/IobSiemensRobotService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IOB-WIN-NEXT/IobSiemensRobotService.cs b/IOB-WIN-NEXT/IobSiemensRobotService.cs index 194026fe..069979c5 100644 --- a/IOB-WIN-NEXT/IobSiemensRobotService.cs +++ b/IOB-WIN-NEXT/IobSiemensRobotService.cs @@ -88,7 +88,11 @@ namespace IOB_WIN_NEXT // bit 0 (poweron) imposto a 1 SE connected... if (currPLC.IsConnected) { - byteSignals += (1 << 0); + byteSignals |= (1 << 0); + } + else + { + byteSignals &= ~(1 << 0); } // salvo!