node-red-contrib-plcs
Version:
Mentor Monitor Project Plcs Modbus Controllers
28 lines (19 loc) • 811 B
JavaScript
module.exports = function(RED) {
function MentorConfigNode(config) {
var log = RED.log;
RED.nodes.createNode(this, config);
this.mentor_id = parseInt(config.mentor_id);
this.mentor_name = parseInt(config.mentor_name);
this.on('input', function(msg) {
});
log.info("Created configuration node with mentor_id " + this.mentor_id);
var configNode = this;
// connection initialization. Create serial device and then modbus master on top of that
configNode.initializeRTUConnection = function(rtuNode, callback) {
};
configNode.close = function() {
//configNode.modbusMaster = null;
};
}
RED.nodes.registerType("mentor-config", MentorConfigNode);
};