in reply to Call external function

If the external module supports that, you can import the function:

use PLCFuncs qw/calcTot/;