GE 90-30/20/Micro Universal Remote User Manual


 
4-142 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
4
Example:
In the following example, when enabling output %M0125 transitions on, the mode and timer value
of the system communications window is read. If the timer value is greater than or equal to 25 ms,
the value is not changed. If it is less than 25 ms, the value is changed to 25 ms. In either case, when
the rung completes execution the window is enabled. The parameter block for all three windows is
at location %R5051. Since the mode and timer for the system communications window is the
second value in the parameter block returned from the Read Window Values function (function #2),
the location of the existing window time for the system communications window is in the low byte
of %R5052.
| %I0001 %M0125
|——| |——————————————————————————————————————————————————————————————()—
|
| _____ _____ _____
| %M0125 | | | | | |
|——| |———| SVC_|——————————| AND_|——————————————————| AND_|
| | REQ | | WORD| | WORD|
| | | | | | |
| CONST —|FNC | %R5052—|I1 Q|— %R5060 %R5052—|I1 Q|—%R50061
| 0002 | | | | | |
| | | | | CONST —|I2 |
| %R5051—|PARM | CONST —|I2 | FF00 | |
| |_____| 00FF |_____| |_____|
|
|
| _____ _____ _____
| %M0125 | | | | | |
|——| |———| LT | +————————————| OR |————————————————|SVC_ |—
| |WORD | | |WORD | | REQ_|
| | | | | | | |
| %R5060—|I1 Q|———————+ %R5061—|I1 Q|— %R5052 CONST —|FNC |
| | | | | 0004 | |
| CONST —|I2 | CONST —|I2 | | |
| 0025 | | 0025 | | %R5052—|PARM |
| |_____| |_____| |_____|
|