High−level Instructions
3 − 388
Precautions during programming
Multiple F147 (PR) instructions cannot be executed at the same time. The program should be set up so that
the printout flag (R9033) is used during execution of F147 (PR) instruction to inhibit simultaneous execution.
The ASCII code conversion instruction [F95 (ASC)] can be used to convert character constants (M) to ASCII
codes.
Character constants (M) can be input only with programming tool software.
A transistor−type output unit/board is necessary.
When this instruction is executed, of the WY area specified by D, zero <off> is set for Y_9 to Y_F.
Flag conditions
・Error flag (R9007): Turns on and stays on when:
・Error flag (R9008): Turns on for an instant when:
− The ending area for storing ASCII codes exceeds the limit.
− The trigger of another F147 (PR) instruction turns on while one F147 (PR)
instruction is being executed.
・Printout flag (R9033): Turns on and stays on while a F147 (PR) instruction is being executed.
Connection example
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
Y8
:
COM
DATA1
DATA2
DATA3
DATA4
DATA5
DATA6
DATA7
DATA8
STROBE
GND
Printer
(centronics interface)
Transistor output type
(output: 9 points or more)
Data setting
Example: ASCII code for 10 character A, B, C, D, E, F, G, H, I and J
ASCII HEX code
Data register
ASCII character
DT5
LF
DT4
JI
DT3
G
DT2
FE
0D 0A 4A 49 48 47 46 45
DT1
DC
DT0
BA
44 43 42 41
ASCII codes
Control data for printer
CR H