PTB605. Transmission Protocol. version 13 05/03/2002

Similar documents
PRECISION TIME BASE - PTB 606 For PTB version 14 November 2006

CONNECTION TO A HOST COMPUTER

Quick Start POCKET PRO Manager. Version 09/2015

PRECISION TIME BASE - PTB 605 For PTB version th November 2001

PRE32 RS232 protocol v1.21 Tomas Andersson

1. Implemented CM11 protocol

EWBS Receiving Module Communication specifications

BMV Text Protocol. Table of contents

Leica LP C (Laser Printer for Cassettes) System Requirement & Specifications

USER MANUAL FOR START CLOCK HL 920

RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200

Specification. for. Serial Interface DN-C635

The watchdog is connected to the internal USB header and reset switch header on the majority of motherboards.

Baracoda - September 2007

Control Characters used in DirectNET

Menu & commands booklet FOR BAR CODE SCANNERS * *

Specification. For. Serial Interface DN-T645/625

Serial Communication Protocols

Elotech Standard Protocol. for Single R8200 SC

User Guide. Modbus Module. For Digistart soft starters. Part Number: Issue: 3.

The RS-485 user manual for B800 series communication

RS485 INSTRUCTION MANUAL. DM4500 Series. Page 1 of 6

Venstar Thermostat Adapter

InfoTag KE28xx Communications for 186 CPU Firmware Version 4

A Specification for a Tape Drive Automation Controller Interface

HDV100A3 Command Response Protocol

Application Note BDLxxxx RS232 SERIAL INTERFACE COMMUNICATION PROTOCOL (SICP V1.82)

J2 LCM Customer Display. Manual

Planar Simplicity Series

ATID UHF RFID READER Protocol. July 2009 ATID900F - V0.0.3

PROCKET PRO HL400-S SWIMMING

5016 Installation and Communication RS485

EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

OPERATION MANUAL Card Reader Communication

Datalogic Scanning, Inc. 959 Terry Street Eugene, Oregon Telephone: (541) Fax: (541)

B Interface description 12.01/

VS-LC101/ VS-LC102 RS-232 command set

D730. Remote Display Installation Manual

UniOP VT100 Terminal Emulation - Ver. 3.16

LomaLink User s Guide

[DP19] DN-500CD. Serial Command Protocol Guide

EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

Serial Communication Control Interface User s Manual

THANK YOU. Control System Communication Protocol Manual RackLink. Monitor Control Alert Report Analyze. Thank you for purchasing a RackLink product.

General Remote Interface Description. en General Remote Interface Description

PROTOCOL TRANSPORTS 4 RS232 SPECIFICATIONS 4 RS232 CABLING 4 TCP/IP 4 PROTOCOL DOCUMENT NOTES 4 COMMUNICATION 4

AFRecorder 4800R Serial Port Programming Interface Description For Software Version 9.5 (Last Revision )

RS-232 Control of the Advantage DRI

PART 6: COMMUNICATIONS PROTOCOL

It is the installer's responsibility to follow all instructions in this manual and to follow correct electrical practice.

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS

Data Communication Protocol Host Computer to FAS-A

Analyzing the command string for switch to input #

PeakTech Prüf- und Messtechnik

User Guide IR Series

Input Channels: 4 differential or four single-ended. Address / Baud rate / range configurable by the user

Titan Dot Matrix Display (A05)

THERMAL PRINTER SPEC BAS Basic Features. 1.) Type : PANEL Mounting or DESK top type. 2.) Printing Type : THERMAL PRINT

1. Introduction. 2. Installation MODBUS INTERFACE

C628 Enhanced JPEG Module. User Manual

FLAT WIDE DISPLAY FWD-50PX1. PROTOCOL MANUAL (USER CONTROL ONLY) 1st Edition

SPBUS PROTOCOL SPECIFICATION

SAFETY PRECAUTIONS. Throughout this manual we use the following two illustrations to make you aware of safety considerations:

Mini-Display HL975 User Manual

Host Communication Tester Instruction Manual

2D Hand-held Barcode Scanner User Guide

TPG 261 TPG 262. Communication Protocol. Single-Channel Measurement and Control Unit for Compact Gauges

P R O F E S S I O N A L T I M I N G. DOCKING GPS User Manual Version 01/2009

