7 - 9 7 - 9
MELSEC-Q
7 COMMUNICATION WITH EXTERNAL DEVICES
(2) To enter data from the keyboard of a terminal
2) Specify the channel number of the interface to which the terminal used for keyboard input is
connected using the ZIDV instruction.
ZIDV <channel number>
3) Use the following instructions (functions) to enter data from the keyboard of the terminal.
Note, however, that some instructions (functions) cannot handle certain character codes.
4) Close the interface and switch the input source back to the console to finish entering data.
ZCLOSE # <channel number>
ZIDV 0
Please be careful not
to enter codes that
cannot be handled.
1) Open the interface and set the communication parameters according to the terminal to be used.
ZOPEN # <channel number>, <control table>
ZCNTL # <channel number>, 0, <control table>
INPUT
Character codes 0 through 1Fh (control codes), 2Ch (comma), and 7Fh
( Delete ) cannot be handled as data.
LINE INPUT
Character codes 0 through 1Fh (control codes) and 7Fh ( Delete )
cannot be handled as data.
INKEY$
INPUT$
(numerical expression)
Character code 0h cannot be handled as data.
Be careful about the following points when entering data from the keyboard of a terminal.
• The program cannot be stopped by pressing the Break / Ctrl + C keys when entering
data from an external device other than the console via the ZIDV instruction.
The code 03H is entered when the INKEY$ or INPUT$ function is used.
• If the DC1/DC3 control is activated for the interface to which the terminal is connected and a code
corresponding to DC1 or DC3 is entered, the DC1/DC3 control is carried out and data cannot be
entered.
• Do not use keys which are equivalent to the Esc key or the FDH code on the terminal.
Data may not be input correctly.
Содержание 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...