Sorry for that.
FLOW:
[{"id":"88f2a7e0.cec9c8","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"838d1982.dff8b8","type":"function","z":"88f2a7e0.cec9c8","name":"Limits & Point","func":"var P = flow.get(\"P\");\nvar Q = flow.get(\"Q\");\nvar chart = [{\n \"series\":[\"Lim.Estator\",\"Lim.Rotor\",\"Lim.Ext.Estator\",\"G40\",\"Punto de operación\"],\n \n\"data\":[[{\"x\":182,\"y\":88},{\"x\":196,\"y\":50},{\"x\":202,\"y\":0},{\"x\":200,\"y\":-30},{\"x\":193,\"y\":-64}],[{\"x\":182,\"y\":88},{\"x\":146,\"y\":109},{\"x\":95,\"y\":130},{\"x\":50,\"y\":140},{\"x\":0,\"y\":144}],[{\"x\":193,\"y\":-64},{\"x\":150,\"y\":-86},{\"x\":90,\"y\":-101},{\"x\":30,\"y\":-100},{\"x\":0,\"y\":-98}],[{\"x\":0,\"y\":-85.31},{\"x\":195,\"y\":-55}],[{\"x\":P-2,\"y\":Q},{\"x\":P,\"y\":Q},{\"x\":P+2,\"y\":Q},{\"x\":P,\"y\":Q-3},{\"x\":P,\"y\":Q+3}]],\n \"labels\":[\"MW\"]\n}];\nmsg.payload = chart;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":420,"y":260,"wires":[["a55fbb5c.9aa188"]]},{"id":"a55fbb5c.9aa188","type":"ui_chart","z":"88f2a7e0.cec9c8","name":"","group":"8414e8d0.af4c08","order":4,"width":15,"height":15,"label":"CAPABILIDAD","chartType":"line","legend":"true","xformat":"x","interpolate":"bezier","nodata":"Online","dot":true,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"10000","removeOlderUnit":"604800","cutout":0,"useOneColor":false,"useUTC":true,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":620,"y":260,"wires":[[]]},{"id":"bcbfa335.1d65b","type":"inject","z":"88f2a7e0.cec9c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"0.1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":260,"wires":[["838d1982.dff8b8","4c72b287.737c0c"]]},{"id":"835e9f35.f9b86","type":"ui_led","z":"88f2a7e0.cec9c8","order":1,"group":"8414e8d0.af4c08","width":2,"height":2,"label":"Alarma","labelPlacement":"right","labelAlignment":"center","colorForValue":[{"color":"#ff0000","value":"true","valueType":"bool"},{"color":"#008000","value":"false","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"square","showGlow":true,"name":"Alarma","x":596,"y":320,"wires":[]},{"id":"4c72b287.737c0c","type":"function","z":"88f2a7e0.cec9c8","name":"Alarm","func":"var P = 158.022\nflow.set(\"P\", P);\nvar Q = 91.234\nflow.set(\"Q\", Q);\n\nif (Q>-85.31 || Q<-55 && P>=0 || P<195)\n {\n var alarma = true\n flow.set(\"alarma\", alarma);\n msg.payload = flow.get(\"alarma\");\n msg.topic = \"alarma\";\n return msg;\n }\n \n else \n\n{\n msg.payload = false\n return msg;\n}\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":390,"y":320,"wires":[["835e9f35.f9b86","ba8c6cf5.60399"]]},{"id":"ba8c6cf5.60399","type":"debug","z":"88f2a7e0.cec9c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":590,"y":360,"wires":[]},{"id":"8414e8d0.af4c08","type":"ui_group","name":"Group 1","tab":"9323362a.3b4338","order":1,"disp":true,"width":15,"collapse":false},{"id":"9323362a.3b4338","type":"ui_tab","name":"Tab 3","icon":"dashboard","order":3,"disabled":false,"hidden":false}]