The hottest Kingview concise tutorial lesson 4

2022-10-16
  • Detail

In this course, you will:

· master the definition method of external devices  

· learn the method of defining variables  

& nbsp

& nbsp

& nbsp

& nbsp

& nbsp

define external devices

group king takes those devices or programs that need to exchange data with them as external devices. External equipment includes: lower computer (PLC, instrument, board card, etc.), which generally exchanges data with the upper computer through serial port; Other  windows  applications generally exchange data between them through  dde  External devices also include other computers on the network. Only after defining external devices can Kingview exchange data with them through i/o variables. In order to facilitate you to define external devices, Kingview has designed a "Device Configuration Wizard" to guide you to complete the connection of devices step by step. As shown in Figure G. This tutorial uses simulated PLC and Kingview communication. Simulation PLC can simulate PLC to provide data for the state king of foam particle unit. Suppose that the simulation plc is connected to the COM1 port of the computer. Select " com1" on the left side of the Kingview project browser, and double-click "new" on the right side to run the "Device Configuration Wizard". Select the "serial port" item of "simulation plc" and click "next"; Take a name for the external device, enter "plc1", and click "next"; Select the connection serial port for the device, assuming COM1, and click "next"; Fill in the equipment address, assuming 1, and click "next"; Please check whether the settings are correct. After confirmation, click finish. After the device definition is completed, you can see the new external device "plc1" on the right side of the project browser. When defining database variables, you only need to connect IO variables to this device, and it can exchange data with Kingview

[related map]

screen width-430)this. width=screen. Width-430 ">

the role of the database  

the database is the core part of" Kingview ". At this time, it will touch on the main design parameters such as material shrinkage. When touchsew is running, the production status of the industrial site should be based on the animated dy corrugated board lateral stiffness (Mn · m) The form is reflected on the screen, and the instructions issued by the operator in front of the computer should also be delivered to the production site quickly. All these are mediated by the real-time database, so the database is a bridge between the upper computer and the lower computer

method of defining variables  

for the "monitoring center" we will establish, we need to collect the liquid level of two raw material tanks and one reaction tank from the lower computer, so we need to define these three variables in the database. Because these data are collected by the driver, the types of the three variables are i/o real variables. These three variables are named "liquid level of raw material tank 1", "liquid level of raw material tank 2" and "liquid level of reaction tank" respectively. The definition method is as follows: select "data dictionary" on the left side of the engineering browser, double-click "new" on the right side, and the "variable properties" dialog box pops up; The dialog box is set as shown in Figure T: after setting, click OK. The other two variables "liquid level of raw material tank 2" and "liquid level of reaction tank" are established in a similar way& Nbsp

types of variables  

the variables defined when you make the application system and the predefined variables of the system are stored in the database. Variables can be divided into basic types and special types. Basic types of variables are divided into "memory variables" and "i/o variables". "I/o variables" refer to variables that require "Kingview"   to exchange data with other applications (including i/o service programs). This data exchange is bidirectional and dynamic, that is, during the operation of the "Kingview" system, whenever the value of the i/o variable changes, the value will be automatically written to the remote application program; Whenever the value in the remote application changes, the variable value in the Kingview system will also be automatically updated. Therefore, the data collected from the lower computer and the instructions sent to the lower computer, such as "reaction tank liquid level", "power switch" and other variables, need to be set as "i/o variables". Those variables that do not need to be exchanged with other applications and are only needed in the "Kingview", such as intermediate variables in the calculation process, can be set as "memory variables". Variables of basic types can also be divided into discrete, analog, long integer and string types according to data types. Memory discrete variables, i/o discrete variables: similar to Boolean variables in general programming languages, there are only two values: 0 and 1, which are used to represent some switching variables. Memory real variables and i/o real variables: similar to floating-point variables in general programming languages, they are used to represent floating-point data. The value range is 10e-38 to 10e+38, and the valid value is 7 bits. The internal conventional lifting belt (synthetic fiber lifting belt) stores integer variables and i/o integer variables: similar to the signed long integer variables in general programming language, which are used to represent the signed integer data, and the value range is  - to. Memory string variable, i/o string variable: similar to the string variable in general programming language, it is used to record some strings with specific meanings, such as name, password, etc. this type of variable can be used for comparison and assignment operations. There are four types of special variables: alarm window variables, alarm group variables, historical trend curve variables, and time variables. These special types of variables reflect the characteristics of "Kingview" system facing industrial control software and automatically generating human-machine interface

[related map]

screen width-430)this. width=screen. width-430">

Copyright © 2011 JIN SHI