Mitsubishi — 5.3 Handling of Numeric Values

5 Categories & Use of Application Instructions 1. Instructions which can be executed only once: API 52 MTR (SA/EH2/EH), API 56 SPD (ES/SA/EH2/EH3), API 69 SORT (SA/EH2/EH3), API 70 TKY (SA/EH2/EH3), API 71 HKY (SA/EH2/EH3), API 72 DSW (SA), API 74 SEGL (SA), and API 151 PWD (EH2/EH3). API 75 ARWS, API 80 RS, API 100 MODRD, API 101 MODWR, API 102 FWD, API 103 REV, API 104 STOP, API 105 RDST, API 106 RSTEF, and API 150 MODRW (ES/SA/EH2/EH3/SV/SV2 supports the instructions above). 2. Instructions which can be executed only twice: API 58 PWM (SA), API 72 DSW (EH2/EH3/SV/SV2). 3. Instructions which can be executed only 4 times:

API 57 PLSY (EH2/EH3/SV/SV2), API 58 PWM (EH2/EH3/SV/SV2), API 169 HOUR (EH2/EH3/SV/SV2). 4. Instructions which can be executed only 8 times: API 64 TTMR (EH2/EH3/SV/SV2). 5. In SA series MPU, there is on limitation on the times of using the high-speed output instructions PLSY, PWM and PLSR, bit only one high-speed output instruction will be enabled in every scan. 6. In EH2/EH3/SV/SV2 series MPU, there is no limitation on the times of using hardware high-speed counter instructions DHSCS, DHSCR and DHSZ, but when the three instructions are enabled at the same time, DHSCS will occupy 1 memory unit, DHSCR 1 memory unit, and DHSZ 2 memory units.

The total memeory units occupied by the three instructions cannot be more than 8 units. If there are more than 8 memory units occupied, the PLC system will execute the instruction that is first scanned and enabled and ignore the rest. 5.3 Handling of Numeric Values  Devices only with On/Off status are called bit devices, e.g. X, Y, M and S. Devices used exclusively for storing numeric values are called word devices, e.g. T, C, D, E and F. Bit device plus a specific bit device (place a digit before the bit device in Kn) can be used in the operand of an application instruction in the form of numeric value.  n = K1 ~ K4 for a 16-bit value; n = K1 ~ K8 for a 32-bit value.

For example, K2M0 refers to an 8-bit value composed of M0 ~ M7. Valid data M15 M14 M13 M12 M11 M10 M9 M8 M7 M6 M5 M4 M3 M2 M0 M1 Reset to 0 Transmit to Low byte D1 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b0 b1 Equals Low byte D1  K1M0, K2M0, and K3M0 are transmitted to 16-bit registers and the vacant high bits will be filled in “0”. The same rule applied to when K1M0, K2M0, K3M0, K4M0, K5M0, K6M0, and K7M0 are transmitted to 32-bit registers and the vacant high bits will be filled in “0”. DVP-PLC Application Manual 5-11 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1