The first defined controller is the default and the second is for programming. In this case the second iid must be set in the ptiid attribute:
rocrail.ini
<rocrail planfile="ddl.xml" libpath="." ptiid="ln-1"> <digint iid="ddl-1" lib="ddl"> <ddl s88busses="1" s88b0modcnt="4"/> </digint> <digint iid="ln-1" lib="loconet" device="/dev/ttyUSB1" fbmod="0" bps="57600"/> </rocrail>
All program commands are redirected to the "ln-1" controller when using this example.
The rest is equals as described in Multiple Controllers.