Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 70 Operands: S : Start device for key input D 1 : Device for storing keyed-in value D 2 : Key output signal Explanations: 1. S will occupy 10 consecutive points; D 2 will occupy 11 consecutive points. 2. See the specifications of each model for their range of use. 3. For SA series MPU, S and D 2 do not support E, F index register modification. 4. This instruction designates 10 external input points (representing decimal numbers 0 ~ 9) starting from S . The 10 points are respectively connected to 10 keys.

By pressing the keys, you can enter a 4-digit decimal figure 0 ~ 9,999 (16-bit instruction) or a 8-digit figure 0 ~ 99,999,999 (32-bit instruction) and store the figure in D 1 . D 2 is used for storing key status. 5. There is no limitation on the times of using this instruction. However, only one instruction can be executed at a time. Program Example: 1. Connect the 10 input points starting from X0 to the 10 keys (0 ~ 9). When X20 = On, the instruction will be executed and the keyed-in values will be stored in D0 in bin form. The key status will be stored in M10 ~ M19.

0 1 3 2 4 5 6 7 8 9 PLC DVP-PLC APPLICATION MANUAL 7-74 Mnemonic Operands Function D TKY Ten Key Input Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F TKY: 7 steps DTKY: 13 steps S * * * * D 1 * * * * * * * * D 2 * * * PULSE 16-bit 32-bit SA SX SC EH S EH3 V SV2 ES EX SS EH3 ES EX SS EH3 ES EX SS SA SX SC EH SV SA SX SC EH SV SV2 SV2 X 20 TKY X0 D0 M10 0V +24V S/S X0 X1 X2 X3 X4 X5 X6 X7 X10 X11