Created
November 3, 2016 21:43
-
-
Save UweRaabe/69a8bc074fc3b69721f745a2642f33cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure TdmScripting.PrepareScripter(AScripter: TIDEScripter); | |
begin | |
AScripter.DefineClassByRTTI(TTwinCATVar); | |
AScripter.DefineClassByRTTI(TTwinCATVarBOOL); | |
AScripter.DefineClassByRTTI(TTwinCATVarBYTE); | |
AScripter.DefineClassByRTTI(TTwinCATVarINT); | |
AScripter.DefineClassByRTTI(TTwinCATVarLONG); | |
AScripter.DefineClassByRTTI(TTwinCATVarSINGLE); | |
AScripter.DefineClassByRTTI(TTwinCATVarDOUBLE); | |
AScripter.DefineClassByRTTI(TTwinCATVarSTRING); | |
AScripter.DefineClassByRTTI(TTwinCATVarBYTES); | |
AScripter.AddComponent(Self); | |
AScripter.AddObject('PLC', PLC); | |
AScripter.AddObject('NC', NC); | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is some real project code that allows creation and access to custom classes from the script.