
HS Automatic ApS
Side 28 af 41
17-11-2005
HSAjet-CU user manual
Last saved
Fejl! Ukendt argument for parameter.
Remote communication with the CU
The CU is an ideal unit for solutions where remote communication can be used to change
message content. Typically behind weighing / measuring stations, or simply in complete factory
automation.
Communication can be both with serial (RS232) and with Ethernet, using the same simple
protocol.
For RS232:
Use COM1 port
. You must use a
crossed cable
(Null Modem)
For Ethernet:
Use device IP address, port 1500. Password is same as parameter
password, if set.
PLEASE SEE COMPLETE REFERENCE LATER IN THIS MANUAL
The communication is based on commands and response from the CU unit. The syntax is as
follows:
XXX:parameter;{value};{value};…#
where:
XXX
is a command keyword of 3 characters, upper case
:
always follows command
parameter
is a parameter to command ("which command").
;{value}
value. Not always needed, and always preceeded with a semi colon
#
end of command string.
This is a list of command keywords and their meaning:
CMD
Command
Basic functions such as start, stop print, connect, disconnect.
REQ
Request
Read information from the CU
OBJ
Object
Change message objects. Notice: you can only change, not create
objects.
PAR
Parameter
Change print parameters in the CU
FIL
File
Send a file to the CU's flash card.
Each time you send a command to the CU, it will respond to confirm that the command has been
accepted. The response, simlilarly, is based on a 3-letter keyword followed by colon (:) and one or
more values separated by semicolon. All terminated by "#".
After every communication, you always get "RES:{error code}#", where 0 = no error.
Responses may be:
RES
Result
Error / result code.
DAT
Data
Data return, for example for objects / parameters
FIL
File upload
Ready for file upload