4-150 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K
4
SVCREQ #9: Read Sweep Time from Beginning of Sweep
Use SVCREQ function #9 to read the time in milliseconds since the start of the sweep. The data is
in 16-bit Word format.
Note
Of the CPUs discussed in this manual, Service Request 9 is supported only
by 90-30 CPUs, beginning with Release 8.0.
The parameter block is an output parameter block only; it has a length of one word.
time since start of sweep address
Example:
In the following example, the elapsed time from the start of the sweep is always read into location
%R5200. If it is greater than the value in %R5201, internal coil %M0200 is turned on.
| _____ _____
|%Q0102 | | | |
|——| |———| SVC_|——————————| GT_ |—
| | REQ | | WORD|
| | | | | %M0200
| CONST —|FNC | %R5200—|I1 Q|——————————————————————————————————————————( )—
| 0009 | | | |
| | | | |
| %R5200—|PARM | %R5201—|I2 |
| |_____| |_____|
|