6.5.7 Camera display

Introduction

Video display is advanced function in PI HMI, this object displays the camera screen in HMI, there are two modes, one is IP camera, and the other is USB camera. But IP camera requires settings in [Project settings], the detailed information, please refer to [Camera].

Note:

This function requires special HMI model, the detailed information, please contact sales.

Description for IP camera

1) Mode select

It is used for selecting modes; each mode uses different settings;

2) Use dynamic control instruction

Read a string from designated system address, and then combine the instruction to control the camera image.

When the dynamic control command is disabled, the complete camera control command need to be entered in order to display the camera contents.

3) Camera control instruction

This is for entering static instruction for camera, so that users can operation camera when HMI running;

4) Enable rtsp camera

This is another way to control camera, check it and set the function address.

Description for USB camera

1) Mode select

It is used for selecting modes; each mode uses different settings;

2) Camera settings

Function address: It occupies a word for functional operation. Different value means different operations, as below table shows:

Value

Operation

1

Enable the screenshot function

2

refresh camera display object

Camera state: It shows the current camera states. It occupies a word address. Different value means different operations, as below table shows:

Value

Operation

1

Load the camera function successfully

2

Failed to load the camera function

3

Camera does not exist

4

Camera is not running

5

Initialize the camera successfully

6

Failed to initialize the camera

7

Screenshot successfully

8

Failed to screenshot

9

Connected camera

10

Removed camera

11

The cache is full

12

The cache is abnormal

3) Screenshot storage

The current screenshots are only allowed on the SD card. When the SD card does not exist the system will cache the latest 10 screenshots.

Picture name: The name of the image is controlled by the address. The length of the file name is limited to 64 words. If the image name address is not set, it will be named according to the time and displayed as [YYYYMMDDHHMMSS.bmp] and screenshot format is [.bmp].

4) Global screenshot

If this function is enable, camera display object can perform the screenshot operation when HMI is running and save it as a .BMP image.

If this function is disabled, camera display object only performs the screenshot operation when it is displayed on screen.

5) Resolution

The resolutions of different types of USB cameras are different, and the user can select the corresponding resolution according to the camera. When the user is unsure of the resolution of the camera, start with the smallest resolution until the image is clear.

6) Use resolution size

Coordinate displays the object location in the screen, and size is the length and width of the object.

Note:

  1. When using USB camera, HD USB camera is not recommended, which is limited by the resolution displayed by HMI itself.

  2. When HMI is displayed horizontally, the USB camera screen displays normally. If select vertical display, USB camera can't display normally. (USB camera can only display normally when the display Angle of HMI is 0.)

  3. One HMI is only allowed to connect with one USB camera device. There is only one USB camera display part in the whole project screen, and the camera display part is not allowed to be placed on the public screen (1002: common Windows).

  4. Sometimes the USB camera may lose the image because of the influence in the field, then we suggest to PI9000 HMI and the recommended USB camera model.

  5. All below USB camera model have been tested by WECON to ensure the compatibility.

  • REB-USB 100W07M (supports 720p)

  • WX152HD (supports 720p)

  • RMONCAM G200 (supports 720p)

  • ASHU S300 (640*480)

Last updated