S7- Date Extraction not working

PLC_talk

Member
Join Date
Oct 2006
Location
p
Posts
50
Hello All,
I am facing a wierd problem on S7-400 PLC.
I am trying to extract date using following simple logic & using PLCSIM to test it.
SFC1 reads the Date & time to a #cdt1 temp DT type. This temp #CDT is sent as input to FC^ DT_DATE function & the ouput I receive is 0 (DEC) or 1990-1-1,:mad: I checked up the clock setting & it is showing properly the PC current date & time.
The FC8 function works fine & shows the current time.
Is this PLCSIM problem or am I making mistake somewhere?

Any suggestions????
Thanks,
:)
 
Hello PLC_Talk;
Here is an extract from the following Siemens' support named :
"Difference between PLCSIM V5.0 and a "real" automation system"

http://support.automation.siemens.com/WW/llisapi.dll?csquery0=sfc1&aktprim=0&extranet=standard&func=cslib.csinfo&lang=en&nodeid0=10805405&objaction=csbrowse&objid=10805405&siteid=cseus&subtype=133000



Please note that the following SFBs and SFCs are NOPs (no-operations):
  • SFB12, SFB13, SFB14, SFB15, SFB16, SFB19, SFB20, SFB21, SFB22 and SFB23,
  • SFC7, SFC11, SFC25, SFC35, SFC36, SFC37, SFC38, SFC48, SFC60, SFC61, SFC62, SFC65, SFC66, SFC67, SFC68, SFC69 and SFC81
  • OB81, OB84, OB87 and OB90
So, SFC1 will not produce the processor time (it was never designed to read the PC clock anyway...).

Hope this helps,
Daniel Chartier
 
SFC1 is not in the list of nops and does work in plcsim (V5.2) with a 317 as the CPU. What exactly is this "FC^ DT_DATE" ?
 
Hello Guys,
Thanks for the information.
The weird thing is the same programmed worked next day! May be it just needed a PC reboot.
a. BTW FC^ is a typo, it's FC6

Thanks,
:)
 

Similar Topics

So we have a few associates that like to write the date in the file name when saving the program to back it up. We back up the programs every...
Replies
12
Views
184
Hello Everyone, I want to upgrade the firmware of Powerflex 40 from 5.001 to 6.002 can anyone tell me how can I do that?
Replies
0
Views
75
Hello, I'm hoping someone can help me with understanding how to set/change these data types. We recently swapped from Invertek to AB drives...
Replies
1
Views
136
From the Red Lion website, after some customer enquiries in the last week or so... Rev. March 25, 2024 [18:30] Just thought it might help a...
Replies
9
Views
317
How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
138
Back
Top Bottom