SVC_REQ 57 Example
The following LD logic writes ten continuous bytes to nonvolatile storage, ranging from %G1 through
%G80. The value applied to IN1, 56, determines byte mode.
The parameter block starts at %R00050. The response words are returned to %R00056—%R00059.
Parameter Block for SVC_REQ 57 Example
Address + Offset
Address
Address+0
%R00050
Address+1
%R00051
Address+2
%R00052
Address+3
%R00053
Address+4
%R00054
Address+5
%R00055
Address+6
%R00056
Address+7
%R00057
Address+8
%R00058
Address+9
%R00059
Address+10
%R00060
Address+11
%R00061
GFK-2950C
Input Value
Definition
56
Data type = %G (byte mode)
0
Address written from, low word
0
Address written from, high word
10
Length = 10 bytes
0
Storage disabled conditions are enforced
0
Reserved, must be set to 0
Response status. The low byte contains the major error
NA
code; the high byte contains the minor error code.
NA
Count of items written: Words, bytes or bits.
NA
The number of bytes available in nonvolatile storage.
NA
NA
Reserved
NA
Reserved
February 2018
Chapter 6. Service Request Function
341