Working with TwinCAT 3 license dongles VAR_INPUT sNetIdSrc : T_AmsNetId; (* Ams net id of dongle (USB: of PC ('' is local PC); EL6070: of EtherCAT Master (info data of terminal)) *) nPortSrc : UINT; (* Ams port of dongle (USB: ADS Port of ESB Device (e.g. 16#7100); EL6070: ADS Port of EtherCAT terminal (info data)) *) sNetIdDest : T_AmsNetId; (* Ams net id of PC ('' is local PC) *) sFileNameSrc : STRING; (* File name for file on dongle *) sFilePathNameDest : T_MaxString; (* File path name on disk *) pCopyBuff : PVOID; (* Buffer address for write *) cbCopyLen : UDINT; (* Count of bytes for write *) bExecute : BOOL; (* Rising edge on this input activates the fb execution *) dwPassCode :
DWORD; (* Passcode for file access *) tTimeout : TIME := DEFAULT_ADS_TIMEOUT;(* ADS timeout *) END_VAR VAR_OUTPUT bBusy : BOOL; (* True as long as the FB is busy *) bError : BOOL; (* True in case of an error *) nErrorId : UDINT; (* Error code in case of an error *) END_VAR See also: TE1000 XAE > PLC > Libraries > TwinCAT 3 PLC Lib: Tc2_Utilities 4.4 Removing a license dongle during operation If a TwinCAT 3 license dongle is removed while a program is running, TwinCAT 3 registers this. For safety reasons the user program is not stopped, in order to avoid unpredictable damage to the machine to be controlled.
4.5 License Device overview window The License Device overview window shows the properties and the status of a license dongle. You open the window by double-clicking on the dongle entry in the TwinCAT project tree. Hardware group box Dongle Status group box The parameters of the selected TwinCAT 3 license dongle are displayed under Dongle Status . TwinCAT 3 42 Version: 1.20.7 Dongle (EL6070 EtherCAT Terminal, USB) Name of the license dongle