Declare a counter variable as int count=0 outside of the loop
now traverse the loop from the i=0 to the array.length
check if array of i-th index %2==0 and counter==10
then print (array of i-th index)
else
counter=counter+1;
I am new to PLC Programming and I do not know the basics of it.
My task is to write a code in C#-winforms that sends and receive tags from/to their communication server (OPC server) RSLINX which will be connected to the client's PLC. I have found the sample OPC Client code in the C# but I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.