PlcDeviceConnection.WriteBoolean Method (String, Boolean)

Writes the Booleanvalue (in PLC a BOOL) to the data area specified by address.

Namespace: IPS7Lnk.Advanced
Assembly:  IPS7LnkNet.Advanced (in IPS7LnkNet.Advanced.dll) Version: 1.0.0.0 (1.7.2.0)

C#

public void WriteBoolean(
	string address,
	bool value
)


Parameters

address
Type: System.String
The address of the data area to that the value is to be written.
value
Type: System.Boolean
The Boolean value to write to the area specified by address.

Exception Condition
ArgumentException The address is an empty string or does not refer to the Bit.
ArgumentNullException The address is a null reference (Nothing in Visual Basic).
InvalidOperationException The connection is not in Opened, Connected or Disconnected state and is therefore not ready to use or the connection is in Faulted state and cannot longer be used.
ObjectDisposedException The connection has been disposed of.


Reference