Kam

Omron NA5-7W001

12 posts in this topic

Good Morning,

I have a question about Omron's hmi NA5. In project I have vision system Cognex InSight 7800 linked via Ethernet/IP with NJ501-1320.

My question is, It is even possible to share last photo from came on Omron hmi?
 

Thanks,
Kamil.

Share this post


Link to post
Share on other sites

If the camera has a web interface there is a way to use a 3rd party web browser but you can't embed it in the screen. It is full-screen or nothing.

Share this post


Link to post
Share on other sites

I'm trying to solve this in another way, I save the photo from the camera in FTP, now I'm just looking way to read it on the HMI.
I don't know if it is possible to read it using a VB script, if I have the photo saved in FTP?

Share this post


Link to post
Share on other sites

The Omron NA5 runs an embedded version of Windows 10 from what I can see, so you should be able to load the Cognex Insight Viewer Application {VisionView}  and call it from a script.  

We did this on Panelview Plus HMI with Insight 5800, but I've never tried it in the Omron HMi World.

Share this post


Link to post
Share on other sites

@BobLfoot interesting idea, but I noticed that the  VisionView is in .exe format and must be installed, I have no idea how to install it on HMI panel.
Additionally, it takes up 500mb, unless You installed it on a Memory Card?

Because if the applications could be successfully installed, it could be called later using VB Script

Sub test
StartApplication("\User\SysmacHMI\FTP\VisionView")
End Sub

Share this post


Link to post
Share on other sites

You can call .exe files with VB. Obviously your directory and filename will be different from this web browser application but its worth a shot:

Capture.PNG

Share this post


Link to post
Share on other sites

@photovoltaic unfortunately, it probably won't work on this HMI panel.
While trying to start the application, receives this error:
"Error
VisionWiewDemo.exe.
TypeLoadException
The version of the assembly System,
Version-2.0.0.0, Culture=neutral,
PublicKeyToken=B77a5C5619334E08
9 cannot be loaded by this version of the Microsoft .NET Compact Framework."


In the Cognex manual, unfortunately Omron panels aren't in the list of items that VisionView supports.
This is not the way to do it, unfortunately.

I'm still trying to read .jpg from FTP but I haven't found a command with which to do that either, but probably on these panels it isn't possible

 

 

Edited by Kam

Share this post


Link to post
Share on other sites

I'm wondering if there is any way to refer in Root's to path of photo which is located in FTP instead of from the windows location.

sysmac.jpg

Share this post


Link to post
Share on other sites

I'm not surprised. I have tried many different applications on the NAs and almost none work. What you are thinking of doing with opening the FTP images will work. I have seen it done with VB script.

Share this post


Link to post
Share on other sites

Do you have any suggestion about the script?
I've tried a lot of different commands in VB that I knew and none worked

Share this post


Link to post
Share on other sites

I'll message you

Share this post


Link to post
Share on other sites

An update to those reading the thread - This is done with the VB command OpenMovieFile("VideoPage","MediaPlayer","/user/SysmacHMI/FTP/ImageFile.jpg")

This assumes:

Your Media Player Object has been named "MediaPlayer"

The Page it is located on is called "VideoPage"

There is a JPG file in your FTP directory called "ImageFile.jpg"

Adapt to suit your needs and call it with a nearby button.

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now