Programming
83
NI Series WebConsole & Programming Guide
Master IP Local Port Send_Commands
These commands are specific to the Master and not the Controller. These commands are sent to the DPS
0:1:0 (the Master). A device must first be defined in the NetLinx programming language with values for
the Device: Port: System.
In these programming examples, <DEV> = Device. The term <D:P:S> = Device:Port:System.
Master IP Local Port Send_Commands
Command
Description
UDPSENDTO
Set the IP and port number of
the UDP local ports
destination for sending future
packets.
This is only available for Type 2 and Type 3 Local Ports. Type 2 and Type 3 are
referring to the protocol type that is part of the IP_CLIENT_OPEN call
(4th parameter).
Type 1 is TCP.
Type 2 is UDP (standard)
Type 3 is UDP (2 way)
The NetLinx.axi defines constants for the protocol types:
CHAR IP_TCP = 1
CHAR IP_UDP = 2
CHAR IP_UDP_2WAY = 3
Syntax
:
SEND_COMMAND <D:P:S>,"'UDPSENDTO-<IP or URL>:<UDP Port
Number>'"
Variables
:
• IP or URL = A string containing the IP Address or URL of the desired
destination.
• UDP Port Number = A String containing the UDP port number of the desired
destination.
Example 1:
SEND_COMMAND 0:3:0,"'UDPSENDTO-192.168.0.1:10000'"
Any subsequent SEND_STRING to 0:3:0 are sent to the IP Address
192.168.0.1 port 10000.
Example 2:
SEND_COMMAND 0:3:0,"'UDPSENDTO-myUrl.com:15000'"
Any subsequent SEND_STRING to 0:3:0 are sent to the URL myURL.com
port 15000.
Содержание NetLinx Master-Ethernet Card/Module NXC-ME260
Страница 8: ...vi NI Series WebConsole Programming Guide Table of Contents ...
Страница 12: ...Overview 4 NI Series WebConsole Programming Guide FIG 1 Internet Explorer with BonJour plug in ...
Страница 13: ...Overview 5 NI Series WebConsole Programming Guide ...
Страница 14: ...Overview 6 NI Series WebConsole Programming Guide ...
Страница 34: ...Onboard WebConsole User Interface 26 NI Series WebConsole Programming Guide ...
Страница 36: ...WebConsole WebControl Options 28 NI Series WebConsole Programming Guide ...
Страница 88: ...WebConsole System Options 80 NI Series WebConsole Programming Guide ...
Страница 104: ...Programming 96 NI Series WebConsole Programming Guide ...
Страница 156: ...Appendix A IPSec Configuration File 148 NI Series WebConsole Programming Guide ...
Страница 161: ...Terminal Program Port Telnet Commands 153 NI Series WebConsole Programming Guide ...