4

SVCREQ #10: Read Folder Name

Use SVCREQ function #10 to read the name of the currently-executing folder.

Note

Of the CPUs discussed in this manual, Service Request 10 is supported only by 90-30 CPUs, beginning with Release 8.0.

The output parameter block has a length of four words. It returns eight ASCII characters; the last is a null character (00h). If the program name has fewer than seven characters, null characters are appended to the end.

Low Byte

High Byte

 

 

character 1

character 2

 

 

character 3

character 4

 

 

character 5

character 6

 

 

character 7

00

 

 

address

address + 1

address + 2

address + 3

Example:

In the following example, when enabling input %I0301 transitions off, register location %R0099 is loaded with the value 10, which is the function code for the Read Folder Name function. The Program Block READ_ID is then called to actually retrieve the folder name. The parameter block is located at address %R0100. READ_ID is also used in the next example.

%I0001%I0301 —— ——————————————————————————————————————————————————————————————()—

 

 

 

 

_____

 

__________

 

%I0301

—— ———MOVE_—————————— READ_ID

WORD

__________

 

 

CONST —IN Q— %R0099

 

 

0010

LEN

 

 

0001

 

 

_____

 

 

 

 

 

 

.

 

 

 

 

.

 

 

 

 

.

 

 

 

 

Program Block READ_ID

 

 

 

 

 

 

%I0102

 

 

—— ——— SVC_—

 

 

REQ

 

 

 

 

%R0099—FNC

 

 

 

 

 

 

%R0100—PARM

 

 

_____

 

 

 

 

 

 

GFK-0467K

Chapter 4 Series 90-30/20/Micro Instructions Set

4-151

Page 232
Image 232
GE 90-30/20/Micro manual Svcreq #10 Read Folder Name