Exemple #1
0
        private IVariable CreateString(ModbusVariableParams variableParams)
        {
            ModbusVariable <string> variable = new ModbusVariable <string>();

            variable.Initialize(variableParams);
            return(variable);
        }
Exemple #2
0
        private IVariable CreateDouble(ModbusVariableParams variableParams)
        {
            ModbusVariable <double> variable = new ModbusVariable <double>();

            variable.Initialize(variableParams);
            return(variable);
        }
Exemple #3
0
        private IVariable CreateUShort(ModbusVariableParams variableParams)
        {
            ModbusVariable <ushort> variable = new ModbusVariable <ushort>();

            variable.Initialize(variableParams);
            return(variable);
        }
Exemple #4
0
        private IVariable CreateFloat(ModbusVariableParams variableParams)
        {
            ModbusVariable <float> variable = new ModbusVariable <float>();

            variable.Initialize(variableParams);
            return(variable);
        }
Exemple #5
0
        private IVariable CreateBool(ModbusVariableParams variableParams)
        {
            ModbusVariable <bool> variable = new ModbusVariable <bool>();

            variable.Initialize(variableParams);
            return(variable);
        }