GE 90-30 PLC Switch User Manual


 
D
GFKĆ1084B
DĆ21
Appendix D Sample L adder Programs
07—20—95 07:57 GE FANUC SERIES 90—30/90—20/MICRO (v6.01) Page 4
I D E N T I F I E R T A B L E
IDENTIFIER IDENTIFIER TYPE IDENTIFIER DESCRIPTION
—————————— ——————————————— ————————————————————————————————
CHAN4 PROGRAM NAME
|[ BLOCK DECLARATIONS ]
|
|[ START OF PROGRAM LOGIC ]
|
| (****************************************************************************)
| (* Overview: *)
| (* *)
| (* This program establishes 4 channels on start—up from a 90—30 to 4 *)
| (* different 90—30 or 90—70 TCP/IP Ethernet Interfaces and issues reads *)
| (* on each channel every second. This example may be customized for a *)
| (* variety of applications. *)
| (* *)
| (* This program automatically restarts the read command if an error is *)
| (* detected on a channel, and automatically restarts the read command if *)
| (* the Ethernet Controller is restarted. *)
| (* *)
| (* Note: If you plan to establish 16 channels on start—up, the error *)
| (* handling code must explicitly issue an abort command for a channel in *)
| (* error, because you are limited to 17 COMREQs in any one scan. *)
| (* *)
| (* Hardware Configuration: *)
| (* *)
| (* This ladder is written for a 90—30 Ethernet Controller installed in *)
| (* Rack 0, Slot 2 of a 90—30 system. The LAN Interface Status Word is *)
| (* configured for %I33. The IP address for this Ethernet Controller is *)
| (* 3.0.0.1. The IP address for the remote PLCs are 3.0.0.2 — 3.0.0.5. *)
| (* *)
| (* Rungs 5—12 use the BLKMV function to initialize data for the 4 Read *)
| (* Channel commands. *)
| (* *)
| (* Refer to Chapter 3 for more information on programming COMREQs. *)
| (****************************************************************************)
|
Program: CHAN4 C:\LM90\LAN\CHAN4 Block: _MAIN