Default Tasker-disable lockscreen?

Was wondering if I could somehow enable and disable the lockscreen or switch from KnockOn to knockcode and back with tasker, can't find anything on this or related.
I want to have a little lock widget on my Sony SW2.
Thanks!

Sent from my LG-D802 using Tapatalk