Appendix | Return values 9 Appendix | Appendix 9.1 Return values | Return values ITc interfaces methods generally return an HRESULT. The following return values can be returned in the case of ITc interfaces: In addition, there is a possibility for ADS Return Codes [ } 24] to be returned as HRESULT. These are also available as macros in the SDK, where they are known, for example, as ADS_E_BUSY for the ADS Error Code ADSERR_DEVICE_BUSY. 9.2 FAQ - frequently asked questions and answers | FAQ - frequently asked questions and answers In this section frequently asked questions are answered, in order to facilitate your work with the TwinCAT Usermode Runtime.
If you have any further questions, please contact our support team at support@beckhoff.com . 1. How do I start the TwinCAT Usermode Runtime? [ } 22] 2. What does the error message mean “Too little memory when using the PLC”? [ } 22] 3. How can I access the Usermode Runtime remotely? [ } 23] 4. How is a collision of the AmsNetId prevented? [ } 23] 5. Is TwinCAT C++ and CriticalSections available in the Windows context? [ } 23] How do I start the TwinCAT Usermode Runtime (without TwinCAT SysTray)? All instances stored in the ProgramData [ } 11] are automatically displayed in the TwinCAT SysTray icon and can be started by clicking on them.
You can also start the user mode runtime via the "start.bat" in your respective ProgramData folder. It can then be selected as the target system via the Automation Interface and, like other systems, can also be used with regard to: Activate Configuration, changing the status, etc. The user mode runtime knows different modes with which it can execute the application. This can be set via the "-f" parameter when starting up. Up to version 1.18.3, mode 0x8 was used by default - this offers no support for External Control (TC1701) or Fast As Possible (TC1702), so that up to this version the parameter "-f 0x4" had to be added to the respective Start.bat.
As of version 1.19, this mode is the default, so this step can be omitted. What does the error message mean “Too little memory when using the PLC”? TC170x 22 Version: 1.6.1 Name HRESULT S OK _ 0x0000 0000 S FALSE _ 0x0000 0001 E NOTIMPL _ 0x8000 4001 E NOINTERFACE _ 0x8000 4002 E POINTER _ 0x8000 4003 E ABORT _ 0x8000 4004 E FAIL _ 0x8000 4005 E UNEXPECTED _ 0x8000 FFFF E ACCESSDENIED _ 0x8007 0005 E HANDLE _ 0x8007 0006 E OUTOFMEMORY _ 0x8007 000E E INVALIDARG _ 0x8007 0057