Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How does Kingview establish variables for the input data storage of USB devices?
How does Kingview establish variables for the input data storage of USB devices?
There is a direct S7-200USB driver in Kingview. When defining equipment, choose PLC- Siemens -S7-200 series (USB). For more information, see the following:

abstract

Kingview supports USB communication with Siemens S7-200 USB

Hardware connection and configuration

1, the hardware connection between Kingview and PLC is shown in the following figure:

Kingview settings

1, define the Kingview device.

When Kingview defines devices, please select [PLC] > [Siemens] > [S7-200 series (USB)] > [USB].

2. Definition of device address and communication parameters

The address of the equipment is the same as that of the PLC, which is a decimal integer of 1- 127.

3. Kingview data dictionary -IO variable definition

1), register the list in Kingview.

Register Format Register Range Read and Write Attribute Data Type Variable Type Register Meaning Remarks

Vdddd dddd:0~9999 read and write bytes

short

USHORT

long

Floating-point input-output integer

PLC Power-off Storage in I/O Real V Data Area

Idddd

dddd:0~9999

read only

byte

Input-output integer

Digital quantity input area, read by byte

Idddd.x dddd:0~9999

X: 0~7 read-only BIT I/O discrete digital input area, read bit by bit.

qddd DD

dddd:0~9999

Direct reading recording

Byte input/output integer

Digital output area, operating by byte.

qddd DD . x dddd:0 ~ 9999

X: 0~7 reads and writes the BIT I/O discrete digital output area, and operates bit by bit.

Mdddd dddd:0~9999 Read and write byte I/O integer intermediate register area, operate PLC by byte (8 bits), and do not save.

Mdddd.x dddd:0~9999

X: 0~7 read and write bits

Input-output discretization

Intermediate register area, bitwise operation

3) Examples of register usage:

Register Name Read Write Attribute Data Type Variable Type Register Description

V 1000 read and write byte I/O integer v data area, address 1000.

I0 Read-only byte I/O integer number input areas I0.0 to I0.7

Read-only bit I/O discrete digital input area I0.4

Q 1 read/write byte I/O integer digital output areas Q 1.0 to Q 1.7.

Q0.7 read and write bit I/O discrete digital output area Q0.7

M 100 read and write byte I/O integer intermediate register area, address 100.

M 100.5 read and write bit I/O discrete intermediate register area address 100 bit 5.

Matters needing attention

1) The register range actually supported by PLC is related to the specific model.

2) The driver only supports 1 PLC device.

3) If there are other USB devices on the computer, the driver may not communicate with the PLC normally.

4) Sometimes it is impossible to communicate, so you can uninstall the USB device and plug it in again. Uninstall in Device Manager, and uninstall under "Ergonomic Input Devices". Make sure you can communicate with Siemens software.