S7 300 Debug log?

Werner

Member
Join Date
Apr 2005
Location
IJsselstein
Posts
336
Hi!

In Visual Basic it is possible to print messages on a log window. (Debug.print). I'm wondering if it is possible to log messages in Siemens S7.

Example: When a logic flag is on I want to print a message like "Started belt on level 10". This way I could backtrack any problems. I prefer to log on my laptop and not use printers.
 
I've never tried it, or even looked into it, but maybe you could do it by creating a generic text printer to print to a file. I'm pretty sure S7Guy explained how to do this somewhere, but I can't find it at the moment.

I would think one you've created it and it's in Windows list of available printers, you should be able to select it as the logging printer in ProTool or WinCC.
 
If you have Protool RT, Win CC Flexible RT or Win CC then you allready have that functionality.

It is possible to log tags directly to a file, without any messages being displayed on the screen.
Setup an archive, which can be a simple CSV file, or it can be an ODBC database.
Then setup the relevant tags to be logged to the archive when they change state.

You can also set up messages. This means that they will be displayed on the screen (which you may like or not). The messages can also be written to an archive.


If you dont have any of the abovementioned softwares, then you could try the free Virtual Stopwatch utility from Runmode.
I have never tried it. But I would like to know how good it is.
 
Last edited:
I tried the Virtual stop watch. It's an exe. I couldn't see any use for it. If I want to log information in real time in a plc, I either put user defined events in the diagnostic buffer or create my own DB with a (large) circular buffer of time stamped message entries.
 
The DB + code to write messages is my own. The DB consists of (say) a 1000 element array of structures, the structure components are a message string and time and date data. Upon detecting a state change, (typ rising edge of an input), an FC is called with a message string. The string is inserted in the DB along with the current time and date and the index to the next free message area is updated.
 

Similar Topics

in allen bradley kinetix 300 drive first E31 error shows after resting drive E11 error occurs need solution to reset E11 fault code
Replies
4
Views
112
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
120
So basically i have 2 queries : 1. I have a program file of S7-300 PLC which i want to migrate in RSLogix500.In short i want to convert my simatic...
Replies
15
Views
282
Hi i using Kinetik 300 2097 driver control by EIP with using move absolute and incremental for motion , but i want to add same driver and motor as...
Replies
0
Views
66
Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
81
Back
Top Bottom