KMS-310/400 Supervisor's Manual
6-11
You must execute the MATRIXCLOSE: command when exiting the script to release the
memory allocated to the matrix file. This frees the memory used by the matrix to the
pool of available memory.
This is a sample script used to OPEN a matrix file for coordinate input. It also calls a
subroutine titled SITESCAN. The SITESCAN routine actually reads the coordinates and
moves to the DEFINED site.
//:SUBROUTINE FOR READING FEATURE COORDINATES
MARK:NANO5
MATRIXOPEN:V00 5 100 "MTX\T313SITE.MTX"
CALL:1 SITESCAN
MATRIXCLOSE:V00
JUMP:1 EXITMARK
//:SUBROUTINE FOR MOVE FROM ONE SITE TO ANOTHER
//:MAKE V01 AS THE CURRENT ROW # IN THE MATRIX AND START
FROM ROW #1
//:WITH THE MATRIX OPENED, READ THE MATRIX COLUMNS
MARK:SITESCAN
MATH:V01=0
MARK:NEXTPOS
MATH:V01=V01+1
MATRIXVALUE:V00 1 V01 V02
MATRIXVALUE:V00 2 V01 V03
MATH:V15=V02=0
JUMP:V15 EXITSCAN
MOVEPOLZ:V02 V03
PAUSE:2
CALL:1 MEASURE
PRINT:"% ",V88
LOOP:1 NEXTPOS
MARK:EXITSCAN
RETURN:
The last RETURN: command returns control to the calling code, which then performs a
MATRIXCLOSE: command to free the memory used by the matrix.
Summary of Contents for KMS-310
Page 10: ...Contents viii...
Page 33: ...System Overview Product Overview Subsystem Overview Functional Overview 3...
Page 51: ...User Interface Overview Software Controls Software Organization 4...
Page 119: ...Creating Automated Scripts Overview Script Creation Script Locator Script Commands 6...
Page 266: ...7 48 Chapter 7 Operation...
Page 292: ...8 26 Chapter 8 Maintenance...
Page 293: ...Error Messages System Error Messages Script Error Messages 9...
Page 297: ...Glossary...
Page 304: ...I 4 Index...