Description
Fireye 85UVF1-1QD Communication Program
The Fireye 85UVF1-1QD is to prevent confusion of the start and end characters with the data characters. Because the start and end characters of the message are only 8 bits, the chance of data characters identical to the start or end characters appearing in the data area of the received message is very high, which may cause character confusion. It is possible to make some kind of data processing before sending, for example, selecting the start character and end character as some special values, and converting the digital character into BCD code or ASCII code before sending, so as to avoid the above situation, but it will increase the workload of programming and the time of data transmission.
The Fireye 85UVF1-1QD instruction makes it easy to send from 1 to 255 characters. if an interrupt program is connected to the end-of-send event, port 0 generates interrupt event 9 when the last character in the buffer has been sent and port 1 generates interrupt event 26. you can monitor the change of the send completion status bits SM4.5 and SM4.6 instead of sending with an interrupt. . The start and end characters in the data buffer are optional, and the “number of characters” in the first byte is the number of bytes to be sent, which is not sent itself.