Note about the PLC: Please attend to the PLC Control that the 'Symbol-Download' under Project / Options / TwinCAT is activated. For further information please see the manual TwinCAT PLC Control.
Note about NC: The Symbol download has to be activated at each axis. This can de done in the configuration dialog of the axis under ‚General'. The field ‚Create Symbols' has to be marked. See manual of the TwinCAT System Manager.
Note about the PLC: Please attend to the PLC Control that the 'Symbol-Download' under Project / Options / TwinCAT is activated. For further information please see the manual TwinCAT PLC Control.
Note about NC: The Symbol download has to be activated at each axis. This can de done in the configuration dialog of the axis under ‚General'. The field ‚Create Symbols' has to be marked. See manual of the TwinCAT System Manager.
+
+
+
+ The following sample shows how to create a static (non dynamic) version of the SymbolLoader V2.
+ The static symbol loader in version 2 is a nearly code compatible version of the Dynamic Loader, only the dynamic creation of objects is not available. The reason for supporting
+ this mode is that .NET Framework Versions lower than Version 4.0 (CLR2) doesn't support the Dynamic Language Runtime (DLR).
+ The SymbolLoader V2 static object is supported from .NET 2.0 on.
+
+
+
+
+ (* Declaration *)
+ {attribute 'TcRpcEnable'}
+ METHOD RpcMethod1 : INT
+ VAR_INPUT
+ i1 : INT;
+ END_VAR
+
+ (* Implementation *)
+ RpcMethod1 := i1 + 1;
+
+
+ (* Declaration *)
+ {attribute 'TcRpcEnable'}
+ METHOD RpcMethod1 : INT
+ VAR_INPUT
+ i1 : INT;
+ END_VAR
+ (* Implementation *)
+ RpcMethod1 := i1 + 1;
+
+