Scrip communicator

Hello

I have a question. I must program a URCap to save six values from the Modbus.
For this i take the Script communicator sample from jbm. Now i have write this and it runs, but it need 5 seconds to update the value. Is this normal.
The Class Exporter and ScriptCommand is the same as the sample from jbm.
It is possible to do this faster?
This Method begins with work when i click a button and then it update 6 labels.

Thanks for help.

Hello

Now i do this with the Io’s about the Collection.

image

Now it is running without time problems.

I think the problem is the Exporter, it need an many time to send the command and read then the variable.

Best regards
Timo

I have noticed that the socket creation in Java takes a lot of time. If you create it only once and use it many times before closing it is faster.

1 Like