Mitsubishi Electric MELSEC-Q/L Programming Manual page 515

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents