7.4 Input Buffer Requirements
With a controller using TCP or UDP sockets, the module can receive commands much
faster than it can process the commands. To make sure the HFE LAN is not overloaded, it
is required that the controller sometimes sends a query and then waits for the response.
The response is the acknowledgement from HFE LAN that it has finished processing all
commands.
It is recommended that your controller routinely sends “SYST:ERR?”. This query
takes little time, and it verifies that all commands have been accepted correctly.
7.5 Message Terminators
When using a program that sends separate commands out through a TCP socket,
the socket drivers may combine all the messages into one long packet. Therefore,
it is necessary to add a terminator character to the end of each command.
All SCPI commands must have a terminator character.
Terminator Character (and ASCII hex)
Commands
from the Controller
One or more terminators required:
Line-feed,
Carriage-return
0x0A
0x0D
Responses
from the HFE LAN
All responses have Line-Feed at the end.
0x0A
Table 9: Terminator
7.6 Using TCP Sockets
This is the most popular socket type. It features a managed connection, message
acknowledgements, transmission error detection and correction.
Open TCP socket port 8003 to send commands.
Responses to queries are sent back automatically with a line-feed terminator appended.
If the web page LAN controller access is set to “Multiple Clients”, then up to two controllers
may open TCP sockets to one module at the same time.
7.7 Using UDP Sockets
This is a simpler socket type with reduced network traffic. It is a ‘connectionless’ protocol
because messages are sent and there is no acknowledgement.
Open UDP socket port 8005 to send commands.
Responses to queries are sent back automatically with a line-feed terminator appended.
Before opening a UDP socket, it is required to open the web page and set the controller
access to “Multiple Clients” (see section 5.5.2).
32
Содержание HFE1600 SERIES
Страница 39: ...39 ...
Страница 40: ...IA817 04 01A Z0020951 40 ...