SOFNET-S7 V3.3 OPC-Server<->VBasic

seppoalanen

Member
Join Date
Jan 2003
Location
Finland
Posts
1,132
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/
 
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/

Accually I have similar problem with you.
I can communicate my vb project with s71200 plc. But I couldnt find a solition with c# project.
I think you are trying to make an unnamed connection(without Simatic Configuration Editor) but you plc's addess is missing.
for exmaple:
Const S7Conn = "S7:[S7_TCPIP|VFD1|CP_H1_1:02.00,192,168,0,61,03.01,1]"

And what is your operating system (xp or win7)?

Best regards..
 

Similar Topics

Hi........... I want to integrate the Siemens S7-200 with a communications module CP243-1 to a Visual Basic apllication that will be responsible...
Replies
0
Views
2,142
I am running CCW 13 trying to upload to a micro 820 vers.12 I get an output message OPC server is unable to load project controller. Please help!
Replies
5
Views
223
I know nothing about simaticnet OPC server. I do know Kepware. I would only ever scale raw to engineering in the PLC, but it is possible to scale...
Replies
5
Views
215
If anyone has a crack for IBH OPC Server, please send it to: [email protected] Urgently. Thanks in advance!
Replies
1
Views
126
Folks, I have a client with an old ABB Advant / MOD300 system (v14.4). Around y2k I installed the ABB Industrial IT MOD300 OPC Server 1.1/2...
Replies
1
Views
176
Back
Top Bottom