SysGetRandomWord - Return a random WORD value

Help Contents

Introduction

Returns a random word value.

Syntax

Informal and Formal Syntax:

SysGetRandomWord()

Parameters

None

Return Value

The value returned is a random value in the range 0 to 65535. The function uses a high quality random data source to minimize any repeat patterns in the data.

Remarks

Requires Fernhill SCADA Version 3.42 and later.

Examples

ExampleReturn Value
SysGetRandomWord()WORD#16#3C12

Standards Compliance

The function SysGetRandomWord is an extension to the IEC 61131-3 standard.

Further Information

System Functions

To learn about other system functions.

Elementary Data Types

To learn about the different types supported by Fernhill SCADA.

Common Elements

To learn about other IEC 61131-3 Common Elements.

Glossary

For the meaning of terms used in Fernhill SCADA.