4

SVCREQ #23: Read Master Checksum

Use SVCREQ function #23 to read the master checksums for the user program and the configuration. The SVCREQ output is always set to ON if the function is enabled, and the output block of information (see below) starts at the address given in parameter 3 (PARM) of the SVCREQ function.

When a RUN MODE STORE is active, the program checksums may not be valid until the store is complete. Therefore, two flags are provided at the beginning of the output parameter block to indicate when the program and configuration checksums are valid.

For this function, the output parameter block has a length of 12 words with this format:

Master Program Checksum Valid (0 = not valid, 1 = valid)

Master Configuration Checksum Valid (0 = not valid, 1 = valid)

Number of Program Blocks (including _MAIN)

Size of User Program in Bytes (DWORD data type)

Program Additive Checksum

Program CRC Checksum (DWORD data type)

Size of Configuration Data in Bytes

Configuration Additive Checksum

Configuration CRC Checksum (DWORD data type)

address address + 1 address + 2 address + 3 address + 5 address + 6 address + 8 address + 9 address + 10

Example:

In the following example, when input %I0251 is ON, the master checksum information is placed into the parameter block, and the output coil (%Q0001) is turned on. The parameter block is located at %R0050.

 

_____

 

%I0251

%Q0001

—— ———

SVC_——————————————————————————————————————————————————————————( )—

 

REQ

 

 

CONST —FNC

 

+0023

 

 

%R0050 —PARM

 

_____

 

 

 

 

4-162

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

GFK-0467K

Page 243
Image 243
GE 90-30/20/Micro manual Svcreq #23 Read Master Checksum