Pololu TReX Jr Firmware Version 1.2: Command Documentation

Installation...4 Installation of Motor Unit for Oblique Viewer...4

Table of Contents. VM201 Protocol

Serial Interface Communication Protocol [EN Series]

Manual Electronic Identification Systems BIS Processor BIS C-6_0 RS 232 C-6_ _836905_E_0704.p65 Deutsch bitte wenden!

PROCKET PRO HL400-J JUMPING

Serial Interface Communication Protocol

Fingerprint_Protocol_All_English

DirectNET Host. Communications Programs. In This Chapter...

IQ Home Modbus-RTU Master

NOTE. This is warning & caution mark. This is hazard alert mark. This is useful information mark

Software Design Document

RS 232 Interface. RS 232 is the Serial interface on the PC. Three major wires for the Serial interface: Transmit Pin 2 Receive Pin 3

RS 232 PINOUTS. 1. We use RJ12 for all of our RS232 interfaces (Link-2-Modbus & Link-2-PC- Serial/RS232). The diagram below shows our pin out.

CREATING PANEL APPLICATIONS

Mitsubishi Serial Driver Help Kepware Technologies

JMY505G User's Manual

IFC 100 Supplementary instructions

Operating instructions

Doug Fleenor Design, Inc. RS-232 to DMX512 Interface, 2 Generation. March 8, 2010 (Software V1.2)

The MMDVM Specification ( )

Description of CAT 17 scales communication

Analog Devices Driver Kepware, Inc.

RS232 User Guide. Planar Simplicity Series 4K Displays SL4364K SL5564K SL6564K SL7564K SL8664K. Simplicity Series 4K Displays User Guide A

Operating instructions

Configuration Manual PULSAR C CCD SCANNER. Table of Contents

DCN Next Generation Open Interface Release 2.4. en User Manual

User Module. Modbus TCP2RTU. Application note

SCI-2144 SYSTEM CONTROL INTERFACE MODULE OPERATOR S MANUAL

POCKET PRO HL400-R RALLY

INTERFACE SPECIFICATION

Simplified JetfileⅡ Protocol VER 2.4

Transcription:

PTB605 Transmission Protocol version 13 05/03/2002 TAG Heuer Professional Timing 14a, Av. des Champs-Montants 2074 Marin Switzerland www.tagheuer-timing.com info@tagheuer-timing.com Page 1 sur 26

1. Table des matières 1. Table des matières 2 2. Introduction 3 3. Analysis of the commands 3 4. Frame definition 3 5. Frame delivery report 4 6. Limits 5 7. PTBdll.dll 5 8. Physical transmission parameters 6 9. Command definition 6 Query Date 7 Query Memory 8 Query Parameters 9 Parameter Buzzer ON/OFF 11 Parameter Enable / Disable Inputs 5 16 12 Parameter Locktime Input X 13 Parameter Printer Accuracy 14 Parameter Running Time on Display ON/OFF 15 Parameter Serial Number 16 Parameter Set Date and Time 17 Control Default 18 Control Session 19 Control Upload 20 Control Upload and Print 22 Control Clear Memory 23 Link Printer 24 Link Line 25 Link Off 26 Page 2 sur 26

2. Introduction The document called "PTB605 Transmission Protocol v13 " describes to the detail the choice and implementation of the protocol between a PC and the PTB605 timing device. All commands used in the protocol are described in this document. 3. Analysis of the commands After analysing all commands used in the protocol very deeply, it was found out that they are to be classified in different categories. In fact, there are 4 categories of different types of commands. Query Commands (demand of information from the PC to the PTB) Control Commands (order from the PC to the PTB) Paramter Commands (PTB parameter configuration through PC) Link Commands (redirection between the Printer and Display ports) The notion of category will be used again when we define the data frames. 4. Frame definition The choice of the used types of frames has been based upon different criteria as stated hereunder : Memory space at disposal on PTB (RAM + ROM) Default type compared to existing protocols Resistance in case of transmission errors User friendlyness for a PC software programmer Delimiters First of all, making the protocol of default type allows for choosing a certain frame format. Defining a frame format consists in always having a frame start and a frame finish. Whilst choosing a standard frame format also needed to be taken into account the fact that the PTB had limited memory capacities. Though was found out that most standard frame formats had a frame start called STX (Start of TeXt) and a frame finish called ETX (End of TeXt). This is why any command sent from the PC will have the following format : STX... ETX Page 3 sur 26

