cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Can any one help me to write java script for this concept

jaganprasanth
6-Contributor

Can any one help me to write java script for this concept

Once the machine gets started, after 30 minutes it has to check the pressure value weather it is less than 100. If not it has to trigger the alarm (the value of pressure decreasing constantly)

Variables:

1. machine start - boolean (1&0)

2. pressure - number

3. alarm- boolean (1&0)

2 REPLIES 2

In Thingworx there are Timers and Schedulers that you could utilize for this.

Let's say you set a one minute timer, that runs and checks if 30 minutes have passed.

if 30 have passed then do the evaluation you need.

Depending on how many machines they have, an alternative solution would be to create a dedicated 30-minute Timer per machine, which starts together with the machine, and stops once it fires.

Top Tags