Hi everybody,
we set the port assignments now with the KAREL build-in-function SET_PORT_ASG().
Basically it works, but we get differences between the automatic and the manual version.
Example for the DOUTs -Config:
When we do it manually, the Config table looks like this:
1 DO[1-3] 0 0 0
2 DO[4-6] 36 3 1
3 DO[7-9] 0 0 0
The ports are grouped and the table is very short.
When we do it with the SET_PORT_ASG(), it looks like this:
1 DO[1-3] 0 0 0
2 DO[4-4] 36 3 1
3 DO[5-5] 36 3 2
4 DO[6-6] 36 3 3
5 DO[7-9] 0 0 0
So every port has a single line in the config table.
Is there an option, that we get a short table with the SET_PORT_ASG() too?
And is the single assignment perhaps critical for the performance of the control?