CheckSum In order to obtain a solid resistance against transmission errors, an error control and correction system needs to be set up. Seen the limited capacities of the PTB, only the error control could be realised. In order to equally correct transmission errors, the frame would need to be much heavier. Controlling of errors will, for that reason, be done by a "CheckSum" principle. This system will add all bytes of a frame. In order to place such a result in one byte only, a modulo 256 operation will be done. This CS principle guarantees for enough reliability for the demanded applications. So a command containing the "CheckSum" will have the following format : STX... CS ETX Command categories As already described, command analysis allowed for defining the 4 different types of commands. There are query commands (Query), control commands (Control), parameter commands (Parameters) and link commands (Link). The first caracter of any command specifies its category. In ASCII format, this caracter is coded on 1 byte. This is why you will find the following 4 possible frames : STX 'Q' control bytes... CS ETX STX 'C' control bytes... CS ETX STX 'P' control bytes... CS ETX STX 'L' control bytes... CS ETX 5. Frame delivery report Always in the same precaution of having maximum solidity, the sending of a "CheckSum" is not enough. It is also necessary to know if the PTB has received the command. For this, the PTB needs to send a delivery report. When the PTB receives a frame, it will be analyzed and the received "CheckSum" is compared to the "CheckSum" calculated by the PTB. If this value is identical and the PTB recognises the command, it will respond with a delivery report ACK (ACKnowledge = 0x06). However, in case of errors, the PTB will return a delivery report NACK (Not ACKnowledged = 0x15). It is very important to know that the PTB works in software flow control mode, better known under the name "XON XOFF". When the PTB is in XOFF mode, the frame sent by the PC will always be interpreted and, if possible, the command is executed. This means that the ACK and NACK delivery reports will automatically be sent to the PC (without waiting for the next XON). Page 4 sur 26

6. Limits Problems may still appear. In fact, if the frame finish caracter (ETX) is transmitted with an error, the PTB will not know that the frame is finished. It will infinitely wait for the ETX caracter in order to return the delivery report. In order to respond to this situation, the programmer needs to take this into account. Herefor, a "timeout" needs to be implemented. Minimum timeout delay must be of 50 milliseconds. In fact, when a command is sent to the PTB, the PTB will need a certain amount of time to interprete and execute. Beyond this delay, this command needs to be repeated. that this 50 millisecond delay is a minimum and that bigger delays can naturally be used. Particular attention needs to be paid to the parameter commands. When a parameter command, such as Parameter Set Date and Time, is sent, there will be no control of the hard values transmitted. If, for example, an eronous month is transmitted and the checksum is correct, this value will be accepted by the PTB. These values cannot be controlled by the PTB for reason of limited memory space. The 3 commands that can be concerned by this particular specialty (out of range) are : Parameter Input X LockTime Parameter Printer Accuracy Parameter Set Date and Time 7. PTBdll.dll In order to help all programmers wishing to develop their own software applications, and to perfectly manage all communication aspects of the PTB605, TAG Heuer has develloped an interface called PTBdll.dll. This file is at disposal of all software programmers who wish to communicate with the PTB. It manages all frames sent to, and received from the PTB (data flow), as well as all timeout matters. The dll will control if frames need to be repeated to the PTB in case of [NAK] returns. Feel free to contact your Official Agent or TAG Heuer Professional Timing in Switzerland (info@tagheuer-timing.com) to receive this worthful help free of charge! Page 5 sur 26

8. Physical transmission parameters The serial PC port of the PTB605 is configured for functioning will following parameters : Speed : 9'600 Bauds Parity Bit : none Stop Bit : 1 Flow Control : Software (XON XOFF) By default, when turning on the PTB, the flow control status is activated. This means that all caracters transmitted by the PTB are directly sent to the serial PC port. The elder command which allowed for modifying transmission speed to 19'200 Bauds got skipped. In fact, this transfer mode is impossible when caracters need to transferred to the printer or to a display, as input speed is much higher than output speed. A buffer would be needed in order to manage this option, which is not possible with the material ressources of the PTB. 9. Command definition The list on the following pages describes, in detail, all commands interpreted by the PTB605. For each command, the frame as well as the returned frame(s) is (are) specified. Page 6 sur 26

