Delta Electronics AH — 3.21 Communication Instructions

AH Motion Controller – Standard Instructions Manual _3 3-458 Flags Functions Execution COM1 COM2 transmission is done, the system will switch the flags SM96/SM97 to OFF automatically. SM98 SM99 Waiting to receive data. When the status of the SM98/SM99 is ON which means the PLC is waiting to receive data. The system sets, resets and executes automatically. SM100 SM101 When the reception is complete, the flag SM100 will be switched to ON automatically. Then users can start managing the data. After the management is done, reset the SM100 to OFF to make it available for further transmissions. The system sets and users need to reset.

SM102 SM103 An error occurs during the reception of the data in RS/MODRW instructions. Error codes will be recorded on the Error Log. The system sets, resets and executes automatically. SM104 SM105 Receiving timeout. If users had set the timeout setting (the specified time in the SR210/SR211, SR213/SR214) and the system experiences the receiving timeout, SM104/SM105 will be ON. Users will need to set the SM104/SM105 to OFF, once the problem is solved. The system sets and users need to reset. SM106 SM107 8/16-bit selection. ON is for 8-bit mode and OFF is for 16-bit mode. Users do the setups and the system will execute accordingly. SM108 SM109 Receiving complete. ON:

When the PLC receives words, the system will check if there’s any word containing interrupt characters (SR621/SR622, Low Byte). If yes, the system will run the interruption subroutine. And then the system will stop receiving data. OFF (Default): When the PLC receives words, the system will check if there’s any word containing interrupt characters (SR621/SR622, Low Byte). If yes, the system will run the interruption subroutine. After that the system can continue receiving data till the reception is complete (receiving data length is n). Users do the setups and the system will execute accordingly. SM209 SM211 Communication protocol changed.

According to the settings of the special data register, SR201, SR202, SR209, SR210, SR211, SR212, SR213, SR214, SR215, SR216, SR210, and SR212 can be used for resets. Set the SM209/SM211 to ON, and the communication protocols for COM1/COM2 will be changed according to the settings in the above special data registers. SM209/SM211 will be set to OFF automatically after the protocol is changed. Users set the flag to ON, and the system automatically resets the flag to OFF.