212
Lamps, Touch Switches, Numeral Setting
Section 6-4
6-4-2 Notification of numeral setting input and touch switch status
The following describes the commands for notifying the host when numeral setting
is performed (i.e., when the contents of a numeral memory table are changed by
pressing a touch switch) or when a touch switch is pressed, when operating the
NT20S.
When a numerical value is input by numeral setting, the NT20S sends a Number
Input Notify Command to the host. The command sent differs depending on
whether a 4-digit or 8-digit number is input.
When a touch switch is pressed, the NT20S sends a Touch Switch Number Output
Command or Touch Switch Bit Output Command to the host. The command sent
depends on the set screen attributes.
4-digit Number Input Notify
Format
1B
[ESC]
45
E
d
1
**
d
2
**
n
1
**
n
2
**
n
3
**
n
4
**
d
3
**
0D
[CR]
d
1
d
2
d
3
: Numeral memory table address to which number was input (3-digit
hexadecimal) 000 to 07F
H
(0 to 127)
n
1
n
2
n
3
n
4
: Input number data (4-digit BCD)
Description A number with 4 transferred digits set with the NT20S number setting function is
reported to the Host with this command.
Caution: This command cannot be used for negative numbers. Always set â8â as the num-
ber of transferred digits when negative numbers may be input.
8-digit Number Input Notify
Format
1B
[ESC]
46
F
d
1
**
d
2
**
n
1
**
n
2
**
n
3
**
n
4
**
d
3
**
n
6
**
n
7
**
n
8
**
0D
[CR]
n
5
**
d
1
d
2
d
3
: Numeral memory table address to which number was input (3-digit
hexadecimal) 000 to 07F
H
(0 to 127)
n
1
n
2
n
3
n
4
n
5
n
6
n
7
n
8
: Input number data (8-digit BCD)
Description A number with 8 transferred digits set with the PT number setting function is re-
ported to the Host with this command.
When a negative number is written, n1 becomes âFâ (46
H
) and the number com-
prises 7 digits.