Eclipse Kura on Raspberry Pi 4 wires S7comm Driver

Опубликовано: 01 Октябрь 2024
на канале: dnomaiD Code
447
5

Eclipse Kura on Raspberry Pi 4 wires S7comm Driver.

S7 Driver for Eclipse Kura 4/5: This driver instance packages Moka 7 library to enable communication with S7 PLCs. Moka7 is the Java port of Snap7 Client.

Javascript code:
------------------------------------------------------------------------------------------
var record = input.records[0]
var wireRecord = newWireRecord()
wireRecord.LIFEBIT = newBooleanValue(!record.FEEBACKLIFEBIT.getValue())
if (wireRecord.LIFEBIT.getValue()) {
logger.info('LIFEBIT is true')
}else
logger.info('LIFEBIT is false')
output.add(wireRecord)
------------------------------------------------------------------------------------------

https://eclipse.github.io/kura/device...
https://marketplace.eclipse.org/conte...
https://marketplace.eclipse.org/conte...