5
4-7-5 Bit shift right [SFTR] .......................................................................................................... 139
4-7-6 Word shift left [WSFL]........................................................................................................140
4-7-7 Word shift right [WSFR]..................................................................................................... 141
4-8 DATA CONVERT ............................................................................................................................142
4-8-1 Single word integer converts to double word integer [WTD.DWTD]................................143
4-8-2 32 bits integer to 64 bits integer batch conversion [BDWTD] ...........................................144
4-8-3 Integer converts to float point [FLT, DFLT,FLTD]............................................................. 146
4-8-4 Integer to double precision floating point[DFLTD,QFLTD]...............................................147
4-8-5 Float point converts to integer [INT, DINT]....................................................................... 148
4-8-6 Double - precision floating point to integer[DINTD,QINTD]...........................................149
4-8-7 Single precision floating point to double precision floating point[ECON] .........................150
4-8-8 Single precision floating point to double precision floating point batch conversion [BECON]
.......................................................................................................................................................151
4-8-9 BCD convert to binary [BIN] ..............................................................................................152
4-8-10 Binary convert to BCD [BCD]..........................................................................................154
4-8-11 Hex converts to ASCII [ASCI] ..........................................................................................155
4-8-12 ASCII convert to Hex [HEX] ............................................................................................ 157
4-8-13 Coding [DECO] .................................................................................................................158
4-8-14 High bit coding [ENCO] ................................................................................................... 160
4-8-15 Low bit coding [ENCOL] ..................................................................................................162
4-8-16 Binary to Gray code [GRY] ...............................................................................................165
4-8-17 Gray code to binary [GBIN,DGBIN]................................................................................ 166
4-9.FLOATING NUMBER OPERATION ................................................................................................167
4-9-1 Floating Compare [ECMP,EDCMP]................................................................................... 167
4-9-2 Floating Zone Compare [EZCP]......................................................................................... 169
4-9-3 Floating Addition[EADD,EDADD] ....................................................................................170
4-9-4 Floating Subtraction[ESUB,EDSUB] ................................................................................. 172
4-9-5 Floating Multiplication[EMUL,EDMUL] ...........................................................................174
4-9-6 Floating Division[EDIV,EDDIV]........................................................................................175
4-9-7 Float Square Root [ESQR].................................................................................................. 177
4-9-8 Sine[SIN].............................................................................................................................178
4-9-9 Cosine[COS] ........................................................................................................................179
4-9-10 TAN [TAN]........................................................................................................................180
4-9-11 ASIN [ASIN] ..................................................................................................................... 181
4-9-12 ACOS [ACOS] .................................................................................................................. 182
4-9-13 ATAN [ATAN]...................................................................................................................183
4-10 RTC INSTRUCTIONS ...................................................................................................................184
4-10-1 Read the clock data [TRD]................................................................................................185
4-10-2 Write Clock Data [TWR]...................................................................................................186
4-10-3 Accurate clock BD board data read [MOV]......................................................................188
4-10-4 Accurate clock BD board data write [TO].........................................................................189
4-10-5 Clock data add [TADD] .....................................................................................................191
4-10-6 Clock data sub [TSUB]..................................................................................................... 192
4-10-7 Convert hour, minute, and second data to seconds [HTOS]..............................................194
tudonghoatoancau.com