Page 1 of 1

HMI to indicate pump connectivity

Posted: Mon Sep 15, 2014 1:35 pm
by bcrawfo2
I am trying to figure out a way to "prompt" the user to adjust pump connectivity to match requirements for each process. Example....my mash process might be connected up differently than my chilling process. One day I'll have automated valves, but not just yet.

I've been playing with the HMI and see I can put widgets on top of the brewery drawing. This would allow me to set registers that show a certain hose connectivity between vessel and pump.
Does anyone do anything similar? I'm currently struggling with creating a few more widgets in javascript to give me enough.

Ideally I'd like to show a picture for each step that has color coded hoses and numbered ports for each step.
ie...during the mash process....connect red hose to ports 1 and 5. blue hose to ports 2 and 6, etc.

Re: HMI to indicate pump connectivity

Posted: Wed Oct 29, 2014 6:18 pm
by clearwaterbrewer

Code: Select all

	else if(widgetObj.typ==TYP_Pump1_Out_MLT_In)
	{
		{
			ctx.beginPath();
			ctx.lineWidth=(widgetObj.act)? 6 : 1;
			ctx.strokeStyle='#4080FF';
			ctx.lineCap='round';
			ctx.moveTo(133,185);
			ctx.lineTo(150,185);
			ctx.lineTo(150,50);
			ctx.lineTo(190,50);
			ctx.stroke();
			ctx.closePath();
			if(widgetObj.act)
			{	ctx.font = 'italic 24px sans-serif';
		 		ctx.fillStyle = '#f00';
				ctx.fillText('Filling MLT', 335, 50);
				ctx.fillText('Clear MLT drain line of grain', 335, 80);
				ctx.fillText('before pressing Continue', 335, 110);
			}
		}
	}