Hi, i'm trying to connect pvc Omron CJ2M machine to node red and reading data... I've tryed more type of connections, but all connections don't work.
I copy here my flow, hoping someone could help me...
[
{
"id": "04134de5c5d2d498",
"type": "tab",
"label": "LINEA PVC 22 - Read",
"disabled": false,
"info": "",
"env": []
},
{
"id": "41306e90b760cc3b",
"type": "FINS Read",
"z": "04134de5c5d2d498",
"name": "",
"connection": "f3549e198b43fa16",
"addressType": "str",
"address": "D922",
"countType": "num",
"count": "1",
"msgPropertyType": "msg",
"msgProperty": "payload",
"outputFormatType": "buffer",
"outputFormat": "buffer",
"x": 290,
"y": 260,
"wires": [
[
"342308a822cf88a5"
]
]
},
{
"id": "e10257e8ca8b44b1",
"type": "inject",
"z": "04134de5c5d2d498",
"name": "",
"props": [
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 125,
"y": 260,
"wires": [
[
"41306e90b760cc3b"
]
],
"l": false
},
{
"id": "342308a822cf88a5",
"type": "debug",
"z": "04134de5c5d2d498",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 490,
"y": 260,
"wires": []
},
{
"id": "33c787acadb693be",
"type": "FINS Read",
"z": "04134de5c5d2d498",
"name": "",
"connection": "2cd5a6f8d25e577d",
"addressType": "str",
"address": "D798",
"countType": "num",
"count": "2",
"msgPropertyType": "msg",
"msgProperty": "payload",
"outputFormatType": "signed",
"outputFormat": "",
"x": 290,
"y": 340,
"wires": [
[
"be03cf830769ddb3"
]
]
},
{
"id": "5b2d89736719801f",
"type": "inject",
"z": "04134de5c5d2d498",
"name": "",
"props": [
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 125,
"y": 340,
"wires": [
[
"33c787acadb693be"
]
],
"l": false
},
{
"id": "be03cf830769ddb3",
"type": "debug",
"z": "04134de5c5d2d498",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "msg",
"x": 530,
"y": 340,
"wires": []
},
{
"id": "a47d7265ebe9fdc3",
"type": "inject",
"z": "04134de5c5d2d498",
"name": "Connect with options (UDP)",
"props": [
{
"p": "topic",
"vt": "str"
},
{
"p": "options",
"v": "{\"host\":\"10.1.3.90\",\"port\":9600,\"protocol\":\"udp\",\"DNA\":0,\"DA1\":90,\"DA2\":0,\"SNA\":0,\"SA1\":21,\"SA2\":0}",
"vt": "json"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "connect",
"x": 180,
"y": 80,
"wires": [
[
"2118a34b98213b50"
]
]
},
{
"id": "2118a34b98213b50",
"type": "FINS Control",
"z": "04134de5c5d2d498",
"name": "",
"connection": "f3549e198b43fa16",
"clockType": "json",
"clock": "",
"connectOptionsType": "msg",
"connectOptions": "options",
"msgPropertyType": "msg",
"msgProperty": "payload",
"commandType": "msg",
"command": "topic",
"x": 410,
"y": 100,
"wires": [
[
"9e1bbf66267727fa"
]
]
},
{
"id": "f19758a6ac8d6e45",
"type": "inject",
"z": "04134de5c5d2d498",
"name": "Disconnect from PLC",
"props": [
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "disconnect",
"x": 160,
"y": 120,
"wires": [
[
"2118a34b98213b50"
]
]
},
{
"id": "9e1bbf66267727fa",
"type": "debug",
"z": "04134de5c5d2d498",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 610,
"y": 140,
"wires": []
},
{
"id": "e2014019fbcbcdc1",
"type": "FINS Control",
"z": "04134de5c5d2d498",
"name": "",
"connection": "2cd5a6f8d25e577d",
"clockType": "msg",
"clock": "",
"connectOptionsType": "msg",
"connectOptions": "options",
"msgPropertyType": "msg",
"msgProperty": "payload",
"commandType": "connect",
"command": "",
"x": 400,
"y": 180,
"wires": [
[
"9e1bbf66267727fa"
]
]
},
{
"id": "80d293f1280e6099",
"type": "inject",
"z": "04134de5c5d2d498",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 200,
"y": 180,
"wires": [
[
"e2014019fbcbcdc1"
]
]
},
{
"id": "f3549e198b43fa16",
"type": "FINS Connection",
"name": "PVC22",
"host": "10.1.3.90",
"port": "9600",
"MODE": "",
"MODEType": "CJ",
"protocol": "",
"protocolType": "env",
"ICF": "",
"DNA": "",
"DA1": "",
"DA2": "",
"SNA": "",
"SA1": "",
"SA2": "",
"autoConnect": false
},
{
"id": "2cd5a6f8d25e577d",
"type": "FINS Connection",
"name": "PVC 22 A",
"host": "10.1.3.90",
"port": "9600",
"MODE": "",
"MODEType": "CJ",
"protocol": "",
"protocolType": "udp",
"ICF": "80",
"DNA": "0",
"DA1": "90",
"DA2": "0",
"SNA": "0",
"SA1": "21",
"SA2": "0",
"autoConnect": true
}
]