Hello guys!
It's been a while since last time I posted here. I haven't been working with plc's for a while but no I'm up to my ears... I like it!
I have ran into a problem with a printer. I have to print year, week, day of month and hour. The year, day of month and hour is no problem I can read that directly from the PLC clock but the week number is a little harder to get... I've been looking at calculations I found on the web but it's like 200 - 300 lines of code on a computer so I'm a little worried about how this code will look if I convert it to the plc... 500 lines of code????
Have anyone in here calculated week numbers using the plc?
Btw: I'm using a Siemens 315-DP2 plc
Regards
Borte
It's been a while since last time I posted here. I haven't been working with plc's for a while but no I'm up to my ears... I like it!
I have ran into a problem with a printer. I have to print year, week, day of month and hour. The year, day of month and hour is no problem I can read that directly from the PLC clock but the week number is a little harder to get... I've been looking at calculations I found on the web but it's like 200 - 300 lines of code on a computer so I'm a little worried about how this code will look if I convert it to the plc... 500 lines of code????
Have anyone in here calculated week numbers using the plc?
Btw: I'm using a Siemens 315-DP2 plc
Regards
Borte