Posted 17 March 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
Posted 17 March 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
Posted 17 March 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
Posted 17 March 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
Posted 17 March @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 ScriptSub test StartApplication("\User\SysmacHMI\FTP\VisionView")End Sub Share this post Link to post Share on other sites
Posted Friday at 8:07 PM 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: Share this post Link to post Share on other sites
Posted Monday at 5:35 AM (edited) @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 Monday at 8:10 AM by Kam Share this post Link to post Share on other sites
Posted Monday at 8:36 AM 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. Share this post Link to post Share on other sites
Posted Monday at 12:18 PM 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
Posted Monday at 12:42 PM 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
Posted Monday at 4:04 PM 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. 2 people like this Share this post Link to post Share on other sites
Posted yesterday at 7:35 AM @photovoltaic it works! I'm surprised because Movie File it theoretically opens mp4 files according to the manual. I just have one problem, trying to somehow copy the file from FTP to the objekt and open that object via script above. Because if I take a picture and then open it and display using the script, no more pictures get overwritten under this file name in the FTP location as long as I have that picture open on the Hmi in Media Player. But I think that maybe it can be solved somehow by software@photovoltaic Thank you very much for your help! Share this post Link to post Share on other sites
Posted yesterday at 2:49 PM That makes sense, it probably can't overwrite an opened file. Try issuing the command: MediaPlayer.Stop() Programmatically I don't think you could have this automated, perhaps closing the image after a few seconds would work. Share this post Link to post Share on other sites
Posted yesterday at 3:51 PM Just a thought here... @photovoltaic I noticed in one of your previous posts when Kam was trying to open the software (VisionView) for the camera you had a clip of code using zk_browser. It may be possible to view the camera images live using the browser. Some of the latest firmware InSight Cognex cameras have an HMI web viewer built in. I do not know if zk browser would support the view. That would probably need tested using actual hardware. Is Internet Explorer available on the Windows CE install of the HMIs? "IExplore.exe" Is it possible to open a program like a browser contained in something like a frame on the HMI so it doesn't go full screen? Share this post Link to post Share on other sites
Posted yesterday at 3:59 PM (edited) I used ZK to view a camera's web interface in the original script. It might work on the OPs camera. The downside is you lose the HMI portion while the browser is open - it essentially takes over. You also lose the on screen keyboard so for initial setup you'll need an external keyboard. Edit: Also wanted to add - internet explorer is not included in the Windows CE image on the NAs. I have searched high and low for it. There are a few useful Windows applications available but no browser unfortunately. Edited yesterday at 4:04 PM by photovoltaic Share this post Link to post Share on other sites