seppoalanen
Member
Hi,
I have SOFNET-S7 V3.3 and my proplem not open from it helps, not from Siemens web-pages or from anywhere else. In Softnet have example VB-codes, but they not help me.
OPC-Server Helps and VB-samples have documented 'krypticly' and 'anemicly' without Exsambles. I can't open some meanings in samble VB-codes.
I tryed to do 'S7Conn'-string and that kind of definition have publiched in STARTUP.TXT file by COML S7 Conficuration manager who have produced: name: S7_TCPIP with S7-Protocol.
VFD1 is VitualFieldDevice-name and CP_H1_1 is somwhere in OPC-Server S7-Procol-sheet.
In the ReadVariable-method, how absolute-parameter must write? Anywhere have not exatly explained what is format for Input, Merker (Flag), DB-byte, -word, -doubleword etc..
In many files have contradictory explains.
In LOG-files and in helps same things are contradictory marked.
How must marked DB36's DINT-value who starts from databyte 0 and wants read 4-bytes as Long-type variable ?
What tells about Status-variable gu (Long) ?
Where have explained error numbers whoes functions return
for example '-1073446910' ?
---------------------------------------
Dim IValue As Variant: Dim OValue As Variant: Dim qu As Long
Const S7Conn = "S7:[S7_TCPIP|VFD1|CP_H1_1:]"
Private Sub Form_Load()
Dim S7 As Long
' DB36.DBD0 includes ID for Access-Handling
' DB36.DBD10 is feedback to PLC, handling is rdy, copy of DBD0
S7 = S7D.ReadVariable(S7Conn + "DB36.DBD0,4", IValue, qu, 100)
S7 = S7 + S7D.WriteVariable(S7Conn + "DB36.DBD10,4", OValue, 100)
S7 = S7 + S7D.Connect
Text4.Text = S7
End Sub
Best Recards, Seppo Alanen
http://www.alanen.info/
I have SOFNET-S7 V3.3 and my proplem not open from it helps, not from Siemens web-pages or from anywhere else. In Softnet have example VB-codes, but they not help me.
OPC-Server Helps and VB-samples have documented 'krypticly' and 'anemicly' without Exsambles. I can't open some meanings in samble VB-codes.
I tryed to do 'S7Conn'-string and that kind of definition have publiched in STARTUP.TXT file by COML S7 Conficuration manager who have produced: name: S7_TCPIP with S7-Protocol.
VFD1 is VitualFieldDevice-name and CP_H1_1 is somwhere in OPC-Server S7-Procol-sheet.
In the ReadVariable-method, how absolute-parameter must write? Anywhere have not exatly explained what is format for Input, Merker (Flag), DB-byte, -word, -doubleword etc..
In many files have contradictory explains.
In LOG-files and in helps same things are contradictory marked.
How must marked DB36's DINT-value who starts from databyte 0 and wants read 4-bytes as Long-type variable ?
What tells about Status-variable gu (Long) ?
Where have explained error numbers whoes functions return
for example '-1073446910' ?
---------------------------------------
Dim IValue As Variant: Dim OValue As Variant: Dim qu As Long
Const S7Conn = "S7:[S7_TCPIP|VFD1|CP_H1_1:]"
Private Sub Form_Load()
Dim S7 As Long
' DB36.DBD0 includes ID for Access-Handling
' DB36.DBD10 is feedback to PLC, handling is rdy, copy of DBD0
S7 = S7D.ReadVariable(S7Conn + "DB36.DBD0,4", IValue, qu, 100)
S7 = S7 + S7D.WriteVariable(S7Conn + "DB36.DBD10,4", OValue, 100)
S7 = S7 + S7D.Connect
Text4.Text = S7
End Sub
Best Recards, Seppo Alanen
http://www.alanen.info/