Home Contents | # mtd16.lutTag | Mtd16 | Core4 Lua Commands

## SYNOPSIS

mtd16.lutTag

## DESCRIPTION

mtd16.lutType is an optional table which contains a mapping of tag names to numerical values. This table is nil initially and must be initialized by an application prior to use.

When the table has been initialized, it can be used with the commands mtd16.tagName(), mtd16.tagNumber(), mtd16:append(), mtd16:appendMessageCode(), mtd16:contains(), mtd16:get(), mtd16:getNumber(), mtd16:getString() and mtd16.new().

## EXAMPLE

> > >
mtd16.lutTag = { Test = 0xF00F } msg = mtd16.new("Test") print (msg:trace())
msgTest
>
print (msg:toData():hexdump())
0000000: 02 00 0F F0

## SEE ALSO

#mtd16, mtd16.answerCode, mtd16.fromData, mtd16.fromText, mtd16.isNestedTag, mtd16.lutType, mtd16.new, mtd16.tagCode, mtd16.tagName, mtd16.tagNumber, mtd16.tagType, mtd16:append, mtd16:appendMessageCode, mtd16:contains, mtd16:get, mtd16:getNumber, mtd16:getString, mtd16:isEmpty, mtd16:isValid, mtd16:messageCode, mtd16:nextMessageCode, mtd16:pairs, mtd16:rewind, mtd16:tags, mtd16:toData, mtd16:toText, mtd16:trace, tostring(mtd16)