10.4.1.3. INPUT
10.4.1.3. INPUT
Explanation | Data is inputted from teach pendant screen or serial port in the form of variables. | ||
Grammar | INPUT <input direction>, <variable> , [<timeout time>] | ||
Parameter | Input direction | #0 : teach pendant #1 : serial port COM 1 #2 : serial port COM 2 ENET1 : Common Ethernet port (EN2) object 1 ENET2 : Common Ethernet port (EN2) object 2 ENET3 : Common Ethernet port (EN2) object 3 | |
Variable | Arithmetic variable, string variable | ||
Timeout | Arithmetic formula: When the designated time passes, it moves to the next row. When it is 0, the key value entered prior to the execution is saved to the parameter, and if there was no key entry, the parameter value is maintained. | Sec unit Integer 0.0~60.0 | |
Example | INPUT #1, V20!, 5 INPUT #0, V1$ | ||
Note | On teach pendant, input is completed by [ENTER]. On serial port, input is completed by recognizing NULL character (ASCII code 0). When a string that cannot be interpreted as a number when the numeric parameter is entered, the existing value of the parameter is maintained. When it is not entered within the designated time, the existing value of the parameter will be maintained. When the timeout period is set to 0, the value entered using the [Number] key of the teach pendant beforehand will be entered and if there is not key value entered, the existing value of the parameter will be maintained. |