Mitsubishi QD51 Programming Manual page 600

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Processing Code 128
11 - 430
Reading the printer status
Control table format definition
Element position
Item
%(0)
Processing code
%(1)
Printer status
• It is possible to read the status (terminal error, out of paper, and terminal
connection status) of a printer connected to an open parallel interface using this
code.
• Specify 128 for the processing code.
• The printer status is expressed in the following manner using the lower 8 bits of
%(1).
7
6
5
It is convenient to use the RDSET instruction to read the bit status since
only bits 0 to 2 of
%(1)
The statuses of the following signals of the parallel interface are read into printer
status.
Terminal error
Out of paper
Terminal connection
How the ON/OFF status of each signal is controlled depends on the printer; see
the manual of the printer used.
Description
Specify the processing code.
Read the printer status into the lower byte.
4
3
2
1
0
(Bits marked with X are ignored.)
Terminal error
Out of paper
Terminal
connection
status
%(1) are used for the status of each signal.
Lower byte
Can be read by
RDSET(2,
%(1)).
Can be read by
RDSET(1,
• • • •
ERROR
• • • •
PE
• • • •
SLCT
MELSEC-Q
1: Normal
0: Terminal error
1: Out of paper
0: Paper supplied
1: Connected
0: Not connected
Can be read by
RDSET(0,
%(1)).
%(1)).
11 - 430

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents