Here is the exported flow for Fastener_Type input node:
[
    {
        "id": "65f1b08076c1fc17",
        "type": "tab",
        "label": "2D_Barcode",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "7068f5728a61cb0c",
        "type": "s7 in",
        "z": "65f1b08076c1fc17",
        "endpoint": "bdf21c90d7e888e0",
        "mode": "single",
        "variable": "Fastener_Type",
        "diff": true,
        "name": "",
        "x": 320,
        "y": 140,
        "wires": [
            [
                "1c267ac2c8ca52e0",
                "39dcfe77ea772eb6",
                "a90a8daa731feceb"
            ]
        ]
    },
    {
        "id": "39dcfe77ea772eb6",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "Fastener Insert",
        "func": "//m = msg.payload\n//fastener = m.Fastener_Type\n//msg.payload=['RND0508A03A'];\nmsg.topic = \"INSERT INTO barcode(fastener_type) VALUES (\" + (msg.payload) + \");\"; \n\n\n//msg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1080,
        "y": 140,
        "wires": [
            [
                "a9dfb1688f187c8f"
            ]
        ]
    },
    {
        "id": "bc8eec020307c679",
        "type": "mysql",
        "z": "65f1b08076c1fc17",
        "mydb": "91ed457ccb906798",
        "name": "",
        "x": 850,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "1c267ac2c8ca52e0",
        "type": "trigger",
        "z": "65f1b08076c1fc17",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "pay",
        "op2type": "payl",
        "duration": "10",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 1070,
        "y": 200,
        "wires": [
            [
                "696a42d3469ec68b"
            ]
        ]
    },
    {
        "id": "696a42d3469ec68b",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "Function Fastener",
        "func": "var query = \"SELECT `fastener_type` FROM `barcode` ORDER BY created_at DESC\";    \n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1350,
        "y": 80,
        "wires": [
            [
                "f47a27fa3f488eac"
            ]
        ]
    },
    {
        "id": "f47a27fa3f488eac",
        "type": "mysql",
        "z": "65f1b08076c1fc17",
        "mydb": "91ed457ccb906798",
        "name": "",
        "x": 1590,
        "y": 340,
        "wires": [
            [
                "cf8c7775b4dd9199"
            ]
        ]
    },
    {
        "id": "404c5a7c1f90fc38",
        "type": "debug",
        "z": "65f1b08076c1fc17",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1790,
        "y": 720,
        "wires": []
    },
    {
        "id": "ea7558204b815481",
        "type": "ui_template",
        "z": "65f1b08076c1fc17",
        "group": "d97ce9c1f9cd1075",
        "name": "",
        "order": 1,
        "width": "6",
        "height": "8",
        "format": "<style>\ntable {\n    text-align: center;\n    margin: 50 auto;\n}\ntbody td{\n    padding: 25px;\n    background-color: rgb(230,254,255);\n}\nthead th{\n    padding: 25px;\n    background-color: rgb(69,69,69);\n    color:#fff;\n    border: rgb(36,149,255);\n}\n</style>\n\n<div>\n    <table>\n        <thead>\n            <tr>\n              <th>Fastener Type</th>  \n              <th>Volume</th>  \n              <th>Production Date</th>  \n              <th>Batch Number</th>  \n              <th>Customer Id</th>  \n             </tr>\n        </thead>\n        <tbody>\n            <tr>\n                <td>{{msg.payload[0].fastener_type}}</td>  \n                <td>{{msg.payload[0].batch_number}}</td>\n                <td>{{msg.payload[0].customer_id}}</td>\n                <td>{{msg.payload[0].production_date}}</td> \n                <td>{{msg.payload[0].volume}}</td>  \n            </tr>\n            <tr>\n                <td>{{msg.payload[1].fastener_type}}</td>  \n                <td>{{msg.payload[1].volume}}</td>  \n                <td>{{msg.payload[1].production_date}}</td>  \n                <td>{{msg.payload[1].batch_number}}</td>\n                <td>{{msg.payload[1].customer_id}}</td>\n            </tr>\n            <tr>\n                <td>{{msg.payload[2].fastener_type}}</td>  \n                <td>{{msg.payload[2].volume}}</td>  \n                <td>{{msg.payload[2].production_date}}</td>  \n                <td>{{msg.payload[2].batch_number}}</td>\n                <td>{{msg.payload[2].customer_id}}</td>\n            </tr>\n            <tr>\n                <td>{{msg.payload[3].fastener_type}}</td>  \n                <td>{{msg.payload[3].volume}}</td>  \n                <td>{{msg.payload[3].production_date}}</td>  \n                <td>{{msg.payload[3].batch_number}}</td>\n                <td>{{msg.payload[3].customer_id}}</td>\n            </tr>\n            <tr>\n                <td>{{msg.payload[4].fastener_type}}</td>  \n                <td>{{msg.payload[4].volume}}</td>  \n                <td>{{msg.payload[4].production_date}}</td>  \n                <td>{{msg.payload[4].batch_number}}</td>\n                <td>{{msg.payload[4].customer_id}}</td>\n            </tr>\n        </tbody>\n    </table>\n</div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 1860,
        "y": 640,
        "wires": [
            []
        ]
    },
    {
        "id": "a368340a154d3bea",
        "type": "s7 in",
        "z": "65f1b08076c1fc17",
        "endpoint": "bdf21c90d7e888e0",
        "mode": "single",
        "variable": "volume",
        "diff": true,
        "name": "",
        "x": 330,
        "y": 240,
        "wires": [
            [
                "fde9d49d065b53d2",
                "4e8f33bf039130c7",
                "a90a8daa731feceb"
            ]
        ]
    },
    {
        "id": "77d23295fbd0a7cd",
        "type": "s7 in",
        "z": "65f1b08076c1fc17",
        "endpoint": "bdf21c90d7e888e0",
        "mode": "single",
        "variable": "production_date",
        "diff": true,
        "name": "",
        "x": 340,
        "y": 420,
        "wires": [
            [
                "001abd9ab1237a73",
                "ef2d8c58afbd985f",
                "a90a8daa731feceb"
            ]
        ]
    },
    {
        "id": "42731e6eb062d973",
        "type": "s7 in",
        "z": "65f1b08076c1fc17",
        "endpoint": "bdf21c90d7e888e0",
        "mode": "single",
        "variable": "batch_number",
        "diff": true,
        "name": "",
        "x": 330,
        "y": 580,
        "wires": [
            [
                "c1160ebe3a0bbc9a",
                "aea49973c4d684b0",
                "a90a8daa731feceb"
            ]
        ]
    },
    {
        "id": "3e1d7e66f01a90a1",
        "type": "s7 in",
        "z": "65f1b08076c1fc17",
        "endpoint": "bdf21c90d7e888e0",
        "mode": "single",
        "variable": "customer_id",
        "diff": true,
        "name": "",
        "x": 330,
        "y": 760,
        "wires": [
            [
                "a71ab506d555ec48",
                "1e7afb85114b45aa",
                "a90a8daa731feceb"
            ]
        ]
    },
    {
        "id": "fde9d49d065b53d2",
        "type": "trigger",
        "z": "65f1b08076c1fc17",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "pay",
        "op2type": "payl",
        "duration": "10",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 1070,
        "y": 320,
        "wires": [
            [
                "a342515af8a94099"
            ]
        ]
    },
    {
        "id": "001abd9ab1237a73",
        "type": "trigger",
        "z": "65f1b08076c1fc17",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "pay",
        "op2type": "payl",
        "duration": "10",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 1130,
        "y": 500,
        "wires": [
            [
                "f204d0e28ce1b4dd"
            ]
        ]
    },
    {
        "id": "c1160ebe3a0bbc9a",
        "type": "trigger",
        "z": "65f1b08076c1fc17",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "pay",
        "op2type": "payl",
        "duration": "10",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 1150,
        "y": 680,
        "wires": [
            [
                "715fdcb5db67507d"
            ]
        ]
    },
    {
        "id": "a71ab506d555ec48",
        "type": "trigger",
        "z": "65f1b08076c1fc17",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "pay",
        "op2type": "payl",
        "duration": "10",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 1150,
        "y": 840,
        "wires": [
            [
                "2b336c137936beb2"
            ]
        ]
    },
    {
        "id": "4e8f33bf039130c7",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "volume insert",
        "func": "var query = \"INSERT INTO barcode(volume) VALUES (\" + (msg.payload) + \")\";\n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1070,
        "y": 260,
        "wires": [
            [
                "a9dfb1688f187c8f"
            ]
        ]
    },
    {
        "id": "ef2d8c58afbd985f",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "production_date insert",
        "func": "var query = \"INSERT INTO barcode(production_date) VALUES (\" + (msg.payload) + \")\" ; \n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1120,
        "y": 420,
        "wires": [
            [
                "a9dfb1688f187c8f"
            ]
        ]
    },
    {
        "id": "aea49973c4d684b0",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "batch number insert",
        "func": "var query = \"INSERT INTO barcode(batch_number) VALUES (\" + (msg.payload) + \");\" ;2 \n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1120,
        "y": 580,
        "wires": [
            [
                "a9dfb1688f187c8f"
            ]
        ]
    },
    {
        "id": "1e7afb85114b45aa",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "customer id insert",
        "func": "var query = \"INSERT INTO barcode(customer_id) VALUES (\" + (msg.payload) + \")\" ;2 \n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1090,
        "y": 760,
        "wires": [
            [
                "a9dfb1688f187c8f"
            ]
        ]
    },
    {
        "id": "a342515af8a94099",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "Function volume",
        "func": "var query = \"SELECT `volume` FROM `barcode` ORDER BY created_at DESC\";    \n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1300,
        "y": 340,
        "wires": [
            [
                "f47a27fa3f488eac"
            ]
        ]
    },
    {
        "id": "f204d0e28ce1b4dd",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "Dashboard Production date",
        "func": "var query = \"SELECT `production_date` FROM `barcode` ORDER BY created_at DESC\";    \n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1360,
        "y": 480,
        "wires": [
            [
                "f47a27fa3f488eac"
            ]
        ]
    },
    {
        "id": "715fdcb5db67507d",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "Function batch number",
        "func": "var query = \"SELECT `batch_number` FROM `barcode` ORDER BY created_at DESC\";    \n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1420,
        "y": 680,
        "wires": [
            [
                "f47a27fa3f488eac"
            ]
        ]
    },
    {
        "id": "2b336c137936beb2",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "Function customer id",
        "func": "var query = \"SELECT `customer_id` FROM `barcode` ORDER BY created_at DESC\";    \n\nmsg.topic = query;\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1400,
        "y": 860,
        "wires": [
            [
                "f47a27fa3f488eac"
            ]
        ]
    },
    {
        "id": "26276f65f62a9122",
        "type": "debug",
        "z": "65f1b08076c1fc17",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1670,
        "y": 260,
        "wires": []
    },
    {
        "id": "a9dfb1688f187c8f",
        "type": "join",
        "z": "65f1b08076c1fc17",
        "name": "",
        "mode": "custom",
        "build": "object",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": true,
        "timeout": "",
        "count": "1",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 1470,
        "y": 260,
        "wires": [
            [
                "26276f65f62a9122"
            ]
        ]
    },
    {
        "id": "cf8c7775b4dd9199",
        "type": "join",
        "z": "65f1b08076c1fc17",
        "name": "",
        "mode": "custom",
        "build": "object",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": true,
        "timeout": "",
        "count": "1",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 1730,
        "y": 480,
        "wires": [
            [
                "ea7558204b815481",
                "404c5a7c1f90fc38"
            ]
        ]
    },
    {
        "id": "a90a8daa731feceb",
        "type": "join",
        "z": "65f1b08076c1fc17",
        "name": "",
        "mode": "custom",
        "build": "object",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": true,
        "timeout": "",
        "count": "1",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 530,
        "y": 60,
        "wires": [
            [
                "0bc67f2dc294819e"
            ]
        ]
    },
    {
        "id": "0bc67f2dc294819e",
        "type": "function",
        "z": "65f1b08076c1fc17",
        "name": "",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 700,
        "y": 60,
        "wires": [
            [
                "bc8eec020307c679"
            ]
        ]
    },
    {
        "id": "bdf21c90d7e888e0",
        "type": "s7 endpoint",
        "transport": "iso-on-tcp",
        "address": "192.168.1.100",
        "port": "102",
        "rack": "0",
        "slot": "1",
        "localtsaphi": "01",
        "localtsaplo": "00",
        "remotetsaphi": "01",
        "remotetsaplo": "00",
        "connmode": "rack-slot",
        "adapter": "",
        "busaddr": "2",
        "cycletime": "1000",
        "timeout": "2000",
        "name": "PLC1",
        "vartable": [
            {
                "addr": "DB7,INT4",
                "name": "Counter_Up"
            },
            {
                "addr": "DB8,INT4",
                "name": "Counter_Down"
            },
            {
                "addr": "DB1,X0.4",
                "name": "Reset"
            },
            {
                "addr": "DB3,INT4",
                "name": "Counter_Right"
            },
            {
                "addr": "DB1,X0.0",
                "name": "Up"
            },
            {
                "addr": "DB1,X0.1",
                "name": "Down"
            },
            {
                "addr": "DB1,X0.2",
                "name": "Right"
            },
            {
                "addr": "DB1,X0.3",
                "name": "Left"
            },
            {
                "addr": "DB1,X0.5",
                "name": "Start"
            },
            {
                "addr": "DB1,X0.6",
                "name": "Stop"
            },
            {
                "addr": "DB1,X0.7",
                "name": "Stop Service"
            },
            {
                "addr": "DB2,S1280.256",
                "name": "Fastener_Type"
            },
            {
                "addr": "DB2,S1536.10",
                "name": "volume"
            },
            {
                "addr": "DB2,S1792.10",
                "name": "production_date"
            },
            {
                "addr": "DB2,S2048.10",
                "name": "batch_number"
            },
            {
                "addr": "DB2,S2304.10",
                "name": "customer_id"
            },
            {
                "addr": "DB6,INT4",
                "name": "Counter_Left"
            }
        ]
    },
    {
        "id": "91ed457ccb906798",
        "type": "MySQLdatabase",
        "name": "",
        "host": "127.0.0.1",
        "port": "3306",
        "db": "2D_Barcode",
        "tz": "",
        "charset": "UTF8"
    },
    {
        "id": "d97ce9c1f9cd1075",
        "type": "ui_group",
        "name": "2D Barcode",
        "tab": "fb5a62bd6e3e67fd",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "fb5a62bd6e3e67fd",
        "type": "ui_tab",
        "name": "Barcode",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]