# WebServer in RAPID for IRC5

**URL:** <https://tech-community.robotics.abb.com/t/webserver-in-rapid-for-irc5/5216>\
**Category:** Robot Controller\
**Created:** [November 18, 2012, 7:16pm UTC](https://tech-community.robotics.abb.com/t/webserver-in-rapid-for-irc5/5216 "2012-11-18T19:16:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Murphy](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Steve\_Murphy](https://tech-community.robotics.abb.com/u/Steve_Murphy)\
**Post date:** [November 18, 2012, 7:16pm UTC](https://tech-community.robotics.abb.com/t/webserver-in-rapid-for-irc5/5216/1 "2012-11-18T19:16:59Z")

</div>

RAPID WebServer 1.1:

A sample HTTP 1.1 webserver for IRC5 controllers written in RAPID can be found at the RobotApps site: [https://robotapps.robotstudio.com/Details.aspx?fileId=416](https://robotapps.robotstudio.com/Details.aspx?fileId=416)

If you have a controller with Multitasking and PC SDK, then you can use one background task to deliver HTML pages to your webbrowser.

The web server has active content, in that upon requesting a page, it can run RAPID code to generate the HTML response, which can be used to get the status of the controller, elog, I/O, and any globally shared RAPID variables.

Many devices in a robot cell have web servers and it can be useful to product a “dashboard” of the entire cell including the robot. As delivered, the IRC5 does not have web server interface, but as shown the sample code, it is possible to add one.

This is a simple single background task server with limitations on mutiple connections. If there is a good interest, it can be re-written to use 2 background tasks and be much more responsive.

Check it out and send your comments!

Steve
