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

Page 38
Image 38
Epson RC170 manual String Input