Technical Forum

SIMATIC S7-1200

S7-1200 and DATA LOG

Thread Starter: MarISG   Started: 6/7/2012 12:54 PM   Replies: 2

« Previous thread Next thread »
Page 1 of 1 (3 items)
  6/7/2012, 12:54 PM
Joined 2/13/2012
Last visit: 12/21/2012
Posts: 1
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Pegaia wrote:
Hi, 

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

Note: this sample program was made with STEP 7 V11 SP1 upd1.
SP1 for STEP 7 V11
http://support.automation.siemens.com/WW/view/en/51696778
Update1 for STEP 7 V11 SP1
http://support.automation.siemens.com/WW/view/en/52258326?Datakey=47071380
Attachment: Data Logging.zip  (1710 Downloads)

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
Mar_ISG



=== Edited by O_Moderator @ 6/11/2012 9:36 AM [GMT ] ===
new subject after splitting from Sample program: S7-1200 and DATA LOG

Top
  6/12/2012, 4:47 PM
Joined 2/16/2011
Last visit: 5/17/2013
Posts: 222
Rating:
Rated: Excellent [4.07 out of 5 / rated 15 time(s)]. (15) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,

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.
Top
  6/12/2012, 4:57 PM
Joined 7/7/2010
Last visit: 5/22/2013
Posts: 1979
Rating:
Rated: Excellent [4.01 out of 5 / rated 200 time(s)]. (200) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Saving to internal memory or memory card?

Helpful? Rate it.
Solved? Post it.
Top
Page 1 of 1 (3 items)
Actions