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

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
248
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
96
Has anyone found a way to convert/replace/update the firmware on old Parker TS80xx series HMIs (i.e. TS8010, TS8006, etc) to accept Crimson...
Replies
0
Views
86
Hello, I have an automation direct d2 262 plc and C-more HMI EA9T6CL-R. I need to prepare a program, scheduled to be performed on a future date. I...
Replies
1
Views
112
Hi All, we've recently upgraded from FTView SE v10 to v12. Since the upgrade we've been having a problem where the HMI is slow to update tags in...
Replies
0
Views
85
Back
Top Bottom