ET_Result

Overview

Type:

Enumeration

Available as of:

V1.0.0.0

Description

The enumeration ET_Result specifies the possible values that indicate the result of operations executed by the POUs of this library.

Enumeration Elements

Name

Number

Description

BufferTooSmall

17

The size of the input iq_Buffer is smaller than the data that is requested to be exchanged.

ClientError

15

An error has been detected during operation of the Modbus TCP client. Detailed information is provided by the output q_sResultMsg of the associated function block.

InputInvalid

4

At least one of the given input parameters is invalid. Detailed information is provided by the output q_sResultMsg of the associated function block.

InterfaceError

20

The specified communication interface is no longer available.

IpAddressInvalid

21

The specified value for the IP address is invalid.

MaxNumberOfClientsTooSmall

7

The value of the parameter TCPUDP.GPL. Gc_uiTCPServerMaxConnections specifying the maximum number of clients is less than 16. This parameter is specified in the global parameter list (GPL) of the TcpUdpCommunication library.

For operating the Modbus TCP server, the value must be 16 or higher.

NoMoreRules

22

The maximum number of rules is configured.

NoRule

25

No rule exists on the specified index, or access control is activated but no rule has been configured.

Ok

0

The function block is being executed successfully.

OnlineChangeError

9

An online change command was detected while a client function block was being executed.

OpenFailed

5

An error has been detected while attempting to open the Modbus TCP server.

ProcessingOfRulesInProgress

26

The configured access rules are being processed.

QuantityOutOfRange

18

The quantity of objects specified with the input i_uiQuantity exceeds the limit for the function block.

ReinitFailedAfterOnlineChange

8

The reinitialization of the input parameters was unsuccessful. For further information, refer to the q_sResultMsg output of the function block.

Reinitialization is performed whenever an online change command was detected.

ResponseNotSupported

14

The response received from the Modbus TCP server is invalid or unsupported. Detailed information is provided by the output q_sResultMsg of the associated function block.

ResponseWithException

16

The response received from the Modbus TCP server contains an exception code. Detailed information is provided by the output q_sResultMsg of the associated function block.

RuleAlreadyExists

23

A rule already exists for the same address range.

RuleConfigMemoryAddressInvalid

24

At least one of the addresses for the access rule is invalid.

ServerAddressInvalid

10

The address of the input i_sServerAddr is invalid. Detailed information is provided by the output q_sResultMsg of the associated function block.

ServerClosing

2

The Modbus TCP server is closing.

ServerError

6

An error has been detected during operation of the Modbus TCP server. To clear the error information, the server must be reset.

This can be achieved by disabling and re-enabling the function block.

ServerListening

3

The Modbus TCP server is monitoring.

ServerOpening

1

The Modbus TCP server is opening.

TimeoutError

13

A timeout has expired while waiting for the response from the server. Detailed information is provided by the output q_sResultMsg of the associated function block.

TooManyPendingConnections

12

The operation cannot be executed due to the number of active connections.

TooManyPendingRequests

11

The operation cannot be executed due to pending requests in the send buffer.