We have a requirement to operate a drive from a library component.
Since the operation is same for all the drives we want to create a public class (similar to User defined function) and call the same whenever a drive needs to be operated.
As per our understanding we need to send the tag as a string (Character) to the function and then convert the same into globaltag item.
When we are passing the tag as a string we are not able to access the tag in the function in-order to change the value of the tag.
Kindly assist us in resolving the problem.
regards
Dayanand
Calling Function with arguments
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Calling Function with arguments
I am guessing that the tag is not within your function scope. Therefore you do not have access to the tag object. Without seeing the code you are using I can not be more specific than this. If you post your function code and how you are calling it I maybe able to help more.
There are many tutorials online that go over C# programming. C# is a language that is supported and developer by Microsoft. iX Developed uses C# and your issue sounds like it has to do with C# syntax rather than iX Developer.
Regards,
Mark
There are many tutorials online that go over C# programming. C# is a language that is supported and developer by Microsoft. iX Developed uses C# and your issue sounds like it has to do with C# syntax rather than iX Developer.
Regards,
Mark
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer