Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Pt high-end plastic
Pt high-end plastic
First, you need to use the l command to read the signal of the port. Then, because the relationship between the real value and the signal read value is 10, it needs to be divided by 10. But in order not to lose decimal places, you have to convert it into floating-point numbers before division. Because Step7 does not allow the plastic data to be directly converted into floating-point numbers, you need to convert it into a long plastic number before conversion, and then save it in a data block. For example, if the signal reading address of your PT 100 is 256, then: lpiw256 itddtrl10.0/rtdb1.dbd0.