Jump to content

Java Script


Recommended Posts

Hi guys, i am new web development and java . I'm a technician by profession and i am familiar with PLC programming and Vb programming. I use to have projects on HMI (Human Machine Interfacing) on my department  that involves these programming methods. Lately i'm trying to use WeB interfacing as a main control for some machines but failing. What i want to know, is Java script capable of communicating with external devices (for example : a relay thru a communication port)? Any comments and suggestions is greatly appreciated.

Link to comment
Share on other sites

  • Administrators

Hmm...is the machine connected via Ethernet or WiFi then?  If so then a web app I would think will work.  And if that's the case then yes, JavaScript should do the trick.  To control the machine though I'd think you're going to have to know the API commands to fire with JavaScript.  Happy to help though if you post some of your syntax here.

How did you land on using JavaScript vs any other language?

Link to comment
Share on other sites

I cannot say much about it because it is still a concept. I'm still trying to figure out the communication system between the machine and the website.  I choose java for the web function just because i'm familiar with it. Basically what i want to happen is java will be responsible for WEB user control interface and Real time data content by the machine. For the machine control java will call VB base programs that will be connected to I/O hardware . Java will also have to control signaling devices for the Alarm system thru a communication port Where the website is being viewed.

I made an illustration on how the project could work. 

Thank you for your comments i really appreciate it.


Link to comment
Share on other sites

  • 1 year later...

JavaScript is a very powerful client-side scripting language. JavaScript is used largely for improving the communication of a user with the webpage. In other words, you can make your webpage more exciting and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...