Output Solutions ez-2000plus Guide De Référence
V#STRSUB,x,y,first,length - Copy part of Variable value
Syntax
V#STRSUB,x,y,first,length
Parameters
x= target variable
y= source variable
first= the position of first character
length= the number of characters
y= source variable
first= the position of first character
length= the number of characters
Description
Copy part of y value to x
Example
Copy year, month and day values respectively
from a whole date variable.
~MDELF,test
^Ftest
^Q60,0,0
^L
V00,16,PromptV0
V01,16,PromptV1
V02,16,PromptV2
V03,16,PromptV2
V#STRSUB,V01,V00,5,2
V#STRSUB,V02,V00,8,2
V#STRSUB,V03,V00,0,4
V#SET,UNPROMPT,V01
V#SET,UNPROMPT,V02
V#SET,UNPROMPT,V03
AE,47,57,1,1,0,0,Date:^V00
AE,38,115,1,1,0,0,Month:^V01
AE,38,155,1,1,0,0,Day:^V02
AE,38,205,1,1,0,0,Year:^V03
E
^Ktest
2005/01/31
E
~P1
from a whole date variable.
~MDELF,test
^Ftest
^Q60,0,0
^L
V00,16,PromptV0
V01,16,PromptV1
V02,16,PromptV2
V03,16,PromptV2
V#STRSUB,V01,V00,5,2
V#STRSUB,V02,V00,8,2
V#STRSUB,V03,V00,0,4
V#SET,UNPROMPT,V01
V#SET,UNPROMPT,V02
V#SET,UNPROMPT,V03
AE,47,57,1,1,0,0,Date:^V00
AE,38,115,1,1,0,0,Month:^V01
AE,38,155,1,1,0,0,Day:^V02
AE,38,205,1,1,0,0,Year:^V03
E
^Ktest
2005/01/31
E
~P1
Print result:
Date:2005/01/31
Month:01
Day:31
Year:2005
Date:2005/01/31
Month:01
Day:31
Year:2005
Vt, x, y, x_mul, y_mul, gap, rotation, data - Downloading character sets to memory
Syntax
Vt, x, y, x_mul, y_mul, gap, rotation, data
Parameter
t: the font name; from A ~ Z
x: Hori of top-left position of text (unit: dot, 1 mm = 8 dots or 12 dots)
y: Vert of top-left position of text (unit: dot, 1 mm = 8 dots or 12 dots)
x_mul: Horizontally magnified up to 8 times as large
y_mul: Vertically magnified up to 8 times as large
gap: Distance of the character (unit: dot, 1 mm = 8 dots or 12 dots)
rotation: The rotation of ASCII text from 0 to 3, the Asian text rotation form 0 to 7
0) 0
x: Hori of top-left position of text (unit: dot, 1 mm = 8 dots or 12 dots)
y: Vert of top-left position of text (unit: dot, 1 mm = 8 dots or 12 dots)
x_mul: Horizontally magnified up to 8 times as large
y_mul: Vertically magnified up to 8 times as large
gap: Distance of the character (unit: dot, 1 mm = 8 dots or 12 dots)
rotation: The rotation of ASCII text from 0 to 3, the Asian text rotation form 0 to 7
0) 0
° 1) 90° 2) 180° 3) 270° 4) 0° 5) 90° 6) 180° 7) 270°
data: Data string (up to 239 characters).
Description
Download Bit-Mapped font to memory. All parameters are all the same with text command
Example VA,5,10,1,1,1,0,data
The name of font “A”
Vxx, length, prompt - Store variable
Syntax
Vxx, length, prompt
Parameters
xx = a code name of the variable, from 00 ~ 99
length = number of characters (up to 98characters).
prompt = prompt of variable (maximum up to 60 characters)
length = number of characters (up to 98characters).
prompt = prompt of variable (maximum up to 60 characters)
Description
Define variables for further use. (refer to page38)
29