|
Task definition
The syslog protocol is in fact one of the simpliest loggers. An
application uses syslog to transfer messages, warnings or error
statuses to a remote server and, if required, file the messages in
a database.
The Industrial Ethernet Switches of the SCALANCE product family
already include syslog to send logging records.
The purpose of this application is to show the user how syslog
functionality can be used to display and file CPU messages on a PC
without being an expert in programming or having
special knewledge in SIMATIC S7 CPU.
Solution
To implement this automation task, function block
SYSLOG (FB100) has been developed. This function block
provides the following:
-
Emulation of the syslog
protocol in the user program
-
Establishment of an open
communication between control system and syslog
server
-
Sending syslog messages to a
syslog server
The function block is executable on all
current PROFIINET CPU and CP.
The present document contains the topics
below:
-
SYSLOG library description with function
block FB100
-
Direction on how to display the generated
syslog messages on a syslog server
-
Support in the SQL database
configuration to file the syslog messages.
Possible existing network
Downloads
| Contents of the
downloads |
Download |
Documentation
Library description: Sending SYSLOG messages with a SIMATIC S7
CPU |
 |
Code
STEP 7 SYSLOG block library |
 |
History
| Issue |
Modifications |
| 08/2011 |
First issue |
| 06/2012 |
Modification of the inputparameters;
the local port and the connection ID for the open communication are
not fixed any more. |
|