Name the lock then edit session and add rule input table. Open the rule and add turntable,name,2 . Make sure the move turntable driver command is selected from the commands list. It is important to make sure the TM is on the lifting part of the lock or else the boat wont see it. Now drive to TM and wait for 10 sec then move turntable command to 1. This will close the gates and raise the water to the next level.
The double lock is similar Lock name Double Locks. Input table turntable,Double Locks,3 . Move turntable command 0 = bottom level, 1 = middle level and 2 = top level.