File and Email Services
The new version 2.0 of TLServer provides a number of
File and Email services to the PLCs via the serial comm port. Basically a
PLC can send service requests to the TLServer using "tags" (which are ASCII
characters enclosed between the '<' and '>' characters) and the TLServer will
perform the service requests upon receiving valid commands. The PLC can easily send the
tags and ASCII data using the TBASIC PRINT #n command.
Since the PLC is the one which initiates the service
request, it does not need to be linked to the TLServer all the time unless it needs to
request a service from the TLServer. This makes it possible for a remote PLC to connect to
the TLServer via the telephone line using a modem and perform the required file or email
services, then disconnects itself from the TLServer so that other PLCs can take turns to
connect to the TLServer to request for services.
The following are the currently support file and
email services that the TLServer 2.0 provide for the super PLCs
1.
Write data to file
(the existing file will be overwritten) |
Format:
<WRITE [filename]>
data data data...
data....
</> |
2.
Append data to file
(new data are added to the existing file)
|
Format:
<APPEND [filename]>
data data data...
data....
</> |
3.
Email data to recipient
|
Format:
<EMAIL [email address]>
Sender: [sender email]
Subject: [subject text]
data data data...
data....
</> |
4. Read Data from File |
Format:
<READ [filename]>
</> |
5. Read Real Time Clock
From TLServer |
Format:
<READ RTC[]></>
|
Note:Use
the following link table in every page of this topic to navigate quickly
|