Skip to content

Commit 740bdfb

Browse files
committed
Cleanup
1 parent 59349bf commit 740bdfb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/kotlin/PlcSimulation.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,12 @@ class PlcSimulation(
9797
println("ERROR: Add Operation - Unable to get value of ${element.symbol} address ${variable.address} ")
9898
throw CancellationException("Error - Add")
9999
}
100-
//Int16 VALIDATED!
101100
var intValue = element.value.toInt()
102101
intValue += currentValue.first().toInt()
103102
setHoldingRegisterInt16(memory, variable, intValue.toShort())
104103
}
105104
}
106105
AddressType.INPUT_REGISTER -> {
107-
//TODO NOT TESTED, NOT VALIDATED!!
108106
val currentValue = memory.readInputRegister(variable.address.toInt(), 1)
109107
val newValue = currentValue.first() + element.value.toShort()
110108
memory.setInputRegister(variable.address.toInt(),newValue.toShort())

0 commit comments

Comments
 (0)