Applications & Tools
S7-1200 and DATA LOG
6/7/2012 12:54 PM
« Previous thread
Next thread »
Page 1 of 1 (3 items)
6/7/2012, 12:54 PM
Last visit: 12/21/2012
I attached here a very simple sample program with Data Logging.
As didactical propose, I just call the relative blocks and mount a Watch Table to the manual command.
The block FB1 is used just to evaluate diagnose, it has no influence on the data log functions.
I suggest the follow sequence of commands in the Watch Table:
1 – Set a size for the data loggin: “Nr_Records”=10
2 – Create a File: “Cammand_Create”=1, and after “Cammand_Create”=0
3 – Give values for the logged variables, for example: “Data_Block_1”.Data.Int1 = 123; “Data_Block_1”.Data.real1=4,56;
4 – Write the open values to the File: “Cammand_Write”=1, and after “Cammand_Write”=0
Repeat the steps 3 (with different values) and 4, so many times you wish
5 – Open the Internet Browser and give the Ethernet address of the PLC as Address (10.100.120.3).
6 – Browse in Data Logs, and click in Download Icon
: this sample program was made with STEP 7 V11 SP1 upd1.
SP1 for STEP 7 V11
Update1 for STEP 7 V11 SP1
Thanks for the sample program.
I also had my share of problems though:
i noticed that if the number of records is above a certain number the log file is not created and there is no error code generated, in my case the maximum number was 5000 records.
has anybody encoutered this problem before?
Thanks and best
=== Edited by O_Moderator @ 6/11/2012 9:36 AM [GMT ] ===
new subject after splitting from
Sample program: S7-1200 and DATA LOG
6/12/2012, 4:47 PM
Gabriel de Ol...
Last visit: 5/17/2013
I Think the limit is the CPU memorie.
What CPU are you using?
How many data are in each record? And type? Int, Dint, real..
All the best
Gabriel de Oliveira
It Works? Rate It.
6/12/2012, 4:57 PM
Last visit: 5/22/2013
Saving to internal memory or memory card?
Helpful? Rate it.
Solved? Post it.
Page 1 of 1 (3 items)
© Siemens AG 2013 -
SIMATIC TDC, FM458, T400
SIMATIC S7-300 / S7-300F
SIMATIC S7-400 / S7-400H / S7-400F /FH
SIMATIC S5 / STEP 5
Communication / Networks
Industrial PC SIMATIC PC
SIMATIC Addons / IT4Industry
Process Control Systems SIMATIC PCS 7
Process Control System - APACS+
Process Control System - QUADLOG
Teleperm M / WinCC-TM / PCS 7 - TM
Other Process Control Systems
SINUMERIK / SIMODRIVES / MASTERDRIVES / SIMOTION / SINAMICS
SINUMERIK CNC automation systems
SIMODRIVE Converter system
Motion Control System SIMOTION
ROBICON Perfect Harmony - Medium voltage converters
DC converters SIMOREG
Process Instrumentation / Analytics / Weighing Systems SIWAREX
The new Threads
singh is king