Download Type ACPU/QCPU-A (A Mode)(Common Instructions
Transcript
6. BASIC INSTRUCTIONS MELSEC-A DBCD Converts BIN data (0 to 99999999) of the device specified at S into BCD and transfers the result to the device specified at D. (S) + 1 (Upper 16 bits) 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 (S) (Lower 16 bits) (S) side BIN 99999999 0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 BCD conversion Execution Conditions ON BCD conversion command OFF Executed per scan P Executed only once Executed per scan Executed only once In the following case, operation error occurs and the error flag turns on. • When BCD instruction is used The data of source (S) is outside the range of 0 to 9999. • When DBCD instruction is used The data of source (S) is outside the range of 0 to 99999999. 6 − 40 Unit digits Tens digits Hundreds digits (D) (Lower 4 digits) (D) + 1 (Upper 4 digits) Operation Errors x 100 x 101 x 102 x 103 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 Thousands digits Ten thousands digits Hundred thousands digits Millions digits 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 Ten millions digits (D) side BCD 99999999 4 2 1 8 x 104 x 105 8 4 2 1 8 4 2 1 8 4 2 1 8 x 106 x 107 Be sure to set to 0 (Upper 5 bits)
Related documents
User`s Manual IB(NA)-66789-J
QCPU-A (A Mode) User`s Manual
MODEL 5000/5001
Transition from MELSECNET/MINI-S3, A2C (I/O
RocketRAID 2240 User Manual
- Highpoint
RocketRAID 3220 User Manual v1.0
- Highpoint
Transition from MELSEC-A/QnA (Large Type), AnS
RocketRAID 2224 User`s Manual
QCPU-A(A Mode)User`s Manual
Mitsubishi Electric FR-A7AY Specifications