Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Repeat Program

Featured Replies

Posted

Hi guys. i need help with a program

 

basically i need a program for my irrigation system.

 

The program needs to open a shut off valve first then start zone 1 for 5 min then move to next zone, total 5 zones, then repeat the whole process 4 times and after the Repeat command is completed, i need to close the shutoff valve.

 

I can get almost everything to work but i don't know how to execute an order only when the Repeat cycle is completed.

 

Thanks

To end a repeat cycle add a "Repeat 1 time" to the end of the repeat body. Then you can add another program line to shut off your valve.

Edited by andyf0

  • Author

The only place where i have to add the "Repeat command" is at the end and none at the beginning? 

You said you had it working apart from the last command to close the valve.

 

Open Valve

Repeat 4 times

  Start Zone 1

  Wait 5 minutes

  Start Zone 2

  Wait 5 minutes

  ......

Repeat 1 time

  Close Valve

Edited by andyf0

  • Author

Thank you for the explanation sir, one last question. It would matter if i put Repeat 4 time at the end or it has to say Repeat 1 time, i just wonder what would happen.

Only statement that occur after the Repeat command are repeated.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.