Page 6 sur 26
TRAÇABILITÉ CRÉATIVE
CREATIVE TRACEABILITY
www.technomark-marking.com
TECHNOMARK
3 Allée Michaël FARADAY
Parc d’activités STELYTEC
42400 SAINT-CHAMOND (France)
Tel : +33 (0) 4 77 22 25 91
Fax : + 33 (0) 4 77 22 38 93
E-mail : info@technomark-marking.com
4. Communication Protocol
The controller communication protocol allows using the system as « slave equipment », by sending orders using the
RS232 serial port or Ethernet port.
The RS232 cable connection should be a standard straight cable.
For Ethernet configuration see chapter Ethernet Card.
The system waits for orders with the following structure:
[STX][Command 1][Command 2]…[Command N][ETX]
[STX] correspond to character ASCII 02 and define the beginning of the frame.
[ETX] correspond to character ASCII 03 and define the end of the frame.
Each command ends with [CR], end of command indicator; its ASCII value is 13.
Each command (exception for the last error command) gets an answer from the control box: ACK if the command is
allowed, NACK if not.
[ACK] correspond to character ASCII 06
[NACK] correspond to character ASCII 21
For example the answer frame can be: [STX][ACK][ETX].
Answer can be disabled by including the disable answer command in the frame.
LIST OF AVAILABLE COMMANDS:
4.1.Open a file command - A
Opening of a file is done by command A followed by the file name:
Example: Open the test file
[STX]ATEST[CR][ETX]
4.2.Variable command - B
It is possible to define a variable content with command B followed by the variable name then the character = then
the desired value.
Example: to give the value TEST to a variable called CB (bar code)
[STX]BCB=TEST[CR][ETX]
The variable CB must be define in the opened file on the control box.
The file TEST has to be in the controller.