Test the email function of the PLC:         [Reload] page      [Back] main page      [See] PLC function block
 
Relay R20 in the PLC is defined to trigger the email sending.
It is reset by the FP Web-Server after sending the email.
R20:   {R20_INACTIVE_ACTIVE}
Set R20: [click] to send email and then [reload] page
Relay R21 is defined to signal a possible error. It is updated by the FP Web-Server.  R21:   {R21_OK_ERROR}
Dataword DT100 in the PLC is defined to hold the DT address of the email recipient address string. If it is set to 0 ... 3 the FP Web-Server will use the a pre-stored recipient address instead of taking the string from the PLC.

DT100: 
Note: Enter 200 to use variable PLC address below

Dataword DT101 is defined to hold the DT address of the email text string. If it is set to 0 ... 3 the FP Web-Server will use the a pre-stored email text file instead of taking the string from the PLC.

DT101: 
Note: Enter 300 to use variable PLC text below

The actual recipient address string in the PLC at DT200 is:
(FPWIN-Pro header: max={D200_5_u}  act={DT201_5_u})

DT200: 
Note: Enter new address with < > characters (max. 48 characters)

The actual email text string in the PLC at DT300 is:
(FPWIN-Pro header: max={DT300_5_u}  act={DT301_5_u})

DT300: 
Note: Enter max. 255 characters

Notes to the actual implementation:
* The characters < and > in PLC strings are displayed as special characters 1/4 and 3/4.
*  New-line characters ($n $r) in strings are not interpreted by the browser yet.
*  The predefined recipient addresses number 0 ... 3 are defined in the configuration of the FP Web-Server.

There is a FPWIN-Pro function blocks available which makes it easy for the PLC application program to control the email functions of the FP Web-Server.
M_CE_Lib.gif (15676 Byte)
Copyright © Panasonic Electric Works Europe AG