I am using 4PPC70,7" display for my project and I have activated webserver in the project, I have created simple html page & loaded the page through ftp in the controller.
But I am not able to read the value from the controller.
Hi,
I’m sorry but the provided information is very little and it is hard to resolve the issue using this information.
Most likely lies the used path of the website, since it is “file:///D:/…” which is not an address from the PLC. I would expect “localhost/…” or “10.0.0.1/…” or anything similar.
Please check out the samples from the Automation Help regarding the websever and how to interact with the process variables.
Happy New Year @shrenikec. Sorry for my late reply but was offline, too.
But you got it. A next step would be writing and HTML file, replace some contents with the ASP tags, rename it to .asp and link it with you index.html.
That is simple but would require refreshing the whole file to see a change of value. I prefer to store the ASP tags in *.asp files as JSON data and load them with fetch() (or XMLHttpRequest).
HAPPY NEW YEAR TO YOU DEAR.[quote=“Christoph Hilchenbach, post:7, topic:1467, full:true, username:christoph.hilchenbac”]
Happy New Year @shrenikec. Sorry for my late reply but was offline, too.
But you got it. A next step would be writing and HTML file, replace some contents with the ASP tags, rename it to .asp and link it with you index.html.
That is simple but would require refreshing the whole file to see a change of value. I prefer to store the ASP tags in *.asp files as JSON data and load them with fetch() (or XMLHttpRequest).
[/quote]
DEAR CHRISTOPH,
I HOPE YOU ARE FINE AND DOING WELL.
THANKS FOR GUIDANCE AND HAVE CREATED ASP PAGE IN WHICH I AM ABLE TO READ THE DATA FROM THE PLC.
I have downloaded AsTCP code from github website and I have created one embedded card for machine through which I can make the machine start or stop, but right now I am facing issue when I am getting online with 4PPC70 display to monitor the input / output of tags which I define in As TCP code.
Please suggest how to resolve the issue.
I would really appreciate your efforts for resolving the above issue.
Thanks for replying but I have used the code which was available on GitHub and in that code I am facing an issue for reading / writing the data from embedded card.
So please requesting you to look into this matter and let me know to resolve the issue.
Hi
Is there a way i could have ASP files in an external directory other than user partiiton with in the cpu… how to route external directory for examble My X20 CPU is 192.168.1.10 and am having html , ASP files in a service pc with ip address 192.168.1.11 at specified location
Hi Shrenikec , Yes i do agree and its working as expected … since this concept was introduced in to older series of machine where User Partition is unused and further feel this process could get missed out in case of future changes
Well, the USER partition is the best location for the web server since you can always ensure this file device will exist.
Secondly the USER partion can be transferred with the project by Automation Studio.
The question is: will the web server run on any other file device than CF.
My first thought was to use an USBStick and use /bd0 for file device name. Unfortunately I could not get it to run.
So I have to pass your question to another brain.