01.01.2016, 00:39
(29.12.2015, 17:06)admin Wrote: To create objects:
http://openrb.com/docs/lua.htm#grp.create
To delete objects use this function:
You can find multiple objects either by tag or data type, look for grp.tag and grp.dpt in the docs.Code:-- you can delete by group address
grp.delete('1/1/1')
-- or delete by object name
grp.delete('My object name')
thank admin!
but it does not work. I write
-========================
address = grp.create({
datatype = dt.float16,
address = '4/4/123',
name = 'My first object',
comment = 'This is my new object',
units = 'W',
tags = { 'My tag A', 'My tag B' },
})
grp.delete('4/4/133')
====================
and it is not self-created address 4/4/123
and delete the address 4/4/132
Was I write wrong!
and you want to interrupt a loop, to get out before the end of the loop /
Command line can do it ....
people help me !!!! thank so much !!