[ { "id": "a12fd25fcab15041", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [] }, { "id": "ba3dc3e50f53c7fa", "type": "inject", "z": "a12fd25fcab15041", "name": "", "props": [ { "p": "topic", "vt": "str" } ], "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "umh/v1/TLT/DemoSite/DemoArea/DemoProductionLine/DemoWorkCell/originID/_historian/", "x": 190, "y": 200, "wires": [ [ "a5966d359d270ec7" ] ] }, { "id": "a5966d359d270ec7", "type": "function", "z": "a12fd25fcab15041", "name": "function 1", "func": "const tags = [\n \"ns_3_s_Area_1_Generator_1_Output_Power_MW\",\n \"ns_3_s_Area_2_Turbine_3_Speed_RPM\",\n \"ns_3_s_Area_4_Boiler_2_Steam_Flow_Rate_kg_per_s\",\n \"ns_3_s_Area_1_Generator_2_Voltage_kV\",\n \"ns_3_s_Area_3_Cooling_System_Water_Flow_Rate_m_cubed_per_h\",\n \"ns_3_s_Area_5_Transformer_1_Temperature_C\",\n \"ns_3_s_Area_3_Cooling_Tower_Efficiency_\",\n \"ns_3_s_Area_4_Boiler_1_Pressure_bar\",\n \"ns_3_s_Area_2_Turbine_1_Vibration_mm_per_s\",\n \"_ns_3_s_Area_6_Environmental_Ambient_Temperature_C\",\n \"ns_3_s_Area_1_Generator_3_Current_A\",\n \"ns_3_s_Area_3_Cooling_Pump_2_Status\",\n \"ns_3_s_Area_2_Turbine_2_Efficiency_\",\n \"ns_3_s_Area_5_Electrical_System_Line_Current_A\",\n \"_ns_3_s_Area_7_Control_System_Valve_Position_\",\n \"ns_3_s_Area_5_Electrical_System_Power_Factor_\",\n \"ns_3_s_Area_1_Generator_4_Frequency_Hz\",\n \"ns_3_s_Area_6_Environmental_Emissions_Level_ppm\",\n \"ns_3_s_Area_3_Cooling_Water_Temperature_Out_C\",\n \"_ns_3_s_Area_4_Boiler_3_Feed_Water_Temperature_C\",\n \"ns_3_s_Area_2_Turbine_4_Pressure_bar\",\n \"ns_3_s_Area_7_Control_System_Alarm_Status\",\n \"ns_3_s_Area_5_Transformer_2_Grid_Frequency_Hz\",\n \"ns_3_s_Area_3_Cooling_Water_Temperature_In_C\",\n \"ns_3_s_Area_1_Generator_5_Temperature_C\",\n \"ns_3_s_Area_6_Environmental_Humidity_\",\n \"ns_3_s_Area_4_Boiler_4_Combustion_Air_Flow_Rate_m_cubed_per_h\",\n \"_ns_3_s_Area_7_Control_System_Switch_Status_On_Off\",\n \"ns_3_s_Area_2_Turbine_5_Temperature_C\",\n \"ns_3_s_Area_5_Electrical_System_Substation_Voltage_kV\",\n \"ns_3_s_Area_5_Electrical_System_Distribution_Panel_8_Circuit_Breaker_14_Status_Failure_Mode_Indication_Alarm_Activated\",\n \"ns_3_s_Area_4_Boiler_2_Feedwater_Pump_12_Flow_Control_System_Automatic_Adjustment_Mode_Parameter_Setting\",\n \"ns_3_s_Area_6_Environmental_Air_Quality_Monitoring_System_Particular_Matter_2_5_Concentration_Level_Sensor_Output\",\n \"ns_3_s_Area_1_Generator_3_Excitation_Control_System_Reactive_Power_Output_Compensation_Factor_Adjustment_Status\",\n \"ns_3_s_Area_2_Turbine_5_Steam_Injection_System_Enhanced_Efficiency_Mode_Operation_Parameter_Configuration_Status\",\n \"ns_3_s_Area_7_Control_System_Software_Management_Module_Version_1_23_4_Update_Required_Notification_Alert\",\n \"_ns_3_s_Area_3_Cooling_Water_Treatment_Plant_Disinfectant_Dosage_Control_System_Feedback_Loop_Error_Indicator_\",\n \"ns_3_s_Area_5_Electrical_System_High_Voltage_Transmission_Line_47_Grid_Connection_Point_Voltage_Fluctuation_Monitor_\",\n \"_ns_3_s_Area_4_Boiler_3_Combustion_Efficiency_Optimization_Module_Carbon_Monoxide_Emission_Reduction_Target_Achievement\",\n \"__ns_3_s_Area_1_Generator_4_Rotor_Temperature_Monitoring_System_Average_Reading_Exceedance_Warning_Level_Setting__\",\n];\n\nconst messages = [];\n\nfor (const tag of tags) {\n const msg = {};\n msg.topic = \"OPCUA Tag\";\n msg.payload = {};\n msg.payload[\"timestamp_ms\"] = Date.now();\n msg.payload[tag] = Date.now() % 10;\n messages.push(msg);\n}\n\nreturn messages;\n", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 460, "y": 200, "wires": [ [ "312a8bc4b06d57da" ] ] }, { "id": "40c0488c59cd5bd4", "type": "mqtt out", "z": "a12fd25fcab15041", "name": "", "topic": "", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "2e5cc2e941472ad9", "x": 770, "y": 200, "wires": [] }, { "id": "312a8bc4b06d57da", "type": "json", "z": "a12fd25fcab15041", "name": "", "property": "payload", "action": "", "pretty": false, "x": 610, "y": 200, "wires": [ [ "a2ec8718e7933db6", "40c0488c59cd5bd4" ] ] }, { "id": "a2ec8718e7933db6", "type": "debug", "z": "a12fd25fcab15041", "name": "debug 1", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 720, "y": 300, "wires": [] }, { "id": "2e5cc2e941472ad9", "type": "mqtt-broker", "name": "", "broker": "united-manufacturing-hub-mqtt", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" } ]