Yesterday, 20:02
I am currently trying to create a library for personal use to communicate in Modbus asci. I am trying to keep it as similar as possible to the luamodbus library built-in in the editor.
I wondered how the two write functions mb: write bits and mb: write registers have an indefinite number of arguments.
While looking at the official Lua documentation, I found out I can use "..." as an argument in the function definition and then examine the arguments through the "arg" table.
The problem is this seems not to be working while scripting on a Logic Machine which always gives back the same arg table.
Did I do something or wrong or maybe this is something that can not be used through normal scripting?
I wondered how the two write functions mb: write bits and mb: write registers have an indefinite number of arguments.
While looking at the official Lua documentation, I found out I can use "..." as an argument in the function definition and then examine the arguments through the "arg" table.
The problem is this seems not to be working while scripting on a Logic Machine which always gives back the same arg table.
Did I do something or wrong or maybe this is something that can not be used through normal scripting?