From OpenSCADAWiki
Jump to: navigation, search

For derivative DAQ templates creation using the static functions you can use also dynamic linking to its, like this:

function put = addr+".fnc_put";
if(put) {
  put(D4, vl&0x10);
  put(D5, vl&0x20);
  put(D6, vl&0x40);
  put(D7, vl&0x80);
}