How best to transfer the data to the object (when there are many).
Alarus
Posts: 48
How best to transfer the data to the object (when there are many)?
How best to transfer the data to the object (when there are many).
The first eight long words are transmitted to the optimization.
Can I transfer more than eight words long.
For example:
ModBus.Start (ADR_SLAVE, REG_OFFSET, REG_QTY, @ REG_VAL, @ REG_MIN, @ REG_MAX, PIN_RX, PIN_TX, PIN_RT, MODE, BAUDRATE)
How best to transfer the data to the object (when there are many).
The first eight long words are transmitted to the optimization.
Can I transfer more than eight words long.
For example:
ModBus.Start (ADR_SLAVE, REG_OFFSET, REG_QTY, @ REG_VAL, @ REG_MIN, @ REG_MAX, PIN_RX, PIN_TX, PIN_RT, MODE, BAUDRATE)
Comments
Then, in your parent object, use object#name to refer to the pointers:
Here's the method that uses the process:
One might use it like this:
The default positions are contained in the master program like this:
...and in the object...
The vars must all be of the same type and grouped the same in both the parent and object, but this allows you to refer to the parameters by variable name in both environments instead of using long[address+offset].