4

SVCREQ #11: Read PLC ID

Use SVCREQ function #11 to read the name of the Series 90 PLC executing the program.

Note

Of the CPUs discussed in this manual, Service Request 11 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 PLC ID 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 %I0001 transitions off, register location %R0099 is loaded with the value 11, which is the function code for the Read PLC ID function. The program block READ_ID is then called to actually retrieve the ID. The parameter block is located at address %R0100. Except for the enabling contact and function number, this is the same code used in the previous example.

%I0001%M0301 —— ——————————————————————————————————————————————————————————————()—

 

 

 

 

_____

 

__________

 

%M0301

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

WORD

__________

 

 

CONST —IN Q— %R0099

 

 

0011

LEN

 

 

0001

 

 

_____

 

 

 

 

 

 

.

 

 

 

 

Program Block READ_ID

 

 

_____

 

 

 

%Q0102

 

 

—— ——— SVC_—

 

 

REQ

 

 

 

 

%R0099—FNC

 

 

 

 

 

 

%R0100—PARM

 

 

_____

 

 

 

 

 

 

4-152

Series 90-30/20/Micro Programmable Controllers Reference Manual–September 1998

GFK-0467K

Page 233
Image 233
GE 90-30/20/Micro manual Svcreq #11 Read PLC ID