0% found this document useful (0 votes)
34 views

WebServer CP1L E

This function block provides a web server for displaying user data on a web browser for the OMRON CP1L PLC with Ethernet capabilities. It uses TCP socket 1 to serve HTML code stored in the PLC's data memory to connected clients. The block checks for an entered password against a stored password to control access and will log out clients after a set period of inactivity. It monitors the Ethernet link status and connection errors.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

WebServer CP1L E

This function block provides a web server for displaying user data on a web browser for the OMRON CP1L PLC with Ethernet capabilities. It uses TCP socket 1 to serve HTML code stored in the PLC's data memory to connected clients. The block checks for an entered password against a stored password to control access and will log out clients after a set period of inactivity. It monitors the Ethernet link status and connection errors.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Function Block

Reference WebServer_CP1L OMRON ELECTRONICS S.A.S.


Revision 1.0 14 Rue de Lisbonne
93561 Rosny-sous-Bois cedex
Author JP Viskovic
Date 25/06/2012
+ Support http://support-omron.fr/

WebServer for CP1L with Ethernet built-in

Function Display user data on Web browser


File WebServer_CP1L.cxf
Available PLC CP1L-EL, CP1L-EM
Conditions of use The data contening html code WebServer_CP1L_Mem should be
transfered in the DM memory area
Restrictions of use The function bloc WebServer_CP1L use socket TCP n°1
Symbol

Principe
Data memory allocation

D9600 Reception area for html code browser request


D9999
D32000 html code for user data visualization.
D32169 Labels Value 1, Value 2, etc …, could be modify but
should have a length of 6 bytes.
D32170 Value 1
D32172 Value 2 User value to be displayed
: : :
D32188 Value 10
D32200 Reserved Modbus-RTU Easy Master function
D32399
D32400 Parameter area for Ethernet socket
D32447
D32500 html code of passwored input page
D32626
D32630 Html code of ERROR page
D32668
D32670 8 characters Password strictely. These 8 bytes should be
D32674 filled
Function Block WebServer_CP1L Serveur Web for CP1L-Ex

View

Documentations Manuel CP1L-Ex

Input variables
Name Type Range Function
EN BOOL OFF-ON ON = allow FB execution
Check_Password BOOL OFF-ON Enable Acces controlled by password.
Password written in D32670-D32674 (8 characters strictly)
Login_Delay UINT 0000- Time before logout (in second) if no activity
9999 A delay of 0s will prohibit any access.
Logout BOOL OFF-ON Command to logout.

Output variables
Name Type Range Function
ENO BOOL OFF-ON Server operationnal listening for a client
Connected BOOL OFF-ON Client connected (only during up/download html code)
Error BOOL OFF-ON FINS Error
ErrorCode UINT 0000-FFFF FINS error code CP1L socket
Eth_Link_default BOOL OFF-ON No Ethernet link
Visits UINT 0000-FFFF Number of access
Logged BOOL OFF-ON Browser connected using password

JPV 25/06/2012 Page 2/2

You might also like