Skip to content

Properties and Info functions

Federico Barresi edited this page Jan 11, 2019 · 2 revisions

S7Client Public properties

ConnTimeout

Gets/Sets the connection timeout (in milliseconds) for a telegram.

RecvTimeout

Gets/Sets the receiving timeout (in milliseconds) for a telegram.

SendTimeout

Gets/Sets the sending timeout (in milliseconds) for a telegram.

Connected

It’s true if the Client is connected. (read-only)

PduSizeNegotiated

Returns the PDU size negotiated. (read-only)

PduSizeRequested

Gets/Sets the PDU size to be negotiated.

PLCPort

Gets/Sets the connection Port (by default is 102).

ExecutionTime

Returns the last operation execution time in ms. (read-only)

S7Client Public info methods

LastError

public int LastError()

Returns the last operation error.

ErrorText

public string ErrorText(int Error)

Returns a textual explanation of Error

ExecutionTime

public int ExecTime()

Returns the last operation execution time in ms.