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

Update irrigation example to support time limited activation, small c… #205

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aviateur17
Copy link
Contributor

@aviateur17 aviateur17 commented May 8, 2024

…hange in scheduler code

Example inject node data in Node Red:
Set Address 101 off
[{"data":0,"type":0,"id":101}]

Get status of address 102
[{"data":0,"type":1,"id":102}]

Set address 103 on for 20 seconds
[{"data":20,"type":0,"id":103}]

Working on multiple array elements but I think some other code needs to be changed before that is supported.

Format of loadFDRS....
loadFDRS(data, type, address);

Get Coil status of address 102 (data value is ignored)
loadFDRS(1, 1, 102);

Turn off (set) Coil at address 102 for an indefinite amount of time
loadFDRS(0, 0, 102);

Turn on Coil (set) at address 102 for an indefinite amount of time
loadFDRS(1, 0, 102);

Turn on (set) Coil at address 102 for 300 seconds
loadFDRS(300, 0, 102);

When turning on coil for certain amount of time the data value
must be 10 or greater and is in units of seconds.

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

Successfully merging this pull request may close these issues.

None yet

1 participant