Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 76 Operands: S : English letter to be converted into ASCII code D : Device for storing ASCII code Explanations: 1. S : enter 8 Engligh letters by using WPLSoft on computer or enter ASCII code by HPP. 2. S in SA series MPU only accepts A, B, C, D, E, F, G, H, the 8 English character. 3. See the specifications of each model for their range of use. 4. Flag: M1161 (8/16 bit mode switch) 5. If the execution of this instruction is connected to a 7-segment display, the error message can be displayed by English letters. Program Example: 1. When X0 = On, convert A ~ H into ASCII code and stored it in D0 ~ D3.

X0 b15 b0 D0 D1 D2 D3 48H (H) 47H (G) Lower 8 bits Upper 8 bits DVP-PLC APPLICATION MANUAL 7-88 Mnemonic Operands Function ASC ASCII Code Conversion Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F ASC: 11 steps S D * * * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV SV2 ASC A B C D E F G H D0 42H (B) 41H (A) 44H (D) 43H (C) 46H (F) 45H (E)