GE GFK-0726B manual Programming Serial Communications

Page 19

4

Programming Serial Communications

The program communicates through two ports using WRITE and READ terms. For ex- ample:

State: Get_Setpoint

Write ªEnter New Setpointº to Operator_Panel.

Read SetPoint1 from Operator_Panel, then go to Check_Setpoint State.

The Write Term sends the string of characters, Enter New Setpoint, to the port defined as the Operator_Panel. This same port is then monitored for input by the Read Term in the next Statement. The variable Setpoint1 is set to the value entered through the specified port.

In this example the WRITE and READ term information is directed to a particular port.

Operator_Panel in this case is defined in ECLiPS as Port 1 or Port 2. Use the ECLiPS, DE-

FINE or LIST menus to make the port definitions. The default names are Port_1 and

Port_2.

The Read and Write Terms may also be used without being directed to any particular channel, for example:

State: Choose_Recipe

Write ªEnter Recipe Numberº.

Read Recipe_Number, then go to StartBatch State.

Since no port is specified in this example, information is sent to the programming port. For a more detailed discussion of programming serial input and output, refer to the Ref- erence Section of the ECLiPS User's Manual.

4-2

State Logic Processor for Series 90-30 PLC User's Guide ± March 1998

GFK-0726B

Image 19
Contents GE Fanuc Automation GFL±002 GE Fanuc Automation North America, Inc Page We Welcome Your Comments and Suggestions Content of this ManualContents SampleLogicmasterConfigurationScreen Contents Chapter State Logic Processor Description GFK-0726B Physical DescriptionSeries 90-30 State Logic Processor Operational Description Selecting the Right Slot Chapter Installation and MaintenanceInserting the SLP Sample Logicmaster Configuration Screen ConfigurationBattery Serial Communication Problems Chapter TroubleshootingStatus LED is not on Steady Communications Problems with Another Serial Device Communications Problems with ECLiPS or OnTOPChapter SerialCommunications Programming Serial Communications Programmable Setup Options Serial Port SetupECLiPSor OnTOP Options Serial Port Parameters Mini Converter Kit Serial CableRTS CTS DTR GND PCM Other Cable OptionsCustom Made Cables No Connection Signal GroundWYE Cable Connections for Series 90-30 SLP HardwareSpecifications Chapter SpecificationsFirmware Specifications SLP I/O and Register Specifications