Hello. I am sending the values of my electric screwdriver to MSSQL. I have four different values. These are speed, torque, turns, and total time. I also sent them to MSSQL. Every value is creating a different row. I would like to see them in the same row. I know that the tip is also wrong in this photo. However, I don't know which one is closest to the right path.
[
{
"id": "a8a6c407ff14b8a6",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "a02d3bcd02e18b48",
"type": "MSSQL",
"z": "a8a6c407ff14b8a6",
"mssqlCN": "df8c0b88.91b0a8",
"name": "",
"outField": "payload",
"returnType": "1",
"throwErrors": "1",
"query": "INSERT INTO [Machine].[dbo].[ScrewDrivers]\r\n(Speed,Torque,Turns,TotalTime)\r\nVALUES(@sp,@to,@tu,@tt)\r\n",
"modeOpt": "queryMode",
"modeOptType": "query",
"queryOpt": "payload",
"queryOptType": "editor",
"paramsOpt": "",
"paramsOptType": "editor",
"rows": "rows",
"rowsType": "msg",
"parseMustache": true,
"params": [
{
"output": false,
"name": "sp",
"type": "Float",
"valueType": "msg",
"value": "payload",
"options": {
"nullable": true,
"primary": false,
"identity": false,
"readOnly": false
}
},
{
"output": false,
"name": "to",
"type": "Float",
"valueType": "msg",
"value": "payload",
"options": {
"nullable": true,
"primary": false,
"identity": false,
"readOnly": false
}
},
{
"output": false,
"name": "tu",
"type": "Float",
"valueType": "msg",
"value": "payload",
"options": {
"nullable": true,
"primary": false,
"identity": false,
"readOnly": false
}
},
{
"output": false,
"name": "tt",
"type": "Float",
"valueType": "msg",
"value": "payload",
"options": {
"nullable": true,
"primary": false,
"identity": false,
"readOnly": false
}
}
],
"x": 600,
"y": 300,
"wires": [
[
"a36d4141066d4c6d"
]
]
},
{
"id": "4a856c77f3323fe0",
"type": "modbus-flex-sequencer",
"z": "a8a6c407ff14b8a6",
"name": "",
"sequences": [
{
"name": "Current Speed",
"unitid": "1",
"fc": "FC4",
"address": "47",
"quantity": "1"
},
{
"name": "Current Torque",
"unitid": "1",
"fc": "FC4",
"address": "58",
"quantity": "1"
},
{
"name": "Current Turns",
"unitid": "1",
"fc": "FC4",
"address": "56",
"quantity": "1"
},
{
"name": "Current Total Time",
"unitid": "1",
"fc": "FC4",
"address": "59",
"quantity": "1"
}
],
"server": "531e73b33af62948",
"showStatusActivities": false,
"showErrors": false,
"showWarnings": true,
"logIOActivities": false,
"useIOFile": false,
"ioFile": "",
"useIOForPayload": false,
"emptyMsgOnFail": false,
"keepMsgProperties": false,
"delayOnStart": false,
"startDelayTime": "",
"x": 240,
"y": 300,
"wires": [
[
"a02d3bcd02e18b48"
],
[]
]
},
{
"id": "a36d4141066d4c6d",
"type": "debug",
"z": "a8a6c407ff14b8a6",
"name": "debug 11",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 860,
"y": 300,
"wires": []
},
{
"id": "df8c0b88.91b0a8",
"type": "MSSQL-CN",
"name": "Trial",
"server": "127.0.0.1",
"port": "",
"encyption": false,
"trustServerCertificate": false,
"database": "Machine",
"useUTC": false,
"connectTimeout": "",
"requestTimeout": "",
"cancelTimeout": "",
"pool": "",
"parseJSON": false,
"enableArithAbort": true
},
{
"id": "531e73b33af62948",
"type": "modbus-client",
"name": "",
"clienttype": "serial",
"bufferCommands": true,
"stateLogEnabled": false,
"queueLogEnabled": false,
"failureLogEnabled": true,
"tcpHost": "127.0.0.1",
"tcpPort": "502",
"tcpType": "DEFAULT",
"serialPort": "COM3",
"serialType": "RTU-BUFFERD",
"serialBaudrate": "115200",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "100",
"serialAsciiResponseStartDelimiter": "0x3A",
"unit_id": 1,
"commandDelay": 1,
"clientTimeout": 1000,
"reconnectOnTimeout": true,
"reconnectTimeout": 2000,
"parallelUnitIdsAllowed": true,
"showWarnings": true,
"showLogs": true
}
]