node-red-trexmes-commands
Version:
A node-red node to execute commands for Trex Mes Systems
559 lines • 12.9 kB
JSON
[
{
"id": "bb27bba8e5c5db87",
"type": "tab",
"label": "trexMes Cmd",
"disabled": false,
"info": "",
"env": []
},
{
"id": "2e577a24d932587b",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
},
{
"p": "PlanId",
"v": "1674",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 100,
"wires": [
[
"2e79831d091a7a07"
]
]
},
{
"id": "d2eaa6da3fd96223",
"type": "debug",
"z": "bb27bba8e5c5db87",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 740,
"y": 360,
"wires": []
},
{
"id": "2e79831d091a7a07",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": 1,
"query": "{\n \"WorkstationId\": 10,\n \"PlanId\": 123\n}",
"modeOptType": "1|Load Job Plan",
"x": 460,
"y": 100,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "dc9b9a3a2a4c80d7",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": 1,
"query": "{\n \"WorkstationId\": 10\n}",
"modeOptType": "4|Finish Production",
"x": 470,
"y": 154,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "887f456959eaaffe",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10,\n \"StoppageCauseId\": 11\n}",
"modeOptType": "5|Start Stoppage",
"x": 460,
"y": 208,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "4b46b430fc244b4b",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 154,
"wires": [
[
"dc9b9a3a2a4c80d7"
]
]
},
{
"id": "f6d568fa2209c16d",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
},
{
"p": "StoppageCauseId",
"v": "441",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 208,
"wires": [
[
"887f456959eaaffe"
]
]
},
{
"id": "676eb589a8dd5180",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10,\n \"StoppageCauseId\": 11\n}",
"modeOptType": "6|Change Stoppage",
"x": 470,
"y": 265,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "f8348548c3717e33",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
},
{
"p": "StoppageCauseId",
"v": "456",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 265,
"wires": [
[
"676eb589a8dd5180"
]
]
},
{
"id": "132ff88aa7801950",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 320,
"wires": [
[
"75fdf64ecbbf6680"
]
]
},
{
"id": "75fdf64ecbbf6680",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10\n}",
"modeOptType": "7|Finish Stoppage",
"x": 460,
"y": 320,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "4f9f314992aa26ae",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
},
{
"p": "EmployeeId",
"v": "85",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 380,
"wires": [
[
"4ca601bfd9099dcc"
]
]
},
{
"id": "4ca601bfd9099dcc",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10,\n \"EmployeeId\": 11\n}",
"modeOptType": "9|Login Employee",
"x": 460,
"y": 380,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "9718cb5f8fa918fe",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
},
{
"p": "EmployeeId",
"v": "85",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 440,
"wires": [
[
"d457026b4dcfbe7a"
]
]
},
{
"id": "d457026b4dcfbe7a",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10,\n \"EmployeeId\": 11\n}",
"modeOptType": "10|Logout Employee",
"x": 470,
"y": 440,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "1cebd9fbdf07be73",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
},
{
"p": "LineId",
"v": "3",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 500,
"wires": [
[
"e0f6b0c04f7d9050"
]
]
},
{
"id": "e0f6b0c04f7d9050",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10,\n \"LineId\": 11\n}",
"modeOptType": "13|Shifted Shift",
"x": 450,
"y": 500,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "abb831879d97fa5f",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
},
{
"p": "StoppageCauseId",
"v": "219",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 560,
"wires": [
[
"3b61ab01f4bf6e5e"
]
]
},
{
"id": "3b61ab01f4bf6e5e",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10,\n \"StoppageCauseId\": 11\n}",
"modeOptType": "14|Start Test Mode",
"x": 460,
"y": 560,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "877ddd6f750c6145",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 620,
"wires": [
[
"e4edac841a29cdee"
]
]
},
{
"id": "e4edac841a29cdee",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10\n}",
"modeOptType": "15|Finish Test Mode",
"x": 470,
"y": 620,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "e41908792532acd2",
"type": "inject",
"z": "bb27bba8e5c5db87",
"name": "",
"props": [
{
"p": "WorkstationId",
"v": "53",
"vt": "num"
},
{
"p": "DefectId",
"v": "25",
"vt": "num"
},
{
"p": "StockId",
"v": "1477",
"vt": "num"
},
{
"p": "Quantity",
"v": "45",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 250,
"y": 680,
"wires": [
[
"0da9a07feb634f07"
]
]
},
{
"id": "0da9a07feb634f07",
"type": "trexMes-CMD",
"z": "bb27bba8e5c5db87",
"trexmesCN": "906a24276c64dff5",
"name": "",
"throwErrors": "0",
"query": "{\n \"WorkstationId\": 10,\n \"DefectId\": 11,\n \"StockId\": 12,\n \"Quantity\": 15.5\n}",
"modeOptType": "16|Create Deffect",
"x": 460,
"y": 680,
"wires": [
[
"d2eaa6da3fd96223"
]
]
},
{
"id": "906a24276c64dff5",
"type": "trexMes-CN",
"tdsVersion": "7_4",
"name": "",
"server": "10.16.16.11\\SQL2019",
"port": "1433",
"encyption": true,
"trustServerCertificate": true,
"database": "WashingMachine",
"companyId": "50",
"userId": "79",
"useUTC": true,
"connectTimeout": "15000",
"requestTimeout": "15000",
"cancelTimeout": "5000",
"pool": "5",
"parseJSON": false,
"enableArithAbort": true,
"readOnlyIntent": false
}
]