Home  Contents

mtd16.tagType

Mtd16 Core4 Lua Commands

SYNOPSIS

type = mtd16.tagType(tag)

DESCRIPTION

Calculates the numerical value of tag's type. 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 the top four bits of tag.

ERRORS

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

EXAMPLE

print(mtd16.tagType(0xF001))
15

SEE ALSO