ActiveX PLC driver & VB6

zf_acs

Member
Join Date
Jul 2004
Posts
3
Hi All,

Do I need to place text field on the VB form for every single point I want to acquire from a PLC? I would need to record approx. 1500 tags.

Thanks.
 
Hej.

If You just need to log the data, then there is no need for textboxes.

It is op to You, where You what Your DATA to bee stored. You can make your own variables to hold the data or write them to a file.

Private Sub SaveData()

On Error GoTo SaveData_err

Dim intFilNr As Integer
Dim strFilName As String

intFilNr = FreeFile
strFilName = App.Path & "\" & App.Title & ".TXT"

Open strFilName For Output As #intFilNr
'(You should Use a loop to save the data)
Write #intFilNr, "Data"
Write #intFilNr, "Data"

Close #intFilNr

Exit Sub

SaveData_err:

MsgBox Err.Description

Exit Sub

End Sub

Best regard

Jesper
 

Similar Topics

Hi all, I am starting a new project and I need to access the info in a S7-400. I am newbie and know nothing about it, so I am sorry in advance...
Replies
3
Views
3,029
I WANT TO communication with Q PLC BY VB,WHO HAS VB COMMUNICATION ACTIVEX,THANKS. PLC Q SERIES COMMUNICATION UNIT QJ71C24 --------COMPUTER(VB)...
Replies
0
Views
6,764
Good day All, I am getting Error 1 when I try to open trends on my client. I tried to resolve the problem by creating .cab files but that did not...
Replies
2
Views
1,453
I'm testing the ability to make a custom ActiveX control for PVP7 applications to be able to write data out in an XML format. With my simple...
Replies
0
Views
645
I found a list of activex controls in view studio for which I simply cannot find any information on online. I don't know what they do. For example...
Replies
1
Views
966
Back
Top Bottom