Here you can find many aktos-dcs-node
examples.
- Install global dependencies (as admin/root):
npm install -g [email protected]
- Clone the examples, install
aktos-dcs-node
git clone https://github.com/aktos-io/dcs-nodejs-examples
cd dcs-nodejs-examples
./install.sh
Simply demonstrates how to use Actor
's for parallel code execution.
./run-ls hello-world.ls
Simply demonstrates how to communicate between Actors
in the same process.
./run-ls pinger-ponger.ls
Demonstrates how to communicate between Actor
's over TCP connection.
- In a terminal window:
./run-ls tcp-pinger.ls
- In another terminal window:
./run-ls tcp-ponger.ls
Simply demonstrates how to use a serial-port as a transport.
-
Connect a serial port converter (or use that if your device has one)
-
Short circuit
Rx
andTx
pins -
Start the application:
./run-ls serial-port-test.ls
Demonstrates how to communicate with a Omron PLC over Hostlink protocol over serial port.
-
Connect the plc over the serial port.
-
Run the application:
./run-ls hostlink-over-serial.ls