Epson RC170 manual String Input

Page 38

5. Programming for Operator Panel

5.2.2 String Input

On the Operator Panel, function switch F1 to F6 inputs can be handled as string input. Function switches F1 to F6 each corresponding to six strings “a” to “f”. When the string input command (Input #23, a$) is executed in the application, strings corresponding to F1 to F6 switch inputs can be input.

String a$ a$ = “a”

Print

#23, “F1: UP”

Print

#23, “F2: DOWN”

Print

#23, “F3: LEFT”

Print

#23, “F4: RIGHT”

Print

#23, “Press any of switches F1 to F4.”

Input

#23, a$

If a$

= “a” then

Up processing: Write an up processing program here.

Else if a$ = “b” then

Down processing: Write a down processing program here.

Else if a$ = “c” then

Left processing: Write a left processing program here.

Else if a$ = “d” then

Right processing: Write a right processing program here.

Else

Input error processing: Write an input error processing program here.

Endif

You can display default data in the input area on the Operator Panel by substituting the string to be input with data before executing the Input command.

If the string to be input is not “a” to “f” when the Input command is executed, “a” is substituted and “F1” is displayed in the input area.

30

OP1 Rev.1a

Image 38
Contents OP1 RC170 Option Operator Panel OP1 Rev.1a OP1 RC170 Option Operator PanelForeword Trademarks Before Reading This Manual Manufacturer & SupplierTable of Contents Programming for Operator Panel Safety SafetySafety Precautions ConventionsPage Pendant to the Controller How to Reset an Emergency Stop StateEmergency Stop Electrical Specifications SpecificationsSpecification Tables Environmental SpecificationsPart Names and Functions Function switchesEmergency Stop switch Touch PanelHcom connector Specifications Power LampTeach Pendant connector Bypass Plug Tool connectorExternal appearance with mounting metal hasps Appearance and DimensionsAppearance without mounting metal hasps Panel Cutout Dimensions Mounting Metal Hasps DimensionsUnpacking InstallationInstallation GasketMounting Holes Installing Operator Panel Connecting Cables Teach Pendant Connection Operation OperationBasic Operations Startup screen Startup ScreenOperator Panel screen image Program Execution Screen How to set the Operator Panel to a control device Operation Serious Error stateError state Program numberExecute program Cancel programReset Pause programTask Monitor Screen I/O Monitor Screen Monitor screen 32-bit display OP1 Rev.1aOperation Monitor screen 8-bit display System History Screen Application Screen Application screen numerical value input Application screen text string inputSetup Screen Startup screen Setup screen LanguageOperation Change display after program execution Simple Display Program Programming for Operator PanelDisplay on Operator Panel Programming for Operator PanelDisplay Device Executing the display device selection commandData Input from Operator Panel Value Input String Input About Display Language Maintenance and Inspection Maintenance and InspectionContrast Adjustment Brightness Adjustment Firmware Update Case and Display CleaningGasket evenly sticking out Replacement ProcedureAbout Gasket Approximately 3.0 mm from the groove OP1 Rev.1aMaintenance Parts List Regular Maintenance InspectionBacklight Replacement