GetDint (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

The method GetDint generates a random number.

Description

The method GetDint generates a random number of type DINT according to the linear congruence method. Refer to FB_RandomGenerator.

Interface

Input

Data type

Description

i_diXmin

DINT

Lower limit value of the random number.

i_diXmax

DINT

Upper limit value of the random number.

Output

Data type

Description

q_etResult

ET_Result

Provides diagnostic and status information as an enumeration value.

q_sResultMsg

STRING [80]

Provides additional diagnostic and status information as a text message.

Return Value

Data type

Description

DINT

Generated random number of type DINT.

Diagnostic Messages

The following elements of ET_Result are used for q_etResult.

Name

Data type

Value

Description

Ok

UDINT

0

Operation completed successfully.

InitMethodNotCalled

UDINT

21

Initialization method has not yet been executed.