The Programmable Logic Controller (PLC) with an Ethernet module acts as an HTTP Server (web content provider), which responds to requests from HTTP Clients (web browsers).

PLC - Web Server

Eugene Kowch | P.I.D. Consultants Inc.

Programmable Logic Controller
---- Web Server----
By Eugene Kowch, P.I.D. Consultants Inc.

The Programmable Logic Controller (PLC) with an Ethernet module acts as an HTTP Server (web content provider), which responds to requests from HTTP Clients (web browsers).


HyperText Transfer Protocol (HTTP) is a standard Client/Server Internet protocol that transfers web content over a TCP/IP network. The Programmable Logic Controller (PLC) with an Ethernet module acts as an HTTP Server (web content provider), which responds to requests from HTTP Clients (web browsers). The PLC supports HTTP Client authentication, requiring the web browser to enter a Username and Password, before web content can be accessed. Properly authenticated, an HTTP Client can access web content previously stored in the PLC file system. This web content can include standard static HTML files and other web resource files. (images, sound, etc.) In addition, the PLC HTTP server allows the HTTP Client to display and edit PLC register data, by embedding specially named dynamic HTML files into a static HTML file.

To start browsing web resources stored in the PLC file system, enter the appropriate Uniform Resource Locator (URL) into the HTTP Client (web browser). As a minimum, the URL should include the target PLC's IP address and a filename. For example, if the PLC's IP address is 192.168.0.74, the following URL will access the PLCscene.htm file in the PLC file system root directory:

http://192.168.0.74/PLCscene.htm 

If the Ethernet module was configured with a Username and Password, the browser will prompt for the Username and Password to be entered, before opening the web page (PLCscene.htm).

A PLC HTML file is either static or dynamic. These files can be created with a simple text editor or by using a 3rd party HTML Editor. To specify the PLC register to read or write there are two parameters required; reference and format. The required register parameter is a number with a maximum limit, depending on the PLC register type. (Input, Output, etc) Valid format types are Boolean, Binary, Hex, Integer, Real and ASCII.


Comments (0)

This post does not have any comments. Be the first to leave a comment below.


Post A Comment

You must be logged in before you can post a comment. Login now.

Featured Product

Introducing the revolutionary Comelit Visto Smart Doorbell

Introducing the revolutionary Comelit Visto Smart Doorbell

The Visto Doorbell is a new Smart Doorbell from Comelit which combines a modern Italian design with all of the basic features you are looking for in a smart video doorbell. In fact, it is so smart that it can use the 2 wires from your existing doorbell and pass both the power and the data signals. This solves the common problem of having poor wifi coverage all the way at your front door. The Visto also has built in night vision, video recording on a SD card and in the cloud, motion detection, and multiple mounting options including an angle mount. The second thing we are introducing is the Visto Dealer referral program. Because we only sell through the Professional Distribution channel, we want to give our dealers who buy in that channel extra incentives to sell our product. For any security dealers or installers who go on our website www.vistodoorbell.com, and sign up for our program, we will offer the following: - Free referrals to customers in your area - Cashback program - 10% discount during the 1st month of the launch - Free Visto t-shirts and gear - A chance to win a trip for 2 to Venice, Italy Its that easy. Let us refer customer to you and get paid in the process. All while selling a wonderful Italian designed smart doorbell which is innovative and easy to install. So all dealers should protect the pro-channel and install products like the Visto which are made and sold only at your friendly local security and low voltage distributors.