Home  Contents

mtd16.tagNumber

Mtd16 Core4 Lua Commands

SYNOPSIS

type = mtd16.tagNumber(tag)

DESCRIPTION

Calculates the numerical value of tag. If tag is not a number, it is looked up in the table mtd16.lutTag to get its numerical value.

RETURN VALUE

The numerical value of tag.

ERRORS

Raises an error if msgCode could not be converted to a number by looking it up in mtd16.lutTag.

EXAMPLE

>  >  > 
mtd16.lutTag = { Test = 0xF00F } nr = mtd16.tagNumber("Test") print(string.format("0x%04X", nr))
0xF00F

SEE ALSO