Query Date The PC user wishes to know current date and time of the PTB. Frame from PC to PTB to know current date and time : STX 'Q' 'D' CS ETX 'Q' = 0x51 query command 'D' = 0x44 date query Return from PTB to PC without transmission error, european format : ACK 'P' 'D' J J M M A A h h m m s s ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' CR 'P' = 0x50 parameter information 'D' = 0x44 EURO date information J-J = ASCII current day, 2 bytes M-M = ASCII current month, 2 bytes A-A = ASCII current year, 2 bytes h-h = ASCII current hour, 2 bytes m-m = ASCII current minutes, 2 bytes s-s = ASCII current seconds, 2 bytes ' ' = 0x20 spaces, 16 bytes <CR> = 0x0D (end of message) Return from PTB to PC without transmission error, US format : ACK 'P' 'd' M M J J A A h h m m s s ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' CR 'P' = 0x50 parameter information 'd' = 0x64 US date information M-M = ASCII current month, 2 bytes J-J = ASCII current day, 2 bytes A-A = ASCII current year, 2 bytes h-h = ASCII current hour, 2 bytes m-m = ASCII current minute, 2 bytes s-s = ASCII current second, 2 bytes ' ' = 0x20 spaces, 16 bytes <CR> = 0x0D (end of message) The type of the returned message depends on which format the PTB is programmed in. Page 7 sur 26

Query Memory The PC user wishes to know available memory space of the PTB. Frame from PC to PTB to know available memory space : STX 'Q' 'M' CS ETX 'Q' = 0x51 query command 'M' = 0x4D memory query ACK 'P' 'M' x x x x x ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' CR 'P' = 0x50 parameter information 'M' = 0x4D memory information x = ASCII available memory, coded on 5 bytes ' ' = 0x20 spaces, 23 bytes <CR> = 0x0D (end of message) Page 8 sur 26

Query Parameters The PC user wishes to know status of the different programmable parameters of the PTB. Frame from PC to PTB to know parameters status : STX 'Q' 'P' CS ETX 'Q' = 0x51 query command 'P' = 0x50 parameters query Return from PTB to PC of the 14 parameters without transmission error : ACK 'P' 'D' J J M M A A h h m m s s ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' CR 'P' 'C' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'L' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'P' p ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'K' '1' u1 x1 x1 ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'K' '4' u4 x4 x4 ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'K' 'O' uo xo xo ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'E' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'B' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'B' 'A' 'T' 'T' 'E' 'R' 'Y' ' ' 'O' 'K' ' ' ' ' ' ' ' '... CR 'P' 'S' x x x ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'M' y y y y y ' ' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' 'R' 'I' 'N' 'T' 'E' 'R' ' ' 'O' 'F' 'F' ' ' ' ' ' '... CR 'I' 'D' z z z z 'N' 'o' ' ' ' ' ' ' ' ' ' ' ' '... CR 'P' = 0x50 parameter information 'D' = 0x44 date parameter 'C' = 0x43 PC serial port parameter (always 9'600 bauds) 'L' = 0x4C display parameter (RT or OFF) 'P' = 0x50 printer accuracy parameter 'K' = 0x4B locktime parameter for each canal 'E' = 0x45 input 5 16 blocking parameter 'B' = 0x42 accoustic signal parameter 'S' = 0x53 current session parameter 'M' = 0x4D memory parameter zzzz = ASCII devices' serial number parameter <CR> = 0x0D (end of message) Page 9 sur 26

Each information frame contains 31 bytes, CR included. The field indicated [ ] stands for the number of spaces to obtain 31 bytes. The battery [OK] or [LOW] and printer status [ON] or [OFF] are directly legible. For further details on these information frames, please consult the parameter commands. Page 10 sur 26

Parameter Buzzer ON/OFF The PC user wishes to turn on or to turn off the accoustic signal of the PTB. Frame from PC to PTB to activate the accoustic signal : STX 'P' 'B' CS ETX 'P' = 0x50 parameter command 'B' = 0x42 buzzer parameter activated (ON) Frame from PC to PTB to desactivate the accoustic signal : STX 'P' 'b' CS ETX 'P' = 0x50 parameter command 'b' = 0x62 buzzer parameter desactivated (OFF) Return from PTB to PC without transmission error (in both cases) : ACK Page 11 sur 26

Parameter Enable / Disable Inputs 5 16 The PC user wishes to activate or desactivate inputs 5 16 of the PTB. Frame from PC to PTB to activate inputs 5 16 : STX 'P' 'E' CS ETX 'P' = 0x50 parameter command 'E' = 0x45 parameter inputs enabled Frame from PC to PTB to desactivate inputs 5 16 : STX 'P' 'e' CS ETX 'P' = 0x50 parameter command 'e' = 0x65 parameter inputs disabled Return from PTB to PC without transmission error (in both cases) : ACK Page 12 sur 26

Parameter Locktime Input X The PC user wishes to modify locktime of an input on the PTB. Frame from PC to PTB to modify a locktime : STX 'P' 'K' x y z z CS ETX 'P' = 0x50 parameter command 'K' = 0x4B parameter locktime x = ASCII chosen input, [1 4 O], see note y = ASCII chosen resolution, [S D], see note z-z = ASCII blocking value, 2 bytes, [00..99], see note ACK The chosen input, on which locktime should be modified, can have following values '1' (0x31) for input 1, '4' (0x34) for input 4 or 'O' (0x4F) for all other inputs. The chosen resolution, in which locktime should be specified, can have following values 'S' (0x53) for seconds or 'D' (0x44) for tenths of seconds. The blocking value, expressed in ASCII must be comprised between '00' and '99'. Nevertheless, it is interesting to see that a value of 00 seconds gives a blocking of 10 milliseconds, and a value of 00 milliseconds gives the minimum blocking (about 1 millisecond). Page 13 sur 26

Parameter Printer Accuracy The PC user wishes to modify printing accuracy on the PTB Printer. Frame from PC to PTB to modify printing accuracy : STX 'P' 'P' x CS ETX 'P' = 0x50 parameter command 'P' = 0x50 parameter printer accuracy x = ASCII accuracy digits,[0..4], see note ACK The number of digits for accuracy, expressed in ASCII, can have following values, standing for accuracy from a second to 1/10'000 th of a second. x accuracy 0 1 second 1 1/10 sec. 2 1/100 sec. 3 1/1'000 sec. 4 1/10'000 sec. Page 14 sur 26

Parameter Running Time on Display ON/OFF The PC user wishes to activate or desactivate showing of running time on the display connected to the PTB. Frame from PC to PTB to activate running time on display : STX 'P' 'L' CS ETX 'P' = 0x50 parameter command 'L' = 0x4C parameter running time activated (1/10 second) Frame from PC to PTB to desactivate running time on display : STX 'P' 'l' CS ETX 'P' = 0x50 parameter command 'l' = 0x6C parameter running time desactivated (OFF) ACK In "Running Time Activated" mode, the display receives frames every 1/10 of a second. These frames are of following format : 'R' ' ' H H ':' M M ':' S S '.' D CR 'R' = 0x02 running time frame start ' ' = 0x20 space H-H = ASCII running hour M-M = ASCII running minute S-S = ASCII running second D = ASCII running tenths of a second CR = SUM running time frame finish In "Running Time Desactivated" mode, the display does not receive anything. She can be used with link commands. Page 15 sur 26

Parameter Serial Number The PC user wishes to modify the serial number of the PTB. Frame from PC to PTB to modify the serial number : STX 'P' 'N' x x x x CS ETX 'P' = 0x50 parameter command 'N' = 0x4E parameter serial number xxxx = ASCII serial number, coded on 4 bytes ASCII ACK The serial number can be composed of any ASCII caracter chain, except for STX or ETX. Page 16 sur 26

Parameter Set Date and Time The PC user wishes to modify date and/or time of the PTB. Frame from PC to PTB to modify date and/or time (european format) : STX 'P' 'D' J J M M A A h h m m CS ETX 'P' = 0x50 parameter command 'D' = 0x44 EURO format date parameter J-J = ASCII current day, coded on 2 bytes ASCII M-M = ASCII current month, coded on 2 bytes ASCII A-A = ASCII current year, coded on 2 bytes ASCII h-h = ASCII current hour, coded on 2 bytes ASCII m-m = ASCII current minute, coded on 2 bytes ASCII Frame from PC to PTB to modify date and/or time (US format) : STX 'P' 'd' M M J J A A h h m m CS ETX 'P' = 0x50 parameter command 'D' = 0x44 EURO format date parameter M-M = ASCII current month, coded on 2 bytes ASCII J-J = ASCII current day, coded on 2 bytes ASCII A-A = ASCII current year, coded on 2 bytes ASCII h-h = ASCII current hour, coded on 2 bytes ASCII m-m = ASCII current minute, coded on 2 bytes ASCII ACK 'N' x x x x ' ' 'S' y y y ' ' ' ' ' ' ' ' ' ' J J ':' M M ':' A A ' ' 'P' 'r' ' ' 'O' 'f' 'f' CR 'N' = 0x4E serial number information xxxx = ASCII serial number coded on 4 bytes ASCII 'S' = 0x53 current session information yyy = ASCII current session coded on 3 bytes ASCII J-J = ASCII current day M-M = ASCII current month A-A = ASCII current year CR = 0x0D (end of message) In US mode, the return frame of the PTB has JJ and MM inverted (like the command frame). Printer status is shown entirely (Pr On or Pr Off). Page 17 sur 26

Control Default The PC user wishes to set all PTB parameters to default. Frame from PC to PTB to parameters to default : STX 'C' 'D' CS ETX 'C' = 0x43 control command 'D' = 0x44 set parameters to default control ACK Default parameters are : - display without running time - printer accuracy to the 1/1'000 th of a second - blocking time input 1 = 1 second - blocking time input 4 = 0.5 second - blocking time other inputs = 0.5 seconds - inputs 5 16 activated - accoustic signal activated - european date format Page 18 sur 26

Control Session The PC user wishes to create a new session on the PTB. Frame from PC to PTB to create a new session : STX 'C' 'S' CS ETX 'C' = 0x43 control command 'S' = 0x53 new session control ACK 'N' s s s s ' ' 'S' x x x ' ' ' ' ' ' ' ' ' ' J J : M M : A A ' ' 'P' 'r' ' ' 'O' 'n' ' ' CR 'N' = 0x4E new session information ssss = ASCII serial number coded on 4 bytes ASCII 'S' = 0x53 session information xxx = ASCII session number coded on 3 bytes ASCII J-J = ASCII current day in EURO format coded on 2 bytes ASCII M-M = ASCII current month in EURO format coded on 2 bytes ASCII A-A = ASCII current year coded on 2 bytes ASCII CR = 0x0D (end of message) In US mode, the return frame of the PTB has JJ and MM inverted (like the command frame). Printer status is shown entirely (Pr On or Pr Off). Page 19 sur 26

Control Upload The PC user wishes to receive the entire memory of the PTB. Frame from PC to PTB to receive memory : STX 'C' 'U' CS ETX 'C' = 0x43 control command 'U' = 0x55 PC memory upload control ACK After the delivery report [ACK], all frames in the memory are sent to the PC. These frames can have 3 different formats : - Session frames (31 bytes), including CR : 'N' x x x x ' ' 'S' y y y ' ' ' ' ' ' ' ' ' ' H H ':' M M ':' S S ' ' 'P' 'r' ' ' 'O' 'f' 'f' CR This information is identical to those returned after a Set Date and Time command. - Synchronisation frames (31 bytes), including CR : 'S' x x x x ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' H H ':' M M ':' S S '.' d c m dd cc mm CR 'S' = 0x53 synchronisation information xxxx = ASCII devices' serial number information Times are in hours, minutes and seconds. The bytes from 1/10 th to 1/1'000'000 are at '0'. Page 20 sur 26

- Time frames (31 bytes), including CR : 'T' ' ' ' ' ' ' ' ' ' ' x x x x x ' ' y y ' ' H H ':' M M ':' S S '.' d c m dd cc mm CR 'T' = 0x54 time information x..x = ASCII impulse numbering on the measured input, coded on 5 bytes ASCII yy = ASCII measured input, coded on 2 bytes ASCII, '01' to '16' for external inputs and 'M1' to 'M4' for manuals inputs d = ASCII shows the 1/10 of a second c = ASCII shows the 1/100 of a second m = ASCII shows the 1/1'000 of a second dd = ASCII shows the 1/10'000 of a second cc = ASCII shows the 1/100'000 of a second mm = ASCII shows the 1/1'000'000 of a second Page 21 sur 26

Control Upload and Print The PC user wishes to receive the entire memory of the PTB. In parallel, the memory upload will be printed on the PTB Printer. Frame from PC to PTB to receive memory with printing : STX 'C' 'A' CS ETX 'C' = 0x43 control command 'A' = 0x41 PC memory upload and print control ACK After the delivery report [ACK], all frames in the memory are sent to the PC and are printed. These frames can have 3 different formats : - Session frames (31 bytes), including CR (see Control Upload description) - Synchronisation frames (31 bytes), including CR (see Control Upload description) - Time frames (31 bytes), including CR (see Control Upload description) Page 22 sur 26

Control Clear Memory The PC user wishes to erase the entire memory of the PTB. Frame from PC to PTB to completely erase of the memory : STX 'C' 'C' CS ETX 'C' = 0x43 control command 'C' = 0x43 erase memory control ACK 'N' s s s s ' ' 'S' '0' '0' '1' ' ' ' ' ' ' ' ' ' ' J J : M M : A A ' ' 'P' 'r' ' ' 'O' 'n' ' ' CR 'N' = 0x4E new session information ssss = ASCII devices' serial number coded on 4 bytes ASCII 'S' = 0x53 session information 001 = ASCII session number coded on 3 bytes ASCII (always session 1 after erasing memory) J-J = ASCII current day EURO format, coded on 2 bytes ASCII M-M = ASCII current month EURO format, coded on 2 bytes ASCII A-A = ASCII current year, coded on 2 bytes ASCII CR = 0x0D (end of message) In US mode, the return frame of the PTB has JJ and MM inverted (like the command frame). Printer status is shown entirely (Pr On or Pr Off). The first session after a memory erasement is of course number 1. Page 23 sur 26

Link Printer The PC user wishes to direct all caracters coming from the PC directly to the PTB Printer. The PTB works like an intermediate passing point in this configuration. Frame from PC to PTB to completely erase of the memory : STX 'L' 'P' CS ETX 'L' = 0x4C link command 'P' = 0x50 link to printer ACK After the delivery report [ACK], all caracters sent from the PC are redirected to the printer. No other command can be sent to the PTB, except for the end-of-link command (Link Off). Of course, the PTB will not give any response [ACK] or [NAK] while funtioning in redirected mode, only an [ACK] will be returned when a Link Off command is received without any transmission error. Page 24 sur 26

Link Line The PC user wishes to direct all caracters coming from the PC to the display output of the PTB. The PTB works like an intermediate passing point in this configuration. Frame from PC to PTB to completely erase of the memory : STX 'L' 'L' CS ETX 'L' = 0x4C link command 'L' = 0x4C link to display ACK After the delivery report [ACK], all caracters sent from the PC are redirected to the display output of the PTB. No other command can be sent to the PTB, except for the end-of-link command (Link Off). Of course, the PTB will not give any response [ACK] or [NAK] while funtioning in redirected mode, only an [ACK] will be returned when a Link Off command is received without any transmission error. If the display output is configured in running time mode, running time will automatically stop when this command (link to display) is sent. As soon as it returns to normal mode, after a Link Off command, running time will again be sent to the display output. Page 25 sur 26

Link Off The PC user wishes to return to normal mode after sending a "Link Printer" or "Link Line" command. Frame from PC to PTB to return to normal : STX 'L' 'X' CS ETX 'L' = 0x4C link command 'X' = 0x58 link off ACK No error control exists on this command. If any error occurred whilst sending this command to the PTB, the command will simply be redirected to the printer or the display. The Link Off command is a bit particular because not all caracters are sent to the printer or the display. When sent to a printer or a display, the [ETX] caracter is automatically replaced by a [CAN] cancel caracter. This caracter allows for neglecting the preceding caracters. This should be the same for the printer as well as for any used displays. If the display output should be configured in running time mode, running time will automatically continue when this command (Link Off) is received. Page 26 sur 26