
6. LW2 Programmer's Reference
UMX-TPS-TX100 series – User's Manual
95
Applied firmware packages: (UMX-TPS): v1.5.0b4 | (WP-UMX-TPS): v1.4.0b8 | (FP-UMX-TPS): v1.4.0b8 | LDC software: v2.5.6b2
6.6.3.
RS-232 Control Protocol Port Setting
The control protocol of local RS -232 port can be set as follows.
Command and Response
#protocol
ȩ
{RS232_LOCAL_PROT=
<protocol>
}
Ȩ
(RS232_LOCAL_PROT=
<protocol>
)CrLf
Parameters
Parameter
Parameter description
Value
Parameter value
<protocol>
RS-232 control protocol
LW2
LW2 control protocol
LW3
LW3 control protocol
Example
ȩ
{rs232_local_prot=lw2}
Ȩ
(RS232_LOCAL_PROT=LW2)
INFO:
The actual RS-232 parameters can be queried by the {RS232_LOCAL_PROT=?} command.
6.6.4.
Serial Port Format Setting (Link port)
This command sets the format of the link RS-232 port (TPS port).
Command and Response
ȩ
{RS232_LINK_FORMAT=
<baud_rate>;<data_bit>;<parity>;<stop_bit>
}
Ȩ
(RS232_LINK_FORMAT=
<baud_rate>;<data_bit>;<parity>;<stop_bit>
)CrLf
Parameters
See the previous section.
Example
ȩ
{RS232_LINK_FORMAT=38400;X;X;1}
Ȩ
(RS232_LINK_FORMAT=38400;8;N;1)
The databit and parity settings have not been changed.
6.6.5.
Serial Port Protocol Setting (Link port)
This command sets the communication protocol of the link RS-232 port (TPS port).
Command and Response
ȩ
{RS232_LINK_PROT=
<protocol>
}
Ȩ
(RS232_LINK_PROT=
<protocol>
)CrLf
Parameters
See the previous section.
Example
ȩ
{RS232_LINK_PROT=LW2}
Ȩ
(RS232_LINK_PROT=LW2)
6.7. GPIO Port Configuration
DIFFERENCE:
This section refers to the UMX-TPS-TX130, -TX140, TX140K and TX140-Plus models only.
6.7.1.
Setting the Level and Direction for Each Pins
GPIO pins can be configured as follows. See more details about GPIO connector in the
section and about the interface in the
section.
Command and Response
#gpio
ȩ
{GPIO
<pin_nr>
=
<dir>
;
<level>
}
Ȩ
(GPIO
<pin_nr>
=
<dir>
;
<level>
)CrLf
Parameters
Parameter
Parameter description
Value
Value description
<pin_nr>
GPIO pin number
0-6
static
<dir>
The direction of the communication
I
Input
O
Output
<level>
The level of the pin
L
Low
H
High
T
Toggle between low and high
Example
ȩ
{gpio1=O;H}
Ȩ
(GPIO1=O;H)
GPIO pin 1 is set to output with high level.
INFO:
The current GPIO pin configuration can be queried by typing the {GPIO
<pin_nr>
=?} command.