7. LW3 Programmers' Reference
7.14.3. Sending a TCP Binary Message (HEX-format)
The command is for sending a binary message in Hexadecimal format. This method does not require escaping
the control and non-printable characters.
Command and Response
ç CALL·/MEDIA/ETHERNET.tcpBinary(<IP_address>:<port_no>=<HEX_message>)
æ mO·/MEDIA/ETHERNET:tcpBinary
Example
ç CALL /MEDIA/ETHERNET:tcpBinary(192.168.0.103:6107=0100000061620000cdcc2c40)
æ mO /MEDIA/ETHERNET:tcpBinary
The '0100000061620000cdcc2c40' message is sent to the indicated IP:port address.
INFO:
There is no need to insert a space or other separator character between the binary messages.
7.14.4. Sending a UDP Message (ASCII-format)
The command is for sending a UDP message in ASCII-format. This method allows escaping the control characters.
For more information, see the
Escaping
section.
Command and Response
ç CALL·/MEDIA/ETHERNET:udpMessage(<IP_address>:<port_no>=<message>)
æ mO·/MEDIA/ETHERNET:udpMessage
Example
ç CALL /MEDIA/ETHERNET:udpMessage(192.168.0.103:6107=C00)
æ mO /MEDIA/ETHERNET:udpMessage
The 'C00' message is sent to the indicated IP:port address.
Example with HEX codes
ç CALL /MEDIA/ETHERNET:udpMessage(192.168.0.20:9988=C00\x0a\x0d)
æ mO /MEDIA/ETHERNET:udpMessage
The 'C00' message with CrLf (Carriage return and Line feed) is sent to the indicated IP:port address. The \x
sequence indicates the HEXA code; see more information in the
MMX4x2 series – User's Manual
Using Hexadecimal Codes
section.
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
7.14.5. Sending a UDP Text (ASCII-format)
The command is for sending a text message in ASCII-format via UDP-protocol. This method does not allow
escaping or inserting control characters.
Command and Response
ç CALL·/MEDIA/ETHERNET:udpText(<IP_address>:<port_no>=<text>)
æ mO·/MEDIA/ETHERNET:udpText
Example
ç CALL /MEDIA/ETHERNET:udpText(192.168.0.20:9988=open)
æ mO /MEDIA/ETHERNET:udpText
The 'open' text is sent to the indicated IP:port address.
7.14.6. Sending a UDP Binary Message (HEX-format)
The command is for sending a binary message in Hexadecimal format. This method does not require escaping
the control and non-printable characters.
Command and Response
ç CALL·/MEDIA/ETHERNET:udpBinary(<IP_address>:<port_no>=<HEX_message>)
æ mO·/MEDIA/ETHERNET:udpBinary
Example
ç CALL /MEDIA/ETHERNET:udpBinary(192.168.0.20:9988=433030)
æ mO /MEDIA/ETHERNET:udpBinary
The '433030' message is sent to the indicated IP:port address.
INFO:
There is no need to insert a space or other separator character between the binary messages.
115
Need help?
Do you have a question about the MMX4x2 Series and is the answer not in the manual?