WinCC OA tip and tricks

DP names

string alias = unGenericDpFunctions_getAlias(deviceName);
string deviceName = unGenericDpFunctions_dpAliasToName(alias);
string deviceName = dpSubStr(full_dpe_name, DPSUB_SYS_DP); // convert dpe name to device name
string deviceName = dpSubStr(deviceName, DPSUB_DP_EL_CONF_DET_ATT); // removes system name from device name

WinCCOA UI responsiveness

If UI animation is slow, try following:

  1. enable data compression in X-Win configuration of the connection (or -C flag in ssh command)
  2. change graphics system to native or raster (raster is default, but when it is faster?)
    $ WCCOAui -currentproj -p vision/graphicalFrame/unicosHMI.pnl -graphicssystem native
    $ # OR
    $ export QT_GRAPHICSSYSTEM="native"
    $ WCCOAui -currentproj -p vision/graphicalFrame/unicosHMI.pnl