Download "user manual"

Transcript
APPENDIX
Appendix 1
Method for Increasing Minimum Working Set
Size of Personal Computer
The following explains the method and sample programs for increasing the minimum working set size of the personal
computer when an error with code 77(004DH) occurs due to the execution of the MELSEC data link library function.
The personal computer board driver runs using the minimum working set size in the memory area reserved in the user
program. Some user programs may use a larger size for the minimum working set. Therefore, if the minimum working
set size for the personal computer board driver cannot be reserved, an error code 77 is returned.
In this situation, increase the minimum working set size in the user program before executing the MELSEC data link
library function. ( Page 135, Appendix 1.2)
The minimum working set size of 200KB is reserved at startup of the personal computer.
When applying the sample programs introduced in this manual to the actual system, ensure the applicability and
confirm that they will not cause system control problems.
Appendix 1.1
Processing overview of sample program
 Obtain the user program ID with the GetCurrentProcessID function.
 Using the ID obtained in step , obtain the user program handle with the OpenProcess function.
 The current minimum and maximum working set sizes can be obtained by executing
the GetProcessWorkingSetSize function.
 Set a size larger than the minimum working set obtained in step  and execute
the SetProcessWorkingSetSize function.
 Release the user program handle with the CloseHandle function.
134