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?
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?