beautypg.com

Micromod MOD: 30ML and Modcell Totalization Application Guide User Manual

Page 14

background image

Using The Totalizer Block

Building the Strategy

12

} /* so as not to cause continuos sends */

/* of the ACTION value. */

IF DELTA THEN /* The CMD register will always be zero */
{
ACTION = 0; /* display totalizer value when ACTION */
DELTA = 0; /* command is entered to confirm entry */
#LINE5 = "TOT";
#LINE6.SRC = TOTAL;
#UPDN = 1;
}
}
}

Figure 3. Display Script

14. Save and exit from the display scripts.

15. Click on

to close the Display block.

16. Click twice on the blue diamond in the upper left screen to find the DIF block.

17. Open the DIF block.

18. Select

.

19. Enter the Display Tag name as it was entered in the Display Tag field of the Display block.

Enclose the tag name with quotation marks and finish it with a semi-colon. For example:
“FIC-100”;.

20. Exit and save the display list.

21. Set the

to “User” and enter the Display Tag name in the

field.

This causes the instrument to come up after a power loss with your new display.

22. Close the DIF block by selecting

.

23. Enter the State block and select

.

24. At the bottom of the state table list add the two state tables found in Figure 4.


ACTIOND, 8, “????????”
{
0, “EXIT”;
}

ACTIONE, 8, “????????”
{

5,

“EXIT”;

1,

“RESET”;

2,

“STOP”;

3,

“RUN”;

4,

“HOLD”;

}

Figure 4. State Table Data

25. Exit and save the state table list.

26. Close the State Table block by selecting

.