Skip to content

convertMethods

AValue."method"

toBOOL

RETURN TYPE:
BOOL

Return:

BOOL

toBYTE

RETURN TYPE:
BYTE

Return:

BYTE

toDATE

RETURN TYPE:
DATE

Return:

DATE

toDATE_AND_TIME

RETURN TYPE:
DATE_AND_TIME

Return:

DATE_AND_TIME

toDINT

RETURN TYPE:
DINT

Return:

DINT

toDT

RETURN TYPE:
DT

Return:

DT

toDWORD

RETURN TYPE:
DWORD

Return:

DWORD

toINT

RETURN TYPE:
INT

Return:

INT

toLREAL

RETURN TYPE:
LREAL

Return:

LREAL

toREAL

RETURN TYPE:
REAL

Return:

REAL

toSINT

RETURN TYPE:
SINT

Return:

SINT

toSTRING

RETURN TYPE:
STRING

Return:

STRING

toTIME

RETURN TYPE:
TIME

Return:

TIME

toTIME_OF_DAY

RETURN TYPE:
TIME_OF_DAY

Return:

TIME_OF_DAY

toTOD

RETURN TYPE:
TOD

Return:

TOD

toUDINT

RETURN TYPE:
UDINT

Return:

UDINT

toUINT

RETURN TYPE:
UINT

Return:

UINT

toUSINT

RETURN TYPE:
USINT

Return:

USINT

toWORD

RETURN TYPE:
WORD

Return:

WORD

toWSTRING

RETURN TYPE:
WSTRING

Return:

WSTRING

AValue."method"

set

Set a variable with datatype TIME

Attention: Note the platform specific range

INPUT:
days : USINT [1:1]
hours : USINT [1:1]
minutes : USINT [1:1]
seconds : USINT [1:1]
milliseconds : USINT [1:1]
sign : SINT [0:1]

RETURN TYPE:
VOID

Return:

VOID

Parameters:

days : USINT
hours : USINT
minutes : USINT
seconds : USINT
milliseconds : USINT
sign : SINT

AValue."method"

set

Set a variable with datatype TOD or TIME_OF_DAY

INPUT:
hour : USINT [1:1]
minute : USINT [1:1]
second : USINT [1:1]
millisecond : UINT [1:1]

RETURN TYPE:
VOID

Return:

VOID

Parameters:

hour : USINT
minute : USINT
second : USINT
millisecond : UINT