Code:
If IncrementButton=1 then
    If PWMVal<255 then
       PWMVal=PWMVal+1
       endif
    endif