monitoring in s7

okke

Member
Join Date
Apr 2010
Location
Miercurea ciuc
Posts
12
Hi guys
I would like to make monitoring program in S7.
So, value of "Varabil" have write cycles of 5 minutes, in a new row in the DB.
Must to have 100 rows in DB for monitoring.
please help me!!!!!!
 
have half a solution,

A M 0.7
AN M 0.0
JNB _001
CALL "ATT"
DATA :=DB2.DBW0 // measured value word
TABLE:="dw fill".DB_VAR
S M 0.0
_001: A BR
= M 0.1
// ------------------------------------vetelezesi ido
AN M 0.7
L S5T#1S
SD T 1
NOP 0
NOP 0
LC T 1
T DB2.DBW 6
A T 1
= M 0.7
// ------------------------------------
AN M 0.7
R M 0.0
-----------------------------------------------------------
but the new question is how to convert Word Dword because the measured value is Dword
 
SCl

Do You have SCL ? I luv SCL for such things:::

I RISING EDGE CONDITION THEN
FOR i:= 100 TO 2 DO
ROW := ROW [i-1];
END_FOR;
ROW [1]:= MEASURED VALUE
END_IF;


It shifts the complete table 1 index further and enters the new value in index 1. If the Condition happens every 5 minuts, then you are logging in a FIFO way.

JesperMP his method in stl is also a good way.

Regard,
combo

have half a solution,

A M 0.7
AN M 0.0
JNB _001
CALL "ATT"
DATA :=DB2.DBW0 // measured value word
TABLE:="dw fill".DB_VAR
S M 0.0
_001: A BR
= M 0.1
// ------------------------------------vetelezesi ido
AN M 0.7
L S5T#1S
SD T 1
NOP 0
NOP 0
LC T 1
T DB2.DBW 6
A T 1
= M 0.7
// ------------------------------------
AN M 0.7
R M 0.0
-----------------------------------------------------------
but the new question is how to convert Word Dword because the measured value is Dword
 

Similar Topics

Our punch press has a SLC500 with HELM weight module (HM-604-WM) for tonnage monitoring. The operator enters the weight range on the HMI, which is...
Replies
9
Views
200
Hello, I have been trying to figure out how to connect to and monitor a DLR that is on a remote rack from my PLC. The local has a 1756-L81E and...
Replies
0
Views
115
Good day, we have 15 analog inputs, we need to log the data in excel and monitor these values through web browser. We're planning to go with Delta...
Replies
1
Views
110
I have several plc’s that I’d like to monitor Into our SCADA when the comms break or plc faults. These are (SLC-505 & Compact Logic PLC’s) I...
Replies
6
Views
738
Hi everyone using the profidrive in s7-1200 motion control under position monitoring :the tolerance time is the amount of time that the axis...
Replies
0
Views
525
Back
Top Bottom