PDA

View Full Version : S7 200 weeklyTimer help


electricman
April 27th, 2008, 01:04 AM
I want to use old www.s7-200.net (http://www.s7-200.net) weekly timer, but i dont know where i but next config?


//CONFIG_1
VB100 2#00000010 //ON
VB101 7
VB102 15

Etc.......

I use Step 7 microwin.

That s7-200 web page is closed and that why i must ask help here if some can help me?

moggie
April 27th, 2008, 01:59 AM
Not sure about the S7-200.net time function but have a look at the at the attached library
There is a "Day and Time" fuction that will help.

electricman
April 27th, 2008, 02:03 AM
Not sure about the S7-200.net time function but have a look at the free utilities from http://www.************/

There is a "Day and Time" function that can be set to give an output for any time/day of week.

What www address? That address is something wrong :)

moggie
April 27th, 2008, 02:12 AM
Sorry about the address, but I have uploaded the zip file instead.

electricman
April 27th, 2008, 04:46 AM
I try that zip paket but when i try trasfer program to my cpu coming error:


Compiling Program Block...
MAIN (OB1)
Network 3, row 1, col 2: ERROR 52: A contact must precede the output instruction.
SBR_0 (SBR0)
WeekTmr_tmp2 (SBR1)
Weekly_timer (SBR2)
WeekTmr_tmp1 (SBR3)
DATETIME_String (SBR4)
INT_0 (INT0)
Block Size = 0 (bytes), 1 errors

moggie
April 27th, 2008, 05:07 AM
This means that you must have a "contact" to the EN input of the block.
Use "open contact" of SM 0.0

http://www.plctalk.net/qanda/uploads/S7-200.JPG

electricman
April 27th, 2008, 05:21 AM
I do like you example picture but still coming error, but different error:

Compiling Program Block...
MAIN (OB1)
SBR_0 (SBR0)
S_C (SBR1)
Day_And_Time_ALARM (SBR2)
Network 1, row 1, col 3: ERROR 18: (operand 2) V-Memory not allocated for library. Select right mouse menu item 'Library Memory...' from the Program Block in the instruction tree.

moggie
April 27th, 2008, 10:14 AM
You have to allocate some V Memory for the "block".

Right click on "Program Block" in the "tree"
Then select Library Memory

http://www.plctalk.net/qanda/uploads/S7-200_1.JPG

Then click "Suggest Memory" or enter your own VB Area.
The block requires 60 Bytes of V Memory

http://www.plctalk.net/qanda/uploads/S7-200_3.JPG

electricman
April 27th, 2008, 12:00 PM
I try that and it works, but not good my project.


I need timer what have like:
- monday-sunday
- On 6:00
- Off 23:00

http://www.saunalahti.fi/toturki/weekly.jpg
I dont understand where i can input that config text where setting that time settings V100, VB101, VB102, etc....

I make home control system where coming weekly timer what handeld outside lamps and car heating winter time and that why i need like weekly timer.

moggie
April 27th, 2008, 12:29 PM
Use the files I sent you twice, once to make the On time and Once to make the Off time.

see sample,
http://www.plctalk.net/qanda/uploads/s7-4.JPG

504bloke
April 27th, 2008, 12:36 PM
I try that and it works, but not good my project.


I need timer what have like:
- monday-sunday
- On 6:00
- Off 23:00

http://www.saunalahti.fi/toturki/weekly.jpg
I dont understand where i can input that config text where setting that time settings V100, VB101, VB102, etc....

I make home control system where coming weekly timer what handeld outside lamps and car heating winter time and that why i need like weekly timer.

Do you mean you want it to come on at 6.00 on monday and go off at 23.00 sunday

or

On at 6.00 and off at 23.00 monday through to sunday ?

electricman
April 29th, 2008, 12:46 PM
I got that work, thanks all helpers.


Do anybody know how i get nubitek Time_Utils date string displayed my hmi panel? Is"t i use P_String or &VB0 what i read to hmi panel?

And what read command is right to hmi panel?