how to set simatic s7 D_TOD_DT in VAT

I code the following into OB32 Cyclic Interupt set to 1 second.

L LB 12
BTI
T "SystemData".YEAR
L "SystemData".YEAR
L 2000
+I
T "SystemData".YEAR

L LB 13
BTI
T "SystemData".MONTH
L LB 14
BTI
T "SystemData".DAY

L LB 15
BTI
T "SystemData".HOUR

L LB 16
BTI
T "SystemData".MINUTE

L LB 17
BTI
T "SystemData".SECOND

SystemData is a DB, The variables are all integers.
I use Citect SCADA to process/view the data.
You can easily view the DB integers from a VAT.
 
Friend...i know only LAD and FBD... this thing i cant go thro...
i want to view DT in VAT ......
plz post something for newbiessss....
 
OK in FBD to get the HOUR into a DB location named HOUR

Use a MOVE block

From LB 15 To DB1.HOUR
NOTE: If you don't want to use OB32 Cyclic Interupt you can put it in OB1. It will then usually occur more frequently adding more to the CPU load.
 

Similar Topics

No idea where to start to try figuring this out. I basically want to generate a cfg file based on equipment, but can't seem to figure out how to...
Replies
0
Views
1,444
Hey guys, I'm having a bit a trouble getting the time set on my HMI. On screen I have a Date/Time Field, I have it checked to use system time...
Replies
1
Views
6,161
Hey all. You guys don't know me, but you've given me a great deal of help over some time ^^ Anyhow. I was wondering if anyone knew of a way to...
Replies
13
Views
3,010
hi,i want to set timer from simatic hmi of siemens for s7-300 in hr min sec format for my project.how can i achieve this?pls help me
Replies
2
Views
2,163
Omron AD081-V1 Analog Input Card Offset & Gain Adjustment Entering Adjustment Mode 1. Set the input card in adjustment mode (Turn ON Dip SW No-1)...
Replies
0
Views
49
Back
Top Bottom