Skip to content

aktos-io/dcs-nodejs-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Here you can find many aktos-dcs-node examples.

Install

  1. Install global dependencies (as admin/root):
npm install -g [email protected]
  1. Clone the examples, install aktos-dcs-node
git clone https://github.com/aktos-io/dcs-nodejs-examples
cd dcs-nodejs-examples
./install.sh

Running The Examples

1. hello-world.ls

Simply demonstrates how to use Actor's for parallel code execution.

./run-ls hello-world.ls

2. pinger-ponger.ls

Simply demonstrates how to communicate between Actors in the same process.

./run-ls pinger-ponger.ls

3. tcp-pinger.ls and tcp-ponger.ls

Demonstrates how to communicate between Actor's over TCP connection.

  1. In a terminal window:
./run-ls tcp-pinger.ls
  1. In another terminal window:
./run-ls tcp-ponger.ls

4. serial-port-test.ls

Simply demonstrates how to use a serial-port as a transport.

  1. Connect a serial port converter (or use that if your device has one)

  2. Short circuit Rx and Tx pins

  3. Start the application:

    ./run-ls serial-port-test.ls

5. hostlink-over-serial.ls

Demonstrates how to communicate with a Omron PLC over Hostlink protocol over serial port.

  1. Connect the plc over the serial port.

  2. Run the application:

    ./run-ls hostlink-over-serial.ls

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages