Sample ProgramsFP2 Serial Data Unit8 − 58.1 Sample Programs8.1.1.2 BCC Automatic Addition Sent ProgramIn this program, when a command is set in a data register and X20 is turned on, the BCCis added automatically after the command, and the data is sent.DT0: Address at which command is storedDT1: Number of command bytes (excluding BCC)For this program, the serial data unit should be installed in slot 0.X1, K0 , K251 , K7 , DT200F150 READX20R0DF, K0 , I0DT0 , I1K 0 , K1R0R0 Y10F151 WRTR0M %01#RDD00100 , DT100F95 ASC ,, K 17 , DT1F0 MVX0Y10M 00101⊔⊔⊔⊔⊔⊔⊔ , DT106F95 ASC ,, H 0 , DT108F6 DGT , H 210, H 0 , DT109F0 MV, K 100 , DT0F0 MVR0(CALL 0)DFSpecifies the FP2 serial dataunit in slot no.0.Internal relay (R0) is turned on attiming of send condition (X20).Commands are stored.Command storage addressNumber of command bytesBCC creation routine callData is written to address 1 ofshared memory (sent buffer of CH1).After sending has begun, the send-ing directive continues until sendinghas been completed.Data is read from address 251 of theshared memory (received buffer ofCH1) at the timing of the receptioncompleted flag (X1).is written to the shared memory address 1.Specifies the FP2 serial dataunit in slot no.0.is read to the data register DT200 to DT206.The contents of 7−word of shared memoryaddress 251 to 257Starting with the data register indicated by I0.The word content specified by I1next page