3 - 35 3 - 35
MELSEC-Q
3 LET'S CREATE AND EXECUTE A PROGRAM
3.10.2 Displaying characters to an arbitrary position
Characters can only be controlled in lateral direction on the screen with separating with
delimiters ";" and "," as well as the TAB and SPC functions. However, there may be a
case where you desire a text to be at any position in vertical direction as well. In such
case, the LOCATE instruction is used. The following shows the console screen
structure:
80 characters
25 lines for
the IBM/AT
compatible
personal
computers
The number of lines
that can be displayed
on the screen will
vary depending
on the console.
The LOCATE instruction directly specifies the display position using coordinates with
the upper left corner of the screen as (0,0). The display position is displayed first for the
coordinate in horizontal direction, and then the coordinate in the vertical direction.
25 Lines
24th line
(0,0)
This example is illustrated using an IBM/AT
compatible personal computer as the console.
The maximum coordinate value in the vertical
direction may vary if other consoles are used.
0th character
5th character
80 characters
79th character
7th line
0th line
(0,29)
(5,7)
(79,0)
(79,29)
Содержание 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...