11 - 420 11 - 420
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Reading the ON/OFF status of the CS (CTR), DSR (DR), RS (RTS), DTR (ER)
and CD control signals
Control table format definition
Element position
Item
Description
%(0)
Processing code
Specify the processing code.
%(1)
CS (CTS) and DSR
(DR) control signals
Read the status of the CS (CTS) and DSR (DR)
control signals into the lower and higher bytes,
respectively.
%(2)
RS (RTS) and DTR
(ER) control signals
Read the status of the RS (RTS) and DTR (ER)
control signals into the lower and higher bytes,
respectively.
Processing Code 33
%(3)
CD control signal
Read the status of the CD control signal into the
lower byte.
• This processing code is used to read the ON/OFF status of the CS (CTR), DSR
(DR), RS (RTS), DTR (ER) and CD control signals of an open communication
channel.
• Specify 33 for the processing code.
• The CS (CTR) control signal cannot be read for the RS-232C interface
(CH1/CH2).
Because the DSR (DR), DTR (ER) and CD control signals are not included in
RS-422/485(CH3), they cannot be read for the interface.
• The ON/OFF status of each control signal is expressed in the following manner
using the higher and lower 8 bits:
1:ON
0:OFF
Status of
control signal
(Ignore these bits.)
It is convenient to use the RDSET instruction to read the bits since only
the least significant bit of the lower and higher bytes in the array elements
is used for the ON/OFF status of each control signal.
%(1)
Higher byte
Can be read by the instruction
RDSET(8, %(1)).
Lower byte
Can be read by the instruction
RDSET(0, %(1)).
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...