10.2 Camera
Last updated
Last updated
Introduction
1) Firstly, user needs to activate camera according to the manufacturer’s handbook. The ONVIF protocol should be activated, otherwise, it could not be used in WECON HMI;
2) Set camera username and password, it is recommended when user sets same username and password for more than one camera;
3) It is essential to make sure camera and HMI are in same LAN IP section;
When HMI and camera are connected directly, please use static IP for both HMI and IP camera. For example, HMI IP is 192.168.1.1, gateway is 192.168.1.1. Camera IP is 192.168.1.2, gateway is 192.168.1.1;
HMI | Camera | |
Type | Static IP | Static IP |
IP | 192.168.1.1 | 192.168.1.2 |
Gateway | 192.168.1.1 | 192.168.1.1 |
4) Username and password should be confirmed before using Do not try the incorrect username and password to search or connect the camera. After more than a certain number of tries, the camera will be locked. During this period, the camera will reject any connection. Generally, it takes half an hour to unlock. User needs to wait;
5) It is not suggested to connect the same camera with PI8000 and PI9000 series HMIs at the same time, otherwise IP camera will show blurred screen;
6) When the camera is disconnected due to network, it will try to reconnect for each 20 seconds interval. (frequent retry action may be considered as virus behavior);
Instructions for camera settings
1) Enable the camera function in Project settings as below;
2) Function address
For example, if the function address is HDW200, the functional address is divided as shown in Table 1, and result addresses are shown in Table 2.
Table 1
Address | Description | Length |
HDW200 | Username | 20 words |
HDW220 | Password | 20 words |
HDX240.0 | Falling edge trigger search | 1 bit |
HDX240.1 | Search status 0 means the search is complete; 1 means searching; | 1 bit |
HDW241 | First search result | 80 words |
HDW321 | Second search result | 80 words |
... | ... | ... |
Table 2
Address | Description | Length |
HDW241 | IP address | 16 words |
HDW257 | Password is correct | 1 word |
HDW258 | Device SN code | 43 words |
HDW301 | IP camera alias | 20 words |
The username and password here need to be entered manually. During searching camera, it will try to use this username and password to log in IP camera and store the result of login. If the password is correct, the “password correct” address will be displayed as 1 and the device serial number will be displayed. If the “password correct” address is 0, the device serial number would not be displayed.
3) Compile and download project, please click [Search Camera] button to get camera information in LAN
Camera object settings
1) Select camera display object, as below shows;
2) Select the Net Camera and check the RTSP option as below shows;
3) Function address
If the function address is set to HAW100, the function address is divided as shown in Table 3, and each bit of control address is assigned with a function, as shown in Table 4. Different values of camera status address indicate different meanings. As shown in Table 5, the screenshot address values mean different save path (Table 6). For example, the value is 1 means save path is Flash/IPCameraScreenShot.
Table 10
Address | Description | Length |
HAW100 | Username | 20 words |
HAW120 | password | 20 words |
HAW140 | Alias | 20 words |
HAW160 | Device serial number | 43 words |
HAW203 | Camera ID | 1 word |
HAW204 | Camera Control | 1 word |
HAW205 | Camera status | 1 word |
HAW206 | Screenshot save location | 1 word |
Table 4
Control address (bit) | Description |
HAX204.0 | Open camera |
HAX204.1 | Close camera |
HAX204.2 | Camera up |
HAX204.3 | Camera down |
HAX204.4 | Camera left |
HAX204.5 | Camera right |
HAX204.6 | screenshot |
HAX204.7 | Binding camera |
HAX204.8 | Set Alias |
Table 5
Address | Description |
0 | Disconnected |
1 | Connected |
2 | Connecting |
Table 6
Address | Description |
0 | Screenshot is saved into flash |
1 | Screenshot is saved into U disk |
2 | Screenshot is saved into SD card |
Operating procedures
1) Fill the camera ID address with the camera serial number searched by the camera search module, and trigger the binding address to fill username and password.
If the camera searching is disabled, then users need to manually enter the information of this camera, including username, password, and device serial number. Device serial number could be obtained by checking the label of camera.
2) If the IP CAMERA was triggered successfully, we could see the monitor screen and we could also set a alias for the camera and control the movement of the camera(up, down, left and right, some IP camera could not support the movement) or the screenshot. These operations could not be performed if camera off.
Supported model
1) Hikvision
DS-2CD1321D-I
DS-2CD3T20FD-I3W
DS-2CD1221D-I3
DS-2CV3Q21FD-IW
2) Dahua
DH-IPC-HFW1025D
DH-IPC-HFW1235M-I1
✎Note:
1) The alias of the camera is saved in the user database. The alias in old project is retained when downloading new project, if [user database] is selected. Otherwise the it will be deleted;
2) The IP camera screen could not be viewed by the remote access of HMI.;
3) PI8000 series HMI only supports only one IP camera, PI9000 series HMI could support four IP cameras in the same time;
4) This function requirs special HMI model, please consult the salesman before purchasing.
Demo download link
https://drive.google.com/open?id=10UR1cg8KDjcTvKJYgk1KR8z4YIApIsD8