Jump to content

Runtime error '5' !!!!


genacc_zach

Recommended Posts

Trying to connect laptop to PLC thru Remote Access so I can view screens real-time and get screen shots for a product manual.

All settings are correct, however when I press the "On Line" button, I keep getting a "Runtime error '5'" error message.

Can anyone help me here??!! I'm under the gun to get this manual finished!

Thanks!

Link to comment
Share on other sites

  • 2 months later...

Hi,

I am having the same problem.

I can successfully "Online test" but when I try and Remote access to the PLC it comes up with:

Run-time error '5':

Invalid procedure call or argument

and once i click "ok" visilogic closes.

I am running 64bit windows 7 I am trying to connect to the PLC via ethernet. The PLC is V1040.

I have re-installed Visilogic 9.3.0 twice as per the removal procedure in this forum with no luck correcting the issue, to make things worse this function works fine accessing the same project on a collegues computer hence I am thinking something has fallin over in my puter.

What am I looking for? This is "Bugging" me (excuse the pun), as I will be required to remotely control this through the access portal in a short while.

Any ideas?

Thanks

Rob.

Link to comment
Share on other sites

Resolved........................

Found the cause for the error.

It was down to the UA Content. Thanks to further searching on this forum. some how the UA content on my machine had been reset to default. Turning this feature off in Windows 7 has remedied this problem.

Hope this assists someone else with the same issue.

Cheers.

Link to comment
Share on other sites

  • External Moderators

I agreed with the supremacy of Windows XP buy anyway is not "Runtime error" a lack of debbuging in the Visilogic software?

I said that after to reinstall Visilogic again because of "runtime error 91"

Link to comment
Share on other sites

  • 10 months later...
  • 5 years later...

Hi, sorry for replying to such an old post but I am having similar issues (Get OPLC information works but when trying to get on-line I get the runtime error '5' message) on Windows 10/64 bit Using Unitronics Remote Access v 9.8.10.

Disabling UAC (setting it to "Never notify") did not help. Luckily running the program in Windows XP compatibility mode did fix the issue. 

However, some of the elements are not being displayed and instead show a red "X" (like temperature gauge displays but even simple buttons, see screenshot). Are they incompatible with Win 10 or do I simply need to download them? If so, what and where?

Thank you very much in advance,

Arend

RemAccScreenShot.png

Link to comment
Share on other sites

  • MVP 2023

I'm sure Flex is on the right track, but if not, then I would also be trying something really off field.  And also keep it in mind forever as well.

W10 has dropped many abilities in the Compatibility settings, and I had similar nightmares on a heap of older ( and not so old ) programs in getting them to display things correctly.  Really dumb stuff like some, but not all, control buttons in my CAD program appearing upside down, sideways or not there at all!

The solution is that the missing controls still work, you just have to do registry entries to make it so...another case of "the genius gang at Msoft has done it again!!"  In my case, the relevant thing that no longer appears in W10 was "Disable visual themes". 

The registry entry is this, but note that I have simply pasted my reg entry for my program here, only slightly modified it, so it will need to be tweaked for your instance of Remote Access......or whatever other program you might need it for in the future:  

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]

"C:\\Program Files\\*****Master folder name if there is one*****\\******Second folder name if there is one etc etc*****\\name of exe.exe"="~^ DISABLETHEMES DISABLEDWM RUNASADMIN WIN98 "

The C path needs to be correct.  If you have already done a compatibility setting then you will likely find an entry here already.  You just need to add in the DisableThemes bit.  Note in my example the other controls that I have in place as well.....run as admin, as W98 etc.

If you get this right, and it is indeed the problem, magically everything will come back to normal.  It is simply amazing to see it happen from such a small registry entry, when you have been lead to believe that all your expensive programs have been reduced to pieces of garbage....and you need to update....often to something that doesn't do your particular job anywhere near as well.

cheers, Aus

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...