
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
52/226
DRAW.NO.
3.4.2
Read key
[Name]
pl_mdikey
[Syntax]
#include <pmclib.h>
short pl_mdikey(unsigned short * input_len, char * input_buffer);
[Arguments]
Input
---
Output
input_len: Pointer to the variable to which the number of keyed characters is
returned
input_buffer: Pointer to the array to which keyed characters are returned
[Return]
0: No key input
88H-FFH: Command key
[Description]
This function reads the key.
The function keys (E8H-EFH) cannot be read usually. However, if you
execute the function pl_fkey_ign(), you can read it.
You should set a pointer to the sufficient size of array to the
"input_buffer". About the command key codes, refer to the "3.4.1 MDI
Key Code Table".
Note that the key code of the "INPUT" key is 98H in the "C library for
conversion", but one is 0DH in the "C executor". Be careful when using
the both libraries.
[Example]
/* MAIN task */
#include <stdlib.h>
#include <pmclib.h>
#define INPUT_KEY 0x98
long get_number(void)
{
long number;
short ret;
unsigned short len;
char buf[256];
while(0 == (ret = pl_mdikey(&len, buf)))
{