11 - 450 11 - 450
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' This program transfers data in the numeric array variable A%( ) to the character string variable B$
20 DIM A%(9)
:
' Defines an array
30 A%(0)=&H4241
:
' Stores the data
40 A%(1)=&H4443
50 PRINT "A%(0)=";HEX$(A%(0))
:
' Displays the data before being transferred
60 PRINT "A%(1)=";HEX$(A%(1))
70 PRINT
80 B$=SPACE$(255)
:
' Stores dummy data in the character string
variable
90 ZMOVE TO B$,0,FROM A%( ),0,4
:
' Executes the data transfer
100 PRINT "B$=";B$
:
' Displays the data after being transferred
110 END
Содержание 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...