LOG_REASON_TO_STRING

Help Contents

Introduction

Translates a historical data log reason to a string.

Syntax

Informal Syntax:

LOG_REASON_TO_STRING( In )

Formal Syntax:

LOG_REASON_TO_STRING( In:=expression )

Parameters

ParameterTypeDescription
InANY_INTThe log reason to convert to a string.

Return Value

The function LOG_REASON_TO_STRING returns a STRING value representing the text translation of the change reason.

Examples

ExampleReturn Value
LOG_REASON_TO_STRING( 1 )STRING'Start recording'
LOG_REASON_TO_STRING( 2 )STRING'Stop recording'
LOG_REASON_TO_STRING( 4 )STRING'Value change'

Standards Compliance

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

Further Information

Conversion Functions

To learn about other Conversion Functions.

String Literals

To learn about string literals and the different types of encoding used.

Common Elements

To learn about other IEC 61131-3 Common Elements.

Glossary

For the meaning of terms used in Fernhill SCADA.