The slider(id) function returns a value between 0 and 100. The formula scale(slider(2),0,540,0,200) expects to receive a value between 0 and 540 and scale it between 0 and 200. Since the maximum value it receives from the slider is 100, it's surely not what you're expecting.
If you want to scale a slider value to be between 30 and 200, you can use:
scale(slider(2), 0, 100, 30, 200)
or use the short version that assumes a 0-100 range:
scale(slider(2), 30, 200)
And remember that all values for sources are percents when doing a calculation in a formula (power, range, delay, x, y, etc.). So if you're controlling the pan attribute which can go to 540 degrees, the source emits a power 0%-100% which is then mapped by the attribute to be 0-540 degrees.