PDA

View Full Version : S7 Datablocks


Robbe
October 11th, 2009, 06:56 AM
Hi all.
I'm trying to make a program, with a DB with integers. I read out a specific DB value, and add 1 to it with "ADD_I":

A I 125.0
FP M 4.0
JNB _001
L DB1.DBW 0
L 1
+I
T DB1.DBW 0
_001: NOP 0

When I simulate the program, and I monitor DB1, it adds 1. But when I close the simulator, it's 0 again.

When I would download the program to a real PLC, and I'll do this, and then I disconnect the PLC from the net, will the value's be 0 again to?

PeterW
October 11th, 2009, 08:21 AM
No, the simulator resets when closed down, the PLC is not dependant on any connection to maintain values.

Robbe
October 11th, 2009, 08:25 AM
No, the simulator resets when closed down, the PLC is not dependant on any connection to maintain values.

Thank you :)