18
EA KIT129-6
ESC
X
n1
Wait/pause
This command suspends the EA KIT129 for
n1
/10 seconds.
Example: $1B
$58 $0A
After this command the EA KIT129 waits for a second before the next command is processed.
ESC
Y
M
n1
Define as an output
n1=count of I/O lines will be defined as an output (starting at I/O8 downwards).
If
n1
=0, all lines I/O1~I/O8 are switched as input lines (=default after power-on and after reset); see also
application page 5.
Example: $1B
$59 $4D
$03
sets I/O lines 6, 7 and 8 as output. I/O lines 1,2,3,4,5 stay as input lines.
ESC
Y
R
n1
Read input port
Reads in the input port (
n1
=1..8 = I/O1 ... I/O8). When
n1
=0, all the inputs are read in as 8-bit binary values
(MSB:I/O8 ... I/O1:LSB); see application on page 5. Important: External optocoupler device usually invert the input
logic (input open: 1). The command "ESC Y I 1" puts this right (input open: 0).
Example: $1B
$59 $52
$03
Reads in port I/O3. The result is sent via RS232.
ESC
Y
W n1
n2
Write output port
Changes the output port (
n1
=1..8 = I/O1..I/O8) to the value
n2
(0=low level; 1=high level; 2=invert port). When
n1
=0, all the outputs are output as a binary value
n2
(MSB:I/O8 ... I/O1:LSB); see application on page 5.
Example: $1B
$59 $57
$02
$01
Switches the output port I/O2 to high level.
ESC
Y
A
n1
Automatic port query on/off
Each change at the input port (8-bit binary value I/O8 ... I/O1) can call a port macro (0..255). This command
activates (
n1
=1) or deactivates (
n1
=0) the automatic port query. After power-on, the current port status is read
and the associated port macro executed immediately.
Example: $1B
$59 $41
$01
Activates the automatic port query and executes the associated port macro.
ESC
Y
I
n1
Invert input port logic
This command allows the logic of the input port to be inverted (
n1
=0 for normal or
n1
=1 for inverse). This is useful
with the external optocoupler devices, for example.
Example: $1B
$59 $49
$01
Inverts the input port logic.
ESC
Y
L
n1
Switch LED-Backlight on/off
n1
=0 will switch off LED backlight,
n1
=1 will switch on backlight;
n1
=2 inverts: ON->OFF or OFF->ON;
n1
=3..255 LED backlight switched on for the time of n1/10 seconds.
Example:
$1B
$4A
$64
will switch on backlight for 10 seconds.
Note: In blue version EA KIT129-LW(TP) backlight will be driven with 7mA even in "backlight-off" state. This is
necessary to keep a minimum of contrast. If required, these stand-by backlight can be switched to real zero when
resistor R
off
(240
Ω
, SMD type) is removed.
Black&white-version EA KIT129J-LW(TP) do not have this LED stand-by current.