Industry Online Support
Technical Forum
3/6/2018 11:03 AM | |
Joined: 3/3/2015 Last visit: 7/5/2024 Posts: 1 Rating:
|
Dear Chris I write the below code for using online blocks, but i got an exception says "Unable to find the corresponding object". Do you know how to get this fixed. Imports S7HCOM_XLib Imports SimaticLib Module Module1 Sub Main() Dim S As Simatic Dim Prg As IS7Program Dim sta As S7Station S = New Simatic Prg = S.Projects("Online").Programs(1) MsgBox("There are " & Prg.OnlineBlocks.Count & " blocks.") For Each Blk As IS7Block In Prg.OnlineBlocks MsgBox(Blk.Name) Next End Sub End Module Best Regards Kenyon ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 3/20/2018 7:57:11 AMNew subject after splitting |
|
Follow us on