Download PC communication module/utility Working under

Transcript
The following commands are newly available for the new DLLs so that the DLL can move
on different command lines according to a result of the communication.
“if” command
Label function
“End” command
TK7000/TE-M† series: response file (Verify the value that is stored for a specified ECR no.
in a specified file)
$if –r”¥cvw¥res.dat”[1]=0,NEXT
$if –r”res.dat”[1]=43,NEXT
QT/TE-H series: response file (Verify the value that is stored at first byte in a specified file)
$if –r”c:¥Programs Files¥cvw¥res.dat”=0,NEXT
$if –r”res.dat”=0,NEXT
Error log file (Verify the value that is stored in the last error log data)
$if –l”..¥cvw¥ecr.log”=0,NEXT
$if –l”ecr.log”=0,NEXT
a) If verified value is equal to a specified value at the right hand, then jump to a specified label.
If verified value is not equal, move to next command line.
b) The both “=” and “!=” can be used for equal character.
c) Specify a response file name in “” by using –r
d) Specify an error log file name in “” by using –l
e) It is possible to specify a location (directly) for the response file and the error log file
f) File format of the response file is different between the TK7000/TE-M† series and
QT/TE-H, however the DLL can detect the model by a definition line for ECR model in initial
file.
TK7000/TE-M † series: ECR no. is specified by adding [n] definition in the
command line. Without the definition, syntax error will happen.
QT/TE-H: The value stored in the first byte is always used for the verification.
g) If a specified file is nothing, the verification is always judged as equal. Then jump to a
specified label.
h) If an output label is nothing, the dll communication becomes error end.
An example for TK7000/TE-M† series
J,2
R,4,File004.txt
$if,-l"g:¥last¥ecr.log"=0,NEXT
R,2,File002.txt
$WAIT,10
R,5,File005.txt
J,3
$END
$,NEXT
X,15,File015x.txt
J,3
- 20 -