s7 200

gaannesh

Member
Join Date
Jan 2007
Location
*******
Posts
25
hello i have form fill packing machine with the s7 224 plc and proface HMI.

all the time parameters are set in the HMI according to the packaging .

So far from the beginning when we stop the machine for a week all the time values in the hmi becomes 0000.

all time values are stored in v memory .

how to prevent this problem of not losing the v memory data.

because everytime we resrart the machine i have re enter all the values again almost 25 time values
 
If the V memory data is programmed to be retentive then the values are stored for approx. 70 - 100 hours without power. You will need to install a battery to hold the data for longer period. A battery will help retain the data for almost 6 months. You need to order this part no.
6ES7291-8BA20- 0XA0 SIMATIC S7-200, BATTERY MODULE F. LONG-TERM BACKUP OF DATA PLUGGABLE IN MEMORY SUBMODULE SLOT OF S7-22X CPU

It should cost less than 200 AED.

I assume the V memory data is not lost if you power down for a day or two, the data is lost only when you power down for longer period of time. Is that correct?

DO you really need to power down the machine?
 
Hi

The Proface will have its own time of day clock, in addition to the PLC time of day clock.

Have you looked into using D Script to read the PLC clock and set the proface clock on start up?
 
there is battery installed in the cpu.

and the other v memory timer values in the plc program is not lost.

only what i enter in the hmi timer values only lost.
 
If u know the v memory addresses where the timer values are stored then define them as retentive in the PLC. Can u upload the program here?
 
LD Q0.5
ED
S V124.3, 1
Network 2
LD V124.3
TON T141, +8
Network 3
LD V128.6
A V105.3
A T141
S V121.7, 1
Network 4
LD V105.6
EU
S V123.7, 1
Network 5
LD Q0.7
EU
R V123.7, 1
Network 6
LD V123.7
A V128.6
A V121.7
TON T143, +10
Network 7
LD T143
O M11.7
ON V105.3
R V121.7, 1
R V124.3, 1
.
LD V105.6
AN V129.0
TON T104, VW150
Network 9
LD V105.6
MOVW VW170, VW168
-I +2, VW168
Network 10
LD T104
AN V127.0
TON T105, VW168
Network 11
LD T105
TON T130, VW154
Network 12
LD T130
EU
S V127.0, 1
Network 13
LD T104
AN V127.0
TON T108, VW170
Network 14
LD V127.0
AN V129.0
TON T128, VW188
Network 15
LD T128
EU
S V129.0, 1
Network 16
////
//
LD V105.6
AN V121.6
A V101.6
AN T120
TON T119, VW158
Network 17
LD T119
TON T120, VW160
Network 18
LD T119
ED
S V121.6, 1
Network 19
////
//
//
LD V105.6
MOVW VW150, VW198
+I +3, VW198
Network 20
LD V105.6
AN V129.2
AN T112
TON T111, VW198
Network 21
LD T111
TON T112, VW156
Network 22
LD V129.2
AN V127.1
TON T129, VW186
Network 23
LD T129
EU
S V127.1, 1
Network 24
LD T111
ED
S V129.2, 1
Network 25 //
LD V105.6
A V101.1
AN V120.1
AN T133
TON T121, VW180
Network 26
LD T121
TON T133, VW156
Network 27
LD V120.1
AN V120.4
TON T134, VW186
Network 28
LD T134
EU
S V120.4, 1
Network 29
LD T121
ED
S V120.1, 1

See in this example program for the timers T141,T143,values are set in the program and are not lost even if i shut down machine for one month also.
whereas timer T104,T105,T130,T108 are all set in the HMI And needed to alter this parameters according to the production requirement.
So if i stop the machine for 10 days and start again all this values goes to zero.
then i have to set all this parameters. nearly 25 timers in the hmi.
 
System Block

In your microwin program double click on the system block and check to see what v memory area has been setup to be retentive. If the values stay fairly constant you can add sm0.1(first scan) to move values into the vw areas so at least you have some default values in the timers and hopefully won't have to adjust all 25... Just some thoughts. Good Luck.
 
You can confirm whether the timer values stored in V memory is defined as retentive by checking the system block. See attached picture.

S7200_1.jpg


Another way would be to define the default values in the data block. Are these already defined in your program? Can you upload your complete program so that we can have a look?

S7200_2.jpg
 

Similar Topics

Hello, I am in possession of a WAGO PFC 200 750-8216 which I was successfully able to set up as a Modbus RTU Master to a slave device using...
Replies
0
Views
47
Hi, I have a 1214 on ip 192.168.0.100. This is connected to other modules through a switch on same network. I need to connect this to a company...
Replies
1
Views
97
Hi. I’m trying to upload program from existing PLC S7-1200. Create new project in TIA v15.1 then upload. After upload successfully, go online but...
Replies
5
Views
145
Hi all, I am trying to do Modbus communications via the CB1241 RS485 Communication Board on a Siemens S71200 PLC. I am using a 1215C CPU. After...
Replies
6
Views
183
Dear Friends, I have few Profinet slaves connected to S7-1200 over Profinet. I wish get alarms and disagnostics from the devices. (IO-Link...
Replies
3
Views
138
Back
Top Bottom