As a general solution, if you load the config without the connections, then open a terminal and type "halcmd show pin" you will get a list of all the HAL pins that you could link together.
You can cut and paste that into a text file (or pipe it directly to a text file if you prefer).
A typical HAL net would be
Code:
net i-am-a-signal classicladder.0.in-02 hm2_5i25.0.7i76.0.0.input-00
net i-am-a-signal-in-the-opposite-direction classicladder.0.out-00 hm2_5i25.0.7i76.0.0.output-05