Helge!
Thanks for the quick reply .
Network Publish attribute is set to "Input", which works with any other type of variable, can read and write too. It is just the strings that do not seem to write.
Jurgen!
A simple example I am using is as follows:
var stringTag = new Tag<StringPlcMapper, string>( ) // should match the data type you trying to access
{
Name = "testString",
Gateway = "192.168.250.1",
Path = "18,192.168.250.1", // 18 means you are trying to access on ethernet port 1, for ethernet port 2 use 19
Protocol = Protocol.ab_eip,
PlcType = PlcType.Omron,
Timeout = TimeSpan.FromMilliseconds(5000),
};
stringTag.Read( ); // initializes connection and reads the variable
Debug.WriteLine(
stringTag.Value.ToString());
stringTag.Value = "42";
stringTag.Write(); // should write the value to the plc
Where "testString" is a global variable of 255 chars and the Network Publish attribute is set to "Input".
If you were using a structure variable the Name would be "yourstructure.yourSubStructure.member
You could also download the example project from github, which is full of examples.
Cheers,
Attila