Pr (Fnc 77) - Mitsubishi FX1S Series Programming Manual

Melsec-f
Hide thumbs Also See for FX1S Series:
Table of Contents

Advertisement

FX Series Programmable Controlers
5.8.8

PR (FNC 77)

Mnemonic
PR
FNC 77
(Print)
16 BIT OPERATION
destination devices D
numbered in octal) and an execution/busy flag (D
Points to note:
a) The source byte-data maps the lowest bit to the first destination device D
the highest bit of the byte is sent to destination device D
b) The PR instruction may only be used TWICE in a sequence program. This instruction
should only be used on transistor output PLC's. The PR instruction will not automatically
repeat its operation unless the drive input has been turned OFF and ON again.
c) The operation of the PR instruction is program scan dependent. Under standard
circumstances it takes 3 program scans to send 1 byte. However, for a faster operation the
PR instruction could be written into a timer interrupt routine similar to the one demonstrated
for HKY on page 5-82.
d)8 byte operation has the following timing diagram. It
should be noted that when the drive input (in the
example X0) is switched OFF the PR instruction will
ce as e o pe ra tion . W he n it is r es ta rte d th e P R
instruction will start from the beginning of the
message string. Once all 8 bytes have been sent the
execution/busy flag is dropped and the PR instruction
suspends operation.
e) 16 byte operation requires the special auxiliary flag
M8027 to be driven ON (it is recommended that
M8000 is used as a drive input). In this operation
mode the drive input (in the example X0) does not
have to be active all of the time. Once the PR
instruction is activated it will operate continuously
until all 16 bytes of data have been sent or the value
00H (null) has been sent. Once the operation is
complete the execution/busy flag (D
turned OFF and M8029 the execution complete flag
is set.
Function
Outputs ASCII
T, C, D
data to items
Note: 8 byte mode (M8027=OFF)
uses 4 consecutive devices
such as display
16 byte mode (M8027= ON) uses 8
units
consecutive devices
32 BIT OPERATION
to D
). The final two destination bits provide a strobe signal (D
+0
+7
FX
Operands
S
PULSE-P
Operation:
Source data (stored as ASCII values) is read byte
by byte from the source data devices. Each byte is
m a p p e d d i re c t l y t o t h e f ir s t 8 c o n s e c u t iv e
, in octal).
+11
+7.
, octal) is
+11
Applied Instructions 5
FX
FX
1N
2N
1S
Program steps
D
1
Y
PR:
Note: uses
5 steps
10
consecutive
devices.
Operation
Flags
Complete M8029
Consequently
+0.
F X
-
6
(D+0 - D+7)
(D+10)
(D+11)
5-111
FX
2NC
,
+10
!

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents