Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 77 Operands: S : Device for storing ASCII code D : External ASCII code output points Explanations: 1. S will occupy 4 consecutive points. 2. D will occupy 10 consecutive points. 3. This instruction can only be used twice in the program. 4. D in SA series MPU does not support E, F, index register modification. 5. See the specifications of each model for their range of use. 6. Flags: M1029 (PR execution completed); M1027 (number of PR outputs) 7. This instruction will output the ASCII codes in the 4 registers starting from S from the output devices in the order designated in D . Program Example 1: 1.

Use API 76 ASC to convert A ~ H into ASCII codes and store them in D0 ~ D3 and use this instruction to output the codes in sequence. 2. When M1027 = Off and X10 goes On, the instruction will be executed. Designate Y10 (low bits) ~ Y17 (high bits) as the data output points and Y20 for scan signals. Designate Y21 for the monitor signals during the execution. In this mode, you can execute an output for 8 letters in sequence. During the output, if the drive contact goes Off, the data output will stop immediately and all the outputs will go Off. 3. During the execution of the instruction, when X10 goes Off, all the data output will be interrupted.

When X10 is On again, the output will be restarted. X10 X10 start signal Y10 ~ Y17 data T T T A B C D H T: scan time (ms) Y20 scan signal Y21 being executed DVP-PLC APPLICATION MANUAL 7-90 Mnemonic Operands Function PR Print (ASCII Code Output) Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F PR: 5 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 PR D0 Y10