Search in sources :

Example 1 with FloatParameterObject

use of io.openems.impl.protocol.studer.internal.object.FloatParameterObject in project openems by OpenEMS.

the class StuderVs70Charger method defineStuderProtocol.

/*
	 * Methods
	 */
@Override
protected StuderProtocol defineStuderProtocol() throws ConfigException {
    StuderProtocol p = new StuderProtocol();
    FloatParameterObject batteryChargeCurrent = new FloatParameterObject(14217, "batteryChargeCurrent", "Adc", this);
    p.addObject(batteryChargeCurrent);
    batteryChargeCurrentValue = batteryChargeCurrent.value().channel();
    batteryChargeCurrentUnsavedValue = batteryChargeCurrent.unsavedValue().channel();
    IntParameterObject start = new IntParameterObject(14038, "start", "", this);
    p.addObject(start);
    setStart = start.value().channel();
    IntParameterObject stop = new IntParameterObject(14039, "stop", "", this);
    p.addObject(stop);
    setStop = stop.value().channel();
    FloatUserinfoObject vBatt = new FloatUserinfoObject(15000, "BatteryVoltage", "V", this);
    p.addObject(vBatt);
    @SuppressWarnings("unchecked") ReadChannel<Float> batteryVoltage = (ReadChannel<Float>) vBatt.value().channel();
    this.batteryVoltage = batteryVoltage;
    return p;
}
Also used : StuderProtocol(io.openems.impl.protocol.studer.internal.StuderProtocol) FloatUserinfoObject(io.openems.impl.protocol.studer.internal.object.FloatUserinfoObject) FloatParameterObject(io.openems.impl.protocol.studer.internal.object.FloatParameterObject) IntParameterObject(io.openems.impl.protocol.studer.internal.object.IntParameterObject) ReadChannel(io.openems.api.channel.ReadChannel)

Aggregations

ReadChannel (io.openems.api.channel.ReadChannel)1 StuderProtocol (io.openems.impl.protocol.studer.internal.StuderProtocol)1 FloatParameterObject (io.openems.impl.protocol.studer.internal.object.FloatParameterObject)1 FloatUserinfoObject (io.openems.impl.protocol.studer.internal.object.FloatUserinfoObject)1 IntParameterObject (io.openems.impl.protocol.studer.internal.object.IntParameterObject)1