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