Sunix SDC Node-RED User Manual

Industrial i/o control pcie card

Advertisement

Quick Links

Industrial I/O Control PCIe Card
SDC Node-RED User Manual
Copyright
Copyright© 2019 SUNIX Co., Ltd. All Rights Reserved.
No part of this publication may be reproduced, transcribed, stored in a retrieval system,
translated into any language, or transmitted in any from or by any means,
photocopying, manual, or otherwise, without prior written permission from SUNIX.
Disclaimer
SUNIX shall not be liable for any incidental or consequential damages resulting from the
performance or use of this equipment.
SUNIX makes no representations or warranties regarding the contents of this manual.
Information in this manual has been carefully checked for reliability; however, no
guarantee is given as to the correctness of this content. In the interest of continued
product improvement, this company reserves the right to revise the manual or include
change in the specifications of the product described within it at any time without
notice and without obligation to notify any person of such revision or changes. The
information contained in this manual is provided for general use by the customers.
Trademarks
SUNIX is a registered trademark of SUNIX Group.
All other trademarks or registered marks in this manual belong to their respective
owners.
Safety Information
Keep this User's Manual for future reference.
Always read the safety information carefully.
Keep this equipment away from direct sunlight, or in humid or damp places.
Do not place this equipment in an unstable position, or on vibrating surface before setting
it up.
Do not use or place this equipment near magnetic fields, televisions, or radios to avoid
electronic interface that affects device performance.
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SDC Node-RED and is the answer not in the manual?

Questions and answers

Summary of Contents for Sunix SDC Node-RED

  • Page 1 SUNIX. Disclaimer SUNIX shall not be liable for any incidental or consequential damages resulting from the performance or use of this equipment. SUNIX makes no representations or warranties regarding the contents of this manual.
  • Page 2: Table Of Contents

    2. Introduction to Node-RED Services ................12 2.2 Install SDC Node-RED Service ....................14 2.3 SDC Node-RED Flow Control ....................15 2.4 SDC Node-RED Service data format ..................16 3. Node-RED I/O Device Setting ..................18 3.1 RS-232 Device Setting ......................19 3.2 RS-485 Modbus RTU Device Setting ..................21 3.3 Digital Input / Output Device setting ..................23...
  • Page 3: Install Node-Red

    1. Install Node-RED Install Node-RED in your own PC Topics: 1.1 Install Node.js 1.2 Install Node-RED (command line) 1.3 Run Node-RED (command line) 1.4 Run Node-RED UI/Dashboard ( Web Browser:http://127.0.0.1:1880 1.5 Instruction to Node-RED control panel 1.6 Node-RED Library installation (Such as Dashboard) 1.1 Install Node.js 1.https://nodejs.org/en/ download latest node.js LTS...
  • Page 4: Install Node-Red

    2. Install node.js 1.2 install Node-RED Copy and paste follow command and press Enter in command-line windows npm install -g --unsafe-perm node-red...
  • Page 5: Run Node-Red

    1.3 Run Node-RED Click “Start” Right select “command-line”, Select “More”=> “Run as administrator”...
  • Page 6: Node-Red Control Panel

    Run“ node-red“on command-line, If you see the following description, it is show the Node-RED service is activated. Node-RED Control Panel Open web browser, http://127.0.0.1:1880 , you can see Node-RED Control Panel as following picture :...
  • Page 7: Introduction To Node-Red Control Panel

    1.5 Introduction to NODE-RED Control Panel 1. Node-RED control panel have 3 major blocks, please see the following picture, Debug/Deploy Flow Node 2. Node-RED Flow,as following picture: Output Node Input Node Function Node...
  • Page 8: Install Additional Node

    1.6 Install additional node 1. Open system menu,select “Manage palette” 2. Select “Install “page...
  • Page 9 3. Key in “Serial “and search for node-red-node-serialport. Click and install. Search for “serial” Click and install Check if you see the “Serial in” and “Serial Out”...
  • Page 10 4. Install Modbus RTU Node Search “modbus” Click and install Check if you see the “Modbus “node function list...
  • Page 11 5. Install Dashboard Node Search for“dashboard“ Click and install If you successfully installed Dashboard Node, you will see the following Dashboard Node functions...
  • Page 12: Introduction To Node-Red Services

    2. Introduction to Node-RED Services SDC Node-RED Services Topics: 2.1 SDC Node-RED Service infrastructure 2.2 SDC Node-RED Service install 2.3 SDC Node-RED flow control 2.4 SDC Node-RED Service data format...
  • Page 13 2.1 SDC Node-RED Service system infrastructure SDC Node-RED Service communicate via TCP port:6000 ,it will listen to DI signal and control DO signal through TCP function. TCP port:6000 SDC Node-RED Service SUNIX SDC I/O Card DO Device DI Device...
  • Page 14: Install Sdc Node-Red Service

    Once you see the following windows, it mean you have successfully install and run the SDC Node-RED Service. [Warning] The SDC Node-RED Service cannot be shut down except all your I/O device is safe to be turn off. The unexpected shut down of Node-RED Service may...
  • Page 15: Sdc Node-Red Flow Control

    Node and send it to tcp out node. tcp out Node, This node will send Function Node output data into Node-RED Service, and SDC Node-RED Service will control the SDC I/O according to Function Node output data. tcp out Node tcp in Node...
  • Page 16: Sdc Node-Red Service Data Format

    2.4 SDC Node-RED Service data format 1. Server -> Node-RED data format item Data type description Device Type EAZINET / SDC DevicePort or SDC IO Card Product Device ID MAC / Board ID Mac address or SDC I/O card ID...
  • Page 17 2. Node-RED -> Server data format item Data type description Receive EAZINET / SDC DevicePort or SDC IO Card Device Type Receive MAC / Board ID Mac address or SDC I/O card ID Device ID Output Type DIO / MFAI Digital or analog signal Output Number Output Device I/O channel (ex.
  • Page 18: Node-Red I/O Device Setting

    3. Node-RED I/O Device Setting Node-RED SDC I/O Card Setting Topics: 3.1 RS-232 Device 3.2 RS-485 Modbus RTU Device 3.3 Digital Input / output Device...
  • Page 19: Rs-232 Device Setting

    3.1 RS-232 Device Setting 1. Copy serial in Node into working sheet Copy “serial in “node into here 2. Double click “serial”,it will show the property window, press “edit “for further setting Press Edit...
  • Page 20 3. Set the correct parameters according to your device spec such as COM Port、Baud Rate、Data Bits、Parity、Stop Bits. Once you finished the setting, press “update”. 4. Once your setting is finished, you can rename the Serial Port, press the finish and deploy button as the following picture. 1.
  • Page 21: Rs-485 Modbus Rtu Device Setting

    3.2 RS-485 Modbus RTU Device Setting 1. Copy Modbus-Read into your working sheet Drap “Modbus-Read” Node here 2. Double Click “Modbus-Read”,it will show the Property table,please filled the bellowing information according to your device such as Unit-Id、FC、Address、Quantity、Poll Rate 1. Filled in the value according to your device setting Modbus Device ID Read register...
  • Page 22 3. Please filled in the correct parameters according to your Device spec 3. Once setting is finished, press “Update” 1. Select serial type 2. Filled in COM Port parameters 4. Once you add new Modbus client device, you can go back to Modbus RTU Device Setting menu and press “Deploy”...
  • Page 23: Digital Input / Output Device Setting

    2. Double click “tcp in”,It will show the Properties table,Please filled in the parameters as following picture, Once you finished the setting, Press “Done”. 1. Select “Connect to”,port enter 6000 2. Key in your IP which run the SDC Node-RED Service...
  • Page 24 3. Copy “function” Node into your working sheet Drap “function” into working sheet 4. Double click “function”,it will show the Properties,copy and paste following code into “on message”. Once you finished, press “Done”. Convert tcp in node data into string...
  • Page 25 5. Connect tcp Node with Function Node as following picture 6. Connect function node with msg.payload(debug node)
  • Page 26 7. The following test example show the debug information when the first DI button have been pressed. 1. Press “debug messages” button 2. Once you press button, your will see the debug information 3. You will received the Debug information once your release the button...
  • Page 27: Node-Red Dashboard Example

    4. Node-RED Dashboard example Node-RED Environmental monitoring application with SUNIX SDC Topics: 4.1 RS-232 RFID Dashboard example 4.2 RS-485 Modbus device example...
  • Page 28: Rs-232 Rfid Reader Example

    4.1 RS-232 RFID reader example...
  • Page 29: Rs-485 Modbus Environmental Monitoring Example

    4.2 RS-485 Modbus environmental monitoring example...

This manual is also suitable for:

Sdc0880iSdc4880b

Table of Contents