Current location - Quotes Website - Personality signature - Who knows how the communication modbus address between Schneider M340PLC and Kingview modbusTCP corresponds?
Who knows how the communication modbus address between Schneider M340PLC and Kingview modbusTCP corresponds?
1. Convert the 16 base address of the equipment to 10 base address: 0003H( 16 radix, h is useless, but it just means that the number is 16 radix) =0003.

2. The device defines PLC-Modicon-Mobus-RTU- serial port.

3. Variable definition: IO real type is selected as the variable type, and the connecting device can choose by itself, and the register is filled in 40003 or 40004. By the way, if the starting bit of your device is 0, you should add a 1 after the address. See PLC-MODbus-rtu in Kingview device driver help for details.

4. Finally, the choice of data type is also very important. Generally, short type, UShort type or Long type are selected (the data type definition of Kingview is very confusing, which cannot be completely attributed to software development, and there are also problems in equipment production. Don't compare with the strict type definition of programming languages such as C.

5. Try it with the equipment testing function of Kingview. In addition, when the device is defined as short, Kingview will read the data of one register, and when it is defined as long, it will read the data of two registers continuously. This will be very different when the device data is stored in high and low bits.