Andy Balholm Posted April 9, 2011 Report Share Posted April 9, 2011 I am building a web interface for a PLC using the SproutCore JavaScript framework. At this point, I can make it work with a separate web server, but it would be much more efficient to host the interface on the PLC itself. The enhanced web server sounds good, but it has too many restrictions on filenames. SproutCore isn't designed to work with DOS-style 8-character file names, and it needs files to be arranged in a certain directory structure. If I had a web server application that could support longer file names and arbitrary subdirectories, I think it would work. Any ideas? Quote Link to comment Share on other sites More sharing options...
Ofir Posted April 10, 2011 Report Share Posted April 10, 2011 Hi Andy, The Web files need to be stored in SD card which will be in the PLC. As you mentioned indeed the PLC can work with files only using format 8.3 and english characters. We have many customer who already inmplemeted the Enhanced web server using HTML and JAVASCRIPT using file names with 8.3 format. Quote Link to comment Share on other sites More sharing options...
Andy Balholm Posted April 12, 2011 Author Report Share Posted April 12, 2011 SproutCore uses files with paths like /static/sproutcore/bootstrap/en/dd9de322ad13a3d1b5f705b175e9e87edb7de740/javascript-packed.js I'm not sure how to adapt it to 8.3 filenames. Is the 8.3 limit a limitation of the webserver itself, or does it come from how the PLC reads the SD card? Is the source code of the webserver available? Quote Link to comment Share on other sites More sharing options...
Ofir Posted April 13, 2011 Report Share Posted April 13, 2011 Hi Andy, The limitation is not related to the Web Server but to the PLC handling files with SD card. Basically the path appears somewhere in the file.Try checking where you need to change the path to the file and also make sure to rename the file to be 8.3 format. Quote Link to comment Share on other sites More sharing options...
Andy Balholm Posted April 13, 2011 Author Report Share Posted April 13, 2011 There are 474 files to change. So I wrote a Perl script to do it. The new names are not very user-friendly, like "01af095f.js", but it seems to work—on a regular Apache web server, that is. I haven't tried it on a real PLC yet. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.