Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to program the analog input module of Wuxi Xinjie plc
How to program the analog input module of Wuxi Xinjie plc
First of all, you need to configure PLC, write the module into PLC, and then PLC can recognize it. Second, read the values of ID and QD. If it is a module, the first module is ID 100 and QD 100, and the second module is ID200 and QD200. If it is a BD board, it is ID 1000 and QD 1000.

For example, if the first module is an analog input module and the second module is an output module, the address of the first module is ID 100 and the address of the second module is QD 100.

The value read by the analog module is not the measured value of the sensor or 0- 10V or 4-20mA, but the digital value 0- 16383. Just do the conversion yourself. For example, 0- 10V corresponds to a water level of 0-20m, which means 5V corresponds to10m. Similarly, PLC recognizes 10 meter. Note that there is no decimal point, which is also the accuracy of the module. If the temperature is read as-100 to +200 degrees, actually-100 corresponds to analog 0, and +200 degrees is 16383.