Scadabank.com
Basic Scripting 

(Counters)

Counters in InTouch

 

Exercise #1 - Create a counter with InTouch scripting that counts up at a rate of once per second, and goes from zero to ten, then starts over at zero.

 

Exercise #2 - Adjust the counter scripting above so that it counts from zero to ten, then counts down from ten to zero, and repeats.

 

Exercise #3 - Using a time base of 100 milliseconds, create one counter that counts up to 500 milliseconds and stops, another counter that counts up to one second and stops, and a third counter that counts up to five seconds and stops.

 

Display the counter values either on an InTouch screen or with the TagViewer utility.
See possible solutions here

 

 

Counters in AppServer

 

Exercise #1 - Create a counter in an object using object scripting that counts up at a rate of once per second, and goes from zero to ten, then starts over at zero.

 

Exercise #2 - Adjust the counter scripting above so that it counts from zero to ten, then counts down from ten to zero, and repeats.

 

Exercise #3 - Using a time base of 100 milliseconds, create one counter that counts up to 500 milliseconds and stops, another counter that counts up to one second and stops, and a third counter that counts up to five seconds and stops.

 

Display the counter values with the ObjectViewer utility.

See possible solutions here
 

 

Counters in Industrial Graphics

 

Exercise #1 - Create a counter with Industrial graphic scripting that counts up at a rate of once per second, and goes from zero to ten, then starts over at zero.

 

Exercise #2 - Adjust the counter scripting above so that it counts from zero to ten, then counts down from ten to zero, and repeats.

 

Exercise #3 - Using a time base of 100 milliseconds, create one counter that counts up to 500 milliseconds and stops, another counter that counts up to one second and stops, and a third counter that counts up to five seconds and stops.

 

Display the counter values using your Industrial Graphic embedded on an InTouch screen.

See possible solutions here