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)
30 A%(0)=&H4241
40 A%(1)=&H4443
50 PRINT "A%(0)=";HEX$(A%(0))
60 PRINT "A%(1)=";HEX$(A%(1))
70 PRINT
80 B$=SPACE$(255)
90 ZMOVE TO B$,0,FROM A%( ),0,4
100 PRINT "B$=";B$
110 END
11 - 450
:
' Defines an array
:
' Stores the data
:
' Displays the data before being transferred
:
' Stores dummy data in the character string
variable
:
' Executes the data transfer
:
' Displays the data after being transferred
MELSEC-Q
11 - 450