mirror of
https://github.com/fbarresi/Sharp7.git
synced 2026-02-04 08:42:51 +00:00
Add PLCIpAddress property to S7Client
This commit is contained in:
@@ -698,6 +698,7 @@ namespace Sharp7
|
||||
|
||||
public int ConnectTo(string Address, int Rack, int Slot)
|
||||
{
|
||||
PLCIpAddress = Address;
|
||||
UInt16 RemoteTSAP = (UInt16)((ConnType << 8) + (Rack * 0x20) + Slot);
|
||||
SetConnectionParams(Address, 0x0100, RemoteTSAP);
|
||||
return Connect();
|
||||
@@ -2268,6 +2269,8 @@ namespace Sharp7
|
||||
}
|
||||
}
|
||||
|
||||
public string PLCIpAddress { get; private set; }
|
||||
|
||||
public int PLCPort
|
||||
{
|
||||
get => _PLCPort;
|
||||
|
||||
Reference in New Issue
Block a user