27: MODEM MODE« FC4A MICRO SMART USER ’S MANUAL » 27-13Sample Program for Modem Answer ModeThis program demonstrates a user program for the modem answer mode to move a value to a data register assigned to themodem mode and initialize the modem. While the telephone line is connected, user communication instruction RXD2 isexecuted to receive an incoming communication.The RXD2 instruction is programmed using WindLDR with parameters shown below:Source S1: Data register D10, No conversion, 2 digits, Repeat 10M8120 is the initialize pulse special internal relay.When the MicroSmart starts to run, M8055 is turned on to sendthe initialization string for the modem answer mode.The MOV instruction stores 1 to D8103 to enable user protocolafter telephone line is connected.M8077 (line connection status) is on while telephone line is con-nected.RXD2 receives incoming communication and stores received datato data registers starting with D10.M8120M8120REPS1 –1 D1 –D8103MOV(W)M8077D2D0S120 D1M0RXD2M8055