Logic Machine Forum
Create vars at the Office before deploy at the plant - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Create vars at the Office before deploy at the plant (/showthread.php?tid=2014)



Create vars at the Office before deploy at the plant - iJAF - 08.04.2019

Hello,

I have one school already running, but now I have to add more 300 variables.

Is there any way to create those vars in the office and then go to to the plant to deploy them instead of doing one by one in the plant ?

Thank you


RE: Create vars at the Office before deploy at the plant - Daniel - 08.04.2019

HI
Can you explain your question bit better please?
BR


RE: Create vars at the Office before deploy at the plant - Thomas - 08.04.2019

In case your "variables"are group addresses then I prepared it in Excel, imported to ETS, exported as ESF and imported into LM.


RE: Create vars at the Office before deploy at the plant - iJAF - 08.04.2019

Those are not ETS variables.

Those 300 variables I want to add are virtual address variables that I have to map to modbus profiles that I have already created via json profile.

My problem is that I have to create them one by one at the plant... and I will spent a lot of time there.


My idea is to make that work at the office then go to the plant and deploy those new variables!


RE: Create vars at the Office before deploy at the plant - Daniel - 08.04.2019

Use this https://forum.logicmachine.net/showthread.php?tid=1371&pid=8265#pid8265


RE: Create vars at the Office before deploy at the plant - iJAF - 09.04.2019

I have read that and I have to make a script to do that, but there are other virtual vars I want to create in a specific order.

So probably I could do that with a simple script like this:

db:update( 'objects', 'name_var_1' , '33/1/1' )
db:update( 'objects', 'name_var_2' , '33/1/2' )
db:update( 'objects', 'name_var_Xx' , '33/1/Xx' )
...

Which is the right syntax to do this for the db:update() call ?

Thank you


RE: Create vars at the Office before deploy at the plant - Daniel - 09.04.2019

Isn't that what you are looking for?
http://openrb.com/docs/lua.htm#grp.create


RE: Create vars at the Office before deploy at the plant - iJAF - 10.04.2019

Yes, thank you.

I will do that way, it's much more simple !