2/3/2011 8:02 AM | |
Posts: 23 Rating:
|
Dear Experts, I saw samples from siemens site and i try to follow as per their instruction to read CPU clock by using SFC1. my reference links are as follows. and also attach my problems. i spend around 2 hours to solve this problem but until now cannot. Kindly guide me plzzz. this is my first time using SFC https://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&lang=en&objid=22819915&caller=view wait for answer phyoe(new babies) Attachmentsfc1.pdf (843 Downloads) |
This contribution was helpful to
1 thankful Users |
2/3/2011 8:09 AM | |
Joined: 10/7/2005 Last visit: 9/10/2025 Posts: 3049 Rating:
|
Hello phyoemaung try this please: 1.) Give DB1 a symbolic name (via Symbol table or Block properties, e.g. name it DT_DB) 2.) Type in the following for SFC1's date and time output (note the inverted commas around the DB name and thedot between the DB name and thevariable name): "DT_DB".DATE_TIME I hope this helps |
Cheers |
|
2/3/2011 9:04 AM | |
Posts: 23 Rating:
|
Hello, Can provide sample prgs for hint? i got blur already. Thanks! kindly help me.. Bgrds, phyoe |
2/3/2011 9:27 AM | |
Joined: 3/21/2006 Last visit: 3/30/2025 Posts: 10239 Rating:
|
Try this one.
AttachmentSfc1.zip (1052 Downloads) |
2/3/2011 12:46 PM | |
Posts: 23 Rating:
|
Hello UMENCHO, Thanks for your great help. I gain a knowledge based on your attach. But after i modify it, I faced SF problem on CPU. Kindly take look on my attach prg and help me. Bgrds, Phyoe AttachmentSfc1_err.zip (345 Downloads) |
2/3/2011 2:43 PM | |
Joined: 3/21/2006 Last visit: 3/30/2025 Posts: 10239 Rating:
|
Easier way - check Diagnostic Buffer of CPU. Attach it here a copy. Best regards, Hristo Mihalev |
2/4/2011 5:00 AM | |
Posts: 23 Rating:
|
Hello Dear, I attach diganose buffer.zip. When i simulate with PLCSIM, well working and i can see current date and time in PLC. But I download it to Actual Hardware, SF red light come and CPU stoped (Caused by programming error OB not loaded or not possible or no FRB) Kindly advise me. Thanks! Bgrds, Phyoe AttachmentDiagnosic.zip (293 Downloads) |
12/18/2011 7:00 AM | |
Joined: 3/21/2006 Last visit: 3/30/2025 Posts: 10239 Rating:
|
Hello, Take a look at Date and time. Again and again I think. Best regards, Hristo Mihalev |
Follow us on