How to display smart camera images in real time in mappView interface?

Another possibility (with a big caveat) is to use the Image widget in mapp View. While this is a pretty straight-forward way to show the image on the HMI, the caveat is that the HMI client will have to be configured with the correct routing to be able to reach the camera directly.

To get this to work, start by binding the attribute “image” to the url of the camera:

http://IP_ADDRESS_OF_CAMERA:8080/jpg?q=QQ&t=TS

  • IP Address of the Camera: You’ve already specified a subnet for Ethernet traffic in your PLK network, e.g. 192.168.200.240 as shown below. In this example, for a camera that is configured for node number 1 on PLK, its IP address will be 192.168.200.1

image

  • QQ: Quality/compression factor for the JPG (try 50% to reduce the size of the image)

  • TS: this “timestamp” should be incremented once a new image is available to refresh the image on screen

On Windows, you can set the route by executing the following command on the CMD window:

route add 192.168.200.0 mask 255.255.255.0 PLC_IP_ADDRESS
(note that the subnet mask above is the same as configured for the PLK network)

In the near future, we’ll have a dedicated widget to make this whole process much easier.