Chapter 5 Applied Instructions 5-17 Instruction code Pulse Step Page Type API Function 16-bit 32-bit instruction 16-bit 32-bit number L 126 – DLOG Logarithm of a binary floating-point number – 9 5-89 M 45 MEAN DMEAN Mean 7 8 5-66 259 MMOV – Converting a 16-bit value into a 32-bit value 6 – 5-126 12 MOV DMOV Transferring a value 5 6 5-30 112 – DMOVR Transferring a floating-point value – 6 5-80 22 MUL DMUL Binary multiplication 7 9 5-41 174 – DMULR Floating-point multiplication – 9 5-107 N 29 NEG DNEG Taking the two’s complement of a number 3 3 5-48 O 221 OR& DOR& – S1&S2 5 7 5-111 223 OR^ DOR^ – S1^S2 5 7 5-111 222 OR| DOR| – S1|S2 5 7 5-111 242 OR DOR – S1<S2 5 7 5-114 245 OR DOR – S1≦S2 5 7 5-114 244 OR DOR – S1≠S2 5 7 5-114 240 OR= DOR= – S1=S2 5 7 5-114 241 OR> DOR> – S1>S2 5 7 5-114 246 OR>= DOR>= – S1≧S2 5 7 5-114 P 128 – DPOW Power of a floating-point number – 9 5-91 R 116 – DRAD Converting a degree to a radian – 6 5-81 154 RAND DRAND Random value 7 9 5-116 33 RCL DRCL Rotating bits leftwards with a carry flag 5 6 5-53 32 RCR DRCR Rotating bits rightward with a carry flag 5 6 5-52 50 REF – Refreshing the states of I/O devices 5 – 5-71 260 RMOV – Converting a 32-bit value into a 16-bit value 6 – 5-127 31 ROL DROL Rotating bits leftwards 5 6 5-51 30 ROR DROR Rotating bits rightwards 5 6 5-50 09 RPE – – End of a nested loop 1 – 5-27 08 RPT – – Start of a nested loop (only one loop) 3 – 5-26 S 202 SCAL – Scale 7 – 5-117 203 SCLP DSCLP Parameter scale 7 9 5-119 61 SER DSER Searching data 9 11 5-72 39 SFRD – Moving a value and reading it from a word device 7 – 5-59 35 SFTL – Moving the states of bit devices leftwards 9 – 5-55 34 SFTR – Moving the states of bit devices rightwards 9 – 5-54 38 SFWR – Moving a value and writing it into a word device 7 – 5-58 130 – DSIN Sine of a binary floating-point number – 6 5-93