Technical Forum

SIMATIC S7-1200

Sample program: S7-1200 and DATA LOG

Thread Starter: Pegaia   Started: 5/12/2011 1:32 PM   Replies: 98

« Previous thread Next thread »
12345678910» Page 1 of 10 (99 items)
  5/12/2011, 1:32 PM
Joined 7/24/2008
Last visit: 9/22/2014
Posts: 2494
Rating:
Rated: Excellent [4.33 out of 5 / rated 439 time(s)]. (439) 
Users with special expertise supervising conferences
Rated: Excellent [5 out of 5 / rated 10 time(s)]. (10) 
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  (5555 Downloads)



=== Edited by Pegaia @ 9/12/2011 12:26 PM [GMT ] ===
About the sw version for the sample program


Denilson Pegaia
Siemens Industry Sector
- Technical Support & Hotline -
Hotline – Atenção ao Cliente / Customer Care
Tel.: +55 11 3833-4040
E-Mail: atencao.cliente.ac.br@siemens.com

Top
Thank you for this post from:
  7/1/2011, 3:33 PM
Joined 4/8/2010
Last visit: 10/26/2011
Posts: 4
Rating:
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 
Thank you.
Can Iask a question?
-Where can change the file name of the datalog? (banana) .
Top
Thank you for this post from:
  7/4/2011, 10:20 PM
Joined 7/24/2008
Last visit: 9/22/2014
Posts: 2494
Rating:
Rated: Excellent [4.33 out of 5 / rated 439 time(s)]. (439) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

look at Data_block_1.Archiev Name

Denilson Pegaia
Siemens Industry Sector
- Technical Support & Hotline -
Hotline – Atenção ao Cliente / Customer Care
Tel.: +55 11 3833-4040
E-Mail: atencao.cliente.ac.br@siemens.com
Top
  8/2/2011, 1:00 PM
Joined 8/21/2010
Last visit: 9/16/2014
Posts: 4
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) 
Hello!
       How can I transfer the Logged data into 24 MB MMC?
Top
  8/2/2011, 7:22 PM
Joined 7/24/2008
Last visit: 9/22/2014
Posts: 2494
Rating:
Rated: Excellent [4.33 out of 5 / rated 439 time(s)]. (439) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

like stay on the manual, ..."

Memory resource usage:

● The data logs consume only load memory...."
So if your SD card is used as load memory, there will be the data saved.


Denilson Pegaia
Siemens Industry Sector
- Technical Support & Hotline -
Hotline – Atenção ao Cliente / Customer Care
Tel.: +55 11 3833-4040
E-Mail: atencao.cliente.ac.br@siemens.com
Top
  9/2/2011, 10:45 AM
Joined 5/10/2011
Last visit: 12/3/2011
Posts: 24
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) 
perhaps a stupid question, but when I look at your example it's OK, but I copied the programblocks to my project and some things don't work. When I compile the programblocks, I get errors "Library element version update not possible. Please select a valid library element version. The blocks in OB1 are red, meaning that they have a problem. When I look at the instruction-set for datalogging, they are grey instead of black.
The version is V11.0 and I bought it just 2 weeks ago.
What library is the problem and how can I solve this ?

greetings,

Bart
Top
  9/2/2011, 10:23 PM
Joined 7/24/2008
Last visit: 9/22/2014
Posts: 2494
Rating:
Rated: Excellent [4.33 out of 5 / rated 439 time(s)]. (439) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Do you have SP1 or SP1 update1?

Denilson Pegaia
Siemens Industry Sector
- Technical Support & Hotline -
Hotline – Atenção ao Cliente / Customer Care
Tel.: +55 11 3833-4040
E-Mail: atencao.cliente.ac.br@siemens.com
Top
  9/9/2011, 4:32 PM
Joined 5/10/2011
Last visit: 12/3/2011
Posts: 24
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) 
I have SP1, but the PLC wasn't upgraded to the new Firmware.
Now that part is working.
Now I was trying to use the internet browser for looking at the files, but I have a problem with the IP-addresses. Therefore I posted a new question.  

Perhaps a stupid question, after downloading a file, can you modify it and upload it ????



=== Edited by BSALV @ 9/9/2011 4:36 PM [GMT ] ===


Top
  9/9/2011, 6:44 PM
Joined 7/24/2008
Last visit: 9/22/2014
Posts: 2494
Rating:
Rated: Excellent [4.33 out of 5 / rated 439 time(s)]. (439) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

sorry but it is a one way run... From ladder -> Web -> PC. It is not possible go in other sequency.

Denilson Pegaia
Siemens Industry Sector
- Technical Support & Hotline -
Hotline – Atenção ao Cliente / Customer Care
Tel.: +55 11 3833-4040
E-Mail: atencao.cliente.ac.br@siemens.com
Top
Thank you for this post from:
  9/11/2011, 4:23 PM
Joined 9/9/2011
Last visit: 5/22/2014
Posts: 6
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) 
hi,
i have problem with your file because is impossible to open it with tiaportal software
regards 
zurlino alberto
Top
12345678910» Page 1 of 10 (99 items)
Actions