433
PR
1
2
3
4
4
6
7
8
7.9 Display instructions
7.9.1 PR
(b) If SM701 is OFF, everything from the device designated by to the 00
H
code will be the target of the operation.
(2) The number of points used by the output module is 10 points from the Y address designated by .
(3) Output signals from the output module are transmitted at the rate of 30 ms per character.
For this reason, the time required to the completion of the transmission of the designated number of characters (n) will be
30 ms n (ms).
At 10 ms interrupt intervals, the PR instruction executes data output, strobe signal ON, and strobe signal OFF. The other
instructions are executed continuously during a period between the above processings.
(4) In addition to the ASCII code, the output module also outputs a strobe signal (10 ms ON, 20 ms OFF) from the + 8
device.
(5) Following the execution of the PR instruction, the PR instruction execution flag ( + 9 device) remains ON until the
completion of the transmission of the designated number of characters.
(6) The PR and PRC instructions can be used multiple times, but it is preferable to establish an interlock with the PR
instruction execution flag ( + 9 device) so that they will not be ON simultaneously.
(7) If the contents of the device in which ASCII codes are stored changes during the ASCII code output, the modified data
after change will be output.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101
When SM701 is OFF, there is no 00
H
code within the device range
specified in .
–– –– –– ––
S
+1
41
H
(A)
42
H
(B)
43
H
(C)
44
H
(D)
+2
45
H
(E)
46
H
(F)
47
H
(G)
48
H
(H)
+3
4B
H
(K)
4C
H
(L)
00
H
(NULL)
4E
H
(N)
4F
H
(O)
50
H
(P)
49
H
(I)
4A
H
(J)
+4
+5
+6
+7
b15 b8
b7
b0
Head of output
Scheduled
completion
ASCII code output
Strobe signal output
Flag indicating PR
instruction in execution
Upper 8 bits Lower 8 bits
+8
+9
+7
Sequence program
+0
Output Y
42
H
44
H
46
H
48
H
4C
H
4A
H
41
H
43
H
45
H
47
H
4B
H
49
H
S
D
S
S
S
S
S
S
S
D
D
D
Used as interlock
Device where ASCII code is stored
Printer or
display device
D
Strobe signal
OFF
ON
30 ms
10 ms 10 ms 10 ms
10 ms 10 ms
Data output
Execution of sequence program
PR instruction processing
D
D
D
S