Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update node descriptions #9

Closed
jinx17 opened this issue Jan 27, 2021 · 0 comments
Closed

Please update node descriptions #9

jinx17 opened this issue Jan 27, 2021 · 0 comments

Comments

@jinx17
Copy link

jinx17 commented Jan 27, 2021

I AM SORRY, I MADE MISTAKE. THIS WAS MENT FOR node-red-contrib-mcprotocol

Hi,
It would be nice if you can update node "How to use" description with some examples.
These are my recomendations.

### READING VALUES from PLC:

SETTING MC-READ node
use msg.topic as address

HOW TO READ VALUES:
Trigger function node with this settings to get values of X0 ... X15 inputs.
In this example X0 is the first address to read, 16 is length of data to receive
msg.topic="X0,16" msg.payload="" //To nima vpliva return msg;

### WRITING VALUES to PLC:

SETTING MC-WRITE node
use msg.topic as address
use msg.payload as values to write into PLC

HOW TO WRITE VALUES:
Trigger function node with settings like this
//1st option is using address with length --> define as many values as stated in address length (in my example 2 is length msg.topic="D552,2" msg.payload = [666,777] //2nd option is using address array and values array msg.topic=["D552","D558"] msg.payload = [666,777] //3rd option - setting only one value - address is string, value is number msg.topic="D552" msg.payload = 1234
Regards,
Jinx

@jinx17 jinx17 closed this as completed Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant