Have you looked at the help doc? There is a pretty good example in there. If not hit ctrl + L in workbench and paste this in.
local:|module://docKitControl/doc/kitControl-ElectricalDemandLimit.html
It has been a long time since I have used it, I will try to see if I can find a bog to send you.