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, 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,
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, 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,