Jump to content

store variable values?


roberthleeii

Recommended Posts

Posted
8 hours ago, JAbraham said:

When you store variable value also set it's initialization value to the same.

Thank you,

I looked for something like that when I was writing a program but did not see it. Can you tell me how i would do that?

Posted

Leak.Kitchen.OK - [ID 0133][Parent 00CD]

If
        'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched On
     Or 'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched Off
 
Then
        $sLeak.Kitchen Init To $cLEAK.DRY        <---------- *****************
        $sLeak.Kitchen  = $cLEAK.DRY
        Wait  25 hours
        Run Program 'Leak.Kitchen.OK' (Else Path)
 
Else
        $sLeak.LowBatt.room Init To $cROOM.KITCHEN  <-------------- ***************
        $sLeak.LowBatt.room  = $cROOM.KITCHEN
        $sLeak.Kitchen Init To $cLEAK.LOWBATT       <--------------------- *************
        $sLeak.Kitchen  = $cLEAK.LOWBATT
        Wait  23 hours
        Run Program 'Leak.Kitchen.OK' (Then Path)
 

'Init to' is at the bottom of the arithmetic operator pulldown list

  • Like 1
Posted (edited)

New Program - [ID 0009][Parent 0001]

If
        Time is  9:00:00AM
 
Then
        $s.Test += 1
        $s.Test Init To $s.Test
 
Else
   - No Actions - (To add one, press 'Action')

 

Where you program the += change that to Init To.

image.thumb.png.c506baaad62ffdfe032b476a1b9edfc7.png

Jeff

Edited by JAbraham
  • Like 2
Posted
11 hours ago, larryllix said:

Leak.Kitchen.OK - [ID 0133][Parent 00CD]

If
        'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched On
     Or 'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched Off
 
Then
        $sLeak.Kitchen Init To $cLEAK.DRY        <---------- *****************
        $sLeak.Kitchen  = $cLEAK.DRY
        Wait  25 hours
        Run Program 'Leak.Kitchen.OK' (Else Path)
 
Else
        $sLeak.LowBatt.room Init To $cROOM.KITCHEN  <-------------- ***************
        $sLeak.LowBatt.room  = $cROOM.KITCHEN
        $sLeak.Kitchen Init To $cLEAK.LOWBATT       <--------------------- *************
        $sLeak.Kitchen  = $cLEAK.LOWBATT
        Wait  23 hours
        Run Program 'Leak.Kitchen.OK' (Then Path)
 

'Init to' is at the bottom of the arithmetic operator pulldown list

 

10 hours ago, JAbraham said:

New Program - [ID 0009][Parent 0001]

If
        Time is  9:00:00AM
 
Then
        $s.Test += 1
        $s.Test Init To $s.Test
 
Else
   - No Actions - (To add one, press 'Action')

 

Where you program the += change that to Init To.

image.thumb.png.c506baaad62ffdfe032b476a1b9edfc7.png

Jeff

Thank you!!

Guest
This topic is now closed to further replies.

×
×
  • Create New...