AH500 Programming Manual 4. The special data registers related to the instruction RS/MODRW: 6-385 Flag Description Action COM1 COM2 SM104 SM105 If users set the communication timeout (in SR210, SR211/SR213, and SR214) and no data is received after the timeout period, the flag is ON. After the problem is solved, users have to reset SM104/SM105 to OFF. The system automatically sets the flag to ON, and users reset it to OFF. SM102 SM103 An error occurs during the reception of the data by using the instruction MODRW or the instruction RS. The error codes are recorded in the error logs. The system automatically sets the flag to ON, and users reset it to OFF.
SM210 SM212 The choice between the ASCII mode and the RTU mode (used with the instruction MODRW) ON: The RTU mode OFF: The ASCII mode Users set the flag to ON and reset it to OFF. SM106 SM107 The choice between the 8-bit processing mode and the 16-bit processing mode ON: The 8-bit processing mode OFF: The 16-bit processing mode Special data register Description COM1 COM2 SR201 SR202 The communication address of COM1/COM2 on the PLC as a slave SR210 SR213 Communication timeout Suppose the setting value is larger than 0.
When the instruction RS/MODRW is executed, SM104/SM105 is set to ON if no data is received after the timeout period or the time intervening two characters exceeds the setting value. After the problem is solved, users have to reset SM104/SM105 to OFF. SR211 SR214 Number of times the command is resent If the communication timeout occurs, the communication command is resent to the slave several times. If the number of times the command is resent reaches the number of times which is set, the command will not be resent, and the communication timeout will occur in the slave.
SR621 X The interrupt character used in the instruction RS If the character received is the low 8-bit data in SR621, I32 will be triggered. If n is 0, the interrupt task will not be triggered. X SR622 The interrupt character used in the instruction RS If the character received is the low 8-bit data in SR622, I33 will be triggered. If n is 0, the interrupt task will not be triggered.