HMI to indicate pump connectivity

Using the HMI Builder and creating custom interfaces for the BCS.
Post Reply
bcrawfo2
Posts: 22
Joined: Sun Sep 07, 2014 2:34 pm
Bot?: No

HMI to indicate pump connectivity

Post 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.
clearwaterbrewer
Posts: 383
Joined: Wed Feb 09, 2011 3:43 pm
Bot?: No
Location: Clearwater, FL
Contact:

Re: HMI to indicate pump connectivity

Post 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);
			}
		}
	}
Post Reply