GE GFK-1004B Network Router User Manual


 
H
H-9
GFK-1004B
Appendix H Sample Ladder Program
09—12—95 13:21 GE FANUC SERIES 90—70 (v6.01) Page 8
| << RUNG 15 >>
|
|ALW_ON
|%S00007 +—————+
+——] [———+ NE_ +—
| | INT |
| | |
|RD_CRSW | | +—————+
|%R00001—+I1 Q+—————————+ NE_ +—
| | | | INT |
| | | | | RD_ERR
| | | RD_CRSW | | %T00003
| CONST —+I2 | %R00001—+I1 Q+———————————————————————————————————————————(S)——
| +00000 +—————+ | |
| | |
| CONST —+I2 |
| +00001 +—————+
|
| (****************************************************************************)
| (* If WT_CRSW = 1, COMREQ complete without error. Set WRT_OK on one—shot *)
| (* to issue Read Channel Command. *)
| (****************************************************************************)
|
| << RUNG 17 >>
|
|ALW_ON
|%S00007 +—————+
+——] [———+ EQ_ +—
| | INT |
| | | WRT_OK
|WT_CRSW | | %T00005
|%R00002—+I1 Q+———————————————————————————————————————————————————————————(^)——
| | |
| CONST —+I2 |
| +00001 +—————+
|
| (****************************************************************************)
| (* If WT_CRSW is not equal to 0 and not equal to 1, an error occurred *)
| (* processing the COMREQ. Set WRT_ERR to restart the write/read esquence. *)
| (* *)
| (* Note: The CRSW can assume a value that is represented as a negative *)
| (* integer. Therefore, you must check for not equal to 1 rather than *)
| (* greater than 1. *)
| (****************************************************************************)
|
Program: LANRDWR A:\LANRDWR Block: _MAIN