Data transfer within the PLC
845
Part III FP Instructions
F147_PR
Parallel printout
Only bit positions 0 to 8 of d are used in the actual printout. ASCII code is output in sequence
starting with the lower byte of the starting area. Three scans are required for 1 character constant
output. Therefore, 37 scans are required until all characters constants are output.
Since it is not possible to execute multiple F147_PR instructions in one scan, use print-out flag
sys_bIsActive_F147_PR (ms-its:SysVars.chm::/64395.htm#o64401) to be sure they are not
executed simu
ltaneously. If the character constants convert to ASCII code, use of the F95_ASC
(see page 661) instruction is recommended.
PLC types
Availability of F147_PR (see page 1321)
Variable Data type Function
s ANY16 starting 16-bit area for storing 12 bytes (6 words) of ASCII
codes (source)
d WORD word external output relay used for output of ASCII codes
(destination)
For Relay T/C Register Constant
s WX WY WR WL SV EV DT LD FL -
d - WY - - - - - - - -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
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
R9033 %MX0.903.3 permanently a F147_PR instruction is being executed
Description
Outputs the ASCII codes for 12 characters stored in the 6-word area specified by s via the word
external output relay specified by d if the trigger EN is in the ON-state. If a printer is connected to
the output specified by d, a character corresponding to the output ASCII code is printed.
Data types
Operands
Error flags