I'm learning PLC programming and recently encounterd a problem (i have OP3 and S7 CPU-315): when I enter a value in OP3 (input/output field), the panel displays the new value for a second and then reverts back to the previous value. It looks like the panel cannot update the value in PLC, so it does not accept the new value.
In my PLC program I have a DB:
DATA_BLOCK DG
STRUCT
b1, b2, b3 : BOOL;
END_STRUCT
BEGIN
END_DATA_BLOCK
Then in OB1:
Q0.1 := b1;
In the panel I have a tag that points to DG.b1. What am I doing wrong?
In my PLC program I have a DB:
DATA_BLOCK DG
STRUCT
b1, b2, b3 : BOOL;
END_STRUCT
BEGIN
END_DATA_BLOCK
Then in OB1:
Q0.1 := b1;
In the panel I have a tag that points to DG.b1. What am I doing wrong?