comfilehmi:remote_scripting:index
Remote Scripting
The remote scripting feature can execute a script from a remote TCP/IP connection. It is only compatible with CHC model panel PCs running firmware version 3.15 or later.
General Procedure
- After setting the network configuration (HMI Runtime Settings–>Network), enable the remote control server (HMI Runtime Settings–>Servers–>Run the Remote Control Server).
- Open a raw socket connection to the server.
- Send a script message to the server surrounded by
<script>and</script>tags. (e.g.<script>a=1+2</script>).
To receive a response from the server use one or more of the write_xxx functions. For example <script>write_text(“Hello, World!”);</script> will send the text “Hello, World!” back to the client.
To test this feature from within Comfile Studio go to Tools–>Advanced Features–>Remote Script Test Box.
comfilehmi/remote_scripting/index.txt · Last modified: by 127.0.0.1

