CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Feb 26, 2020 11:39 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Own HTML5 visualisation
PostPosted: Thu Dec 10, 2015 9:12 am 
Offline

Joined: Wed Dec 09, 2015 11:12 am
Posts: 13
Hi all, I'm very new to codesys.

I would like to create my own HTML5/javascript visualisation and connect it ("somehow") with the codesys code (to be able to read/send data and calls). Could you please advise me how to do it? I found some articles on the internet, but I'm still confused.

Any help appreciated.

_________________
Paul


Top
   
PostPosted: Tue Dec 15, 2015 5:44 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3637
Hi,
at the moment not possible/ not suported.
What is your use case... or better what is missing in the webvisu giving you the reason to have this requirement?
BR
Edwin


Top
   
PostPosted: Tue Jan 05, 2016 1:15 pm 
Offline

Joined: Wed Dec 09, 2015 11:12 am
Posts: 13
Hi,
my use case is simple. I need my own HTML5/JS/PHP code to be able to show "current state" of the program running in the PLC. And I also need to send commands to it.

It would be great to use it and that could simplify my work a lot, but WebVisu it is not exactly what I'm looking for. I need custom shapes and graphics which are not available. I need a lot of interaction between the Web and other devices (i.e. DB).

I was researching a bit and found some ways how to read variables via network (i.e. Modbus).

The idea is very simple. Let's imagine a counter that is increasing. I need to show this counter on the Web. How do I read the value of it from the PLC?
Could you please advise me what is the best practise? Which way should I go?

Thank you.
P.

_________________
Paul


Top
   
PostPosted: Tue Apr 26, 2016 5:16 pm 
Offline

Joined: Sat Apr 16, 2016 5:23 pm
Posts: 64
You may want to look into interfacing your web app to an OPC server. I recently saw what looked like a fairly easy to use Python library that could read and write data from an OPC server.

_________________
Rick


Top
   
PostPosted: Tue May 10, 2016 9:36 am 
Offline

Joined: Wed Dec 09, 2015 11:12 am
Posts: 13
Hi Rick, all,
I have researched many options. one of them is OPC. I will mention all that I have found maybe will be useful for somebody.
My webserver was php based so focus on php

1) OPC (this has poor php support in linux)
2) Modbus (it's possible to communicate via modbus using phpmodbus library)
3) exchange information via files
4) shared memory
5) write own socket server and communicate via sockets

_________________
Paul


Top
   
PostPosted: Mon Aug 01, 2016 2:08 pm 
Offline

Joined: Mon Aug 01, 2016 11:08 am
Posts: 4
pavol.fazik wrote:
Hi Rick, all,
I have researched many options. one of them is OPC. I will mention all that I have found maybe will be useful for somebody.
My webserver was php based so focus on php

1) OPC (this has poor php support in linux)
2) Modbus (it's possible to communicate via modbus using phpmodbus library)
3) exchange information via files
4) shared memory
5) write own socket server and communicate via sockets


So OPC client bascially runs on a Webserver, right?


Top
   
PostPosted: Thu Sep 01, 2016 12:18 pm 
Offline

Joined: Wed Dec 09, 2015 11:12 am
Posts: 13
zahoorahmed wrote:
So OPC client bascially runs on a Webserver, right?


This was my goal to have php opc client, but no good php stack for OPC client (or wasn't at that time).

The workaround can be calling C client from the PHP :)

_________________
Paul


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited