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


 
4-136 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
4
Example:
This example shows logic in a program block. When enabling contact OV_SWP is set, the constant
sweep timer is read, the timer is increased by two milliseconds, and the new timer value is sent back
to the PLC. The parameter block is in local memory at location %R3050. Because the MOVE and
ADD functions require three horizontal contact positions, the example logic uses discrete internal
coil %M0001 as a temporary location to hold the successful result of the first rung line. On any
sweep in which OV_SWP is not set, %M0001 is turned off.
| _____ _____ _____
|OV_SWP | | | | | | %M0001
|——| |———|MOVE_|—————————————————| SVC_|——————————| ADD_|——————————————————( )—
| | WORD| | REQ | | INT |
| | | | | | |
| CONST —|IN Q|—%R3050 CONST —|FNC | %R3051—|I1 Q|—%R3051
| 0003 | LEN | 0001 | | | |
| | 0001| | | | |
| |_____| %R3050—|PARM | CONST —|I2 |
| |_____| 0002 |_____|
| _____ _____
| M0001 | | | |
|——| |———|MOVE_|—————————————————|SVC_ |—
| |WORD | | REQ |
| | | | |
| CONST —|IN Q|—%R3050 CONST —|FNC |
| 0001 | LEN | 0001 | |
| | 0001| | |
| |_____| %R3050—|PARM |
| |_____|