Skip to content

Modbus Flex Connector

Klaus Landsdorf edited this page Feb 12, 2022 · 2 revisions

Example Flow

image

Connector

The Flex-Connector is a controller for the client and handles your msg requests.

image

Function node code examples for TCP

msg.payload = { 'connectorType': 'TCP', 'tcpHost': '127.0.0.1', 'unitId': 2 } return msg

msg.payload = { 'connectorType': 'TCP', 'tcpHost': '127.0.0.1', 'tcpPort': '10502', 'unitId': 2 } return msg

Function node code example for SERIAL

msg.payload = { 'connectorType': 'SERIAL', 'serialPort': '/dev/USB02', 'serialBaudrate': '9600' 'unitId': 2 } return msg