8.7.6. RS232 operation mode
Command format
SET/MEDIA/UART/<Pn>.Rs232Mode=0|1|2
Response format
pw/MEDIA/UART/<Pn>.Rs232Mode=0|1|2
Parameters
Example
> SET/MEDIA/UART/P2.Rs232Mode=1
< pw/MEDIA/UART/P2.Rs232Mode=1
Command injection mode
Command format
SET/MEDIA/UART/<Pn>.CommandInjectionEnable=true|false
Response format
pw/MEDIA/UART/<Pn>.CommandInjectionEnable=true|false
Example
> SET/MEDIA/UART/P2.CommandInjectionEnable=true
< pw/MEDIA/UART/P2.CommandInjectionEnable=true
ATTENTION!
The Command injection status is stored in another read-only property which is True if both
above mentioned properties are set to the proper state; if so, Command injection mode is
active: /MEDIA/UART/<Pn>.CommandInjectionStatus.
ATTENTION!
Do not forget to set the TCP/IP port setting which is individual for each RS-232 port and
stored in /MEDIA/UART/<Pn>.CommandInjectionPort parameter.
8.7.7. Send message via an RS-232 port
The RS-232 ports can be used for sending a message to the other end of the serial channel.
The feature allows controlling a connected (third-party) device, below command is for
sending an ASCII-format text message:
Command format
CALL/MEDIA/UART/<Pn>.sendText(<message>)
Response format
mO/MEDIA/UART/<Pn>:sendText
Example
> CALL/MEDIA/UART/P1.sendText(pwr_on)
< mO/MEDIA/UART/P1:sendText
Send message in HEX or BIN format
Message can be sent in other formats by the following methods:
Page 98 / 119
.Rs232Mode
RS-232 operation mode
sendMessage: sending in HEX format.
sendBinaryMessage: sending in BIN format.
0
1
Disconnect
Control
Section 8. LW3 Programmers' reference
2
Command injection
Need help?
Do you have a question about the MMX6x2-HT200 and is the answer not in the manual?