//Power WinPLC 6 Example: using GUI to change DAC output levels //Press the buttons of the user defined GUI to change DAC channel 01 output level Timestep OFF DAC01 = 33 LOADGUI "C:\use + and - with DAC - gui.GUI" CHANGEGUI 00 "DAC output level is now $DAC01" MINIMIZE LABEL MAIN //doing nothing, just waiting. you can place another code here GOTO MAIN SUB INCREASE //increase DAC channel DAC01 = DAC01 + 1 CHANGEGUI 00 "DAC output level is now $DAC01" END SUB SUB DECREASE //decrease DAC channel DAC01 = DAC01 - 1 CHANGEGUI 00 "DAC output level is now $DAC01" END SUB