Promag TR515 User Manual Download Page 10

TR515 User’s Manual 

 

3. Communications protocol 

The TR515 communications protocol is based on the GNET protocol 

specification. Communications parameters are 19200-8-N-1. 

Communications between the TR515 and the PC takes place in the form of 

commands sent by the PC and replies from the TR515. Commands and replies 

are packets of data. Each packet begins with an STX (02H) character and ends 

with CR (0DH) character. Selected commands and replies include a checksum 

field as an additional safety measure. All characters between the STX and the 

CR characters must be in the 20H...7FH range. 

The STX character of a command packets is followed by a one-character 

command code. The STX character of a reply packet is followed by a one-

character reply code. Both command and reply packets may contain some 

relevant data after the command (reply) character: 

 

STX 

      

C1 

C2 

CR 

02H 

Cmd/Rpl 

code 

Data (if any) 

Checksum* 

0DH 

*

Checksum field is 

not

 included into certain commands and replies

 

 

All available commands are described later in this Section. Of reply codes, 

only two are possible: ‘A’ (completed successfully) and ‘N’ (some error was 

encountered). Depending on the command given to the TR515, reply packets 

with reply code ‘A’ may contain some data (as shown on the Figure above). 

Reply packets with the reply code ‘N’ always contain a 2-digit error code that 

can be used to analyze the source of a problem. 

The checksum is an 8-bit sum of all characters between the STX and CR, 

represented as a 2-character HEX string. For an example packet below, the 

checksum is calculated as follows. The data part of the packet is “A1XYZ”. The 

sum of these character codes is: 41H+31H+58H+59H+5AH=17DH. Eight least 

significant bits contain 7DH. The string representation of this value is “7D” (i.e. 2 

ASCII characters- ‘7’ and ‘D’). 

 

STX A  1  X  Y  Z  7  D  CR 

02H 41H 31H 58H 59H 5AH 37H 44H 0DH 

 

Packet portion the checksum is calculated on 

Checksum 

 

 

Summary of Contents for TR515

Page 1: ...TR515 Time Recorder V1 00...

Page 2: ...IN button or both IN and OUT buttons down forces the unit into the FMM The FMM mode of operation cannot be exited other than by switching the TR515 off and back on again Contents Attention Firmware M...

Page 3: ...top fashion There is an orientation setting provided that allows you to select display mode see Section 4 1 RS 232 485 Interface Versions The TR515 supports two different interfaces RS232 for single t...

Page 4: ...be switched It is recommended that you keep the length of each bus stem i e the cable that is used to attach a certain TR515 to the bus as short as possible ideally under 10 cm see the drawing below...

Page 5: ...e cables of substantial and variable length so you will probably need to make your own cables For testing purposes PROMAG supplies two kinds of Ethernet cables device to hub WAS 1499 for connections t...

Page 6: ...assignment can be found in Appendix B 3 Wireless Interface Versions The TR515WX designed to operate in the 433MHz ISM Industrial Scientific and Medical frequency band It features Frequency Shift Keyi...

Page 7: ...need to assign a unique and non zero machine number to each Terminal on the network Assigning machine numbers The TR515 offers a fast and convenient way of assigning machine numbers in the range from...

Page 8: ...is located under the metal back plate Figure above shows connector position and pin assignment Both Normally Closed N C and Normally Opened N O contacts are provided Locking event selection IN or OUT...

Page 9: ...The last four digits of the ID cards ID code are displayed on the LED when the ID card is read Four dashes are displayed in case of read error only applicable to the TR515M Memory full status When the...

Page 10: ...er STX C1 C2 CR 02H Cmd Rpl code Data if any Checksum 0DH Checksum field is not included into certain commands and replies All available commands are described later in this Section Of reply codes onl...

Page 11: ...ed terminal Note 1 I 49H Set new machine number Y 59H Get machine number S 53H Set date time T 54H Get date time V 56H Get firmware version R 52H Initialize the terminal C 43H Set register see next ta...

Page 12: ...e is some discrepancy in the format of the D command issued by the Host which can only be in the Machine Number field no particular terminal can be sure that it is being addressed Therefore no termina...

Page 13: ...ommand description for more details Get machine number Y 59H Possible error codes 07 Command Y Reply ANN NN machine number in Hex form 00H FFH This command is used to retrieve the terminal s machine n...

Page 14: ...ng can be any ASCII string the following format is adopted VX X cc c where VX X is a version number i e V1 0 and cc c is a comment string Comment string is separated from the version number by a singl...

Page 15: ...and BRR Reply Areg_datacc RR register number 00H FFH reg_data is the data stored in the register cc checksum This command is used to retrieve the data contained in the designated register Registers ar...

Page 16: ...verifies all database records before sending them out to the PC This is done because the FLASH memory may actually contain a garbage data There is a special M command that lets you initialize the dat...

Page 17: ...This command alters the database in such a way that it appears to be 100 full The M command therefore can be used for data recovery purposes For example if E command is executed accidentally while TR...

Page 18: ...nds 00H FFH 02H 21H Bell table times total of 32 registers 22H 41H Bell table enable disable total of 32 registers 42H Event selection mode free IN or OUT IN only OUT only LED display mode register 00...

Page 19: ...TR515 User s Manual 17 parameter must be supplied as a 2 digit number i e 00 or 01 Supplying just one digit will generate error 04...

Page 20: ...ach time it is enabled Note the DD parameter must always be a 2 digit number i e 3A Supplying just one digit will generate error 04 Bell table times Set Possible error codes 04 07 Command CRR hhmm Rep...

Page 21: ...rough these registers Example programming a bell table entry for 12 00 00 First set the desired time select a time register that you haven t used yet i e 05H Set the time using the following command C...

Page 22: ...R515 is powering up FMM check mode is entered by holding both IN and OUT buttons pressed while the TR515 is powering up Downloading new firmware FMM download To upgrade the firmware you will need a ne...

Page 23: ...ng or expecting to receive a block of data from the PC the LED is off while the TR515 is programming the data received into its internal FLASH memory Once the downloading is finished the TR515 will ex...

Page 24: ...t be exactly 64K in size Make sure you are trying to downloading a correct one Err3 FLASH memory failure This normally indicates a serious internal malfunction The LED display is turned off after disp...

Page 25: ...buttons pressed The unit will generate a long beep and display FLCH FLASH check Memory checkup takes about 5 seconds to complete OUT LED is on while check is in progress Upon test completion the TR51...

Page 26: ...OUT button test IN button test and reader test Each step must be repeated five times Press the OUT button and notice that b1 5 changes to b1 4 b1 3 etc When you press the OUT button for the fifth time...

Page 27: ...The database is full and new record cannot be added Error 4 Incorrect setting value Reinitialize the TR515 by issuing the R command Error 5 The database is corrupted First try to power the TR515 off a...

Page 28: ...9P FEMALE PIN 7 2 8 3 NC 5 BROWN BLUE 7 8 NC NC NC No Connect WAS 1436 PIN1 PIN8 WAS 1436 LENGH 2000 mm WIRE 8P8C AWG 28 2 WAS 1467 For TR515SX RS 485 RJ 11 8P8C PIN 1 2 3 4 5 6 WIRE CUT CUT CUT CUT 5...

Page 29: ...S 1498 WAS 1498 LENGH 1800 mm CAT 5 4PAIR 24AWG UTP CABLE P N WAS XXXX REV X PIN8 PIN1 Side A Side B PIN8 PIN1 4 WAS 1499 For TR515EX TO HUB COLOR Side B 1 2 3 4 5 6 Side A 1 2 3 4 5 6 7 8 7 8 1 2 and...

Page 30: ...perature range 0 55 Co Operating humidity 5 95 Requires a special adaptor CON485 purchased separately Appendix E Ordering Information Ethernet Interface TR515EM Time Recorder with Magnetic Card Reader...

Page 31: ...to TR515E using cable WAS 1499 1 Open the program DS Manager It will automatically detect the IP Address of the TR515 on line The default IP address is 127 0 0 1 For DS Manager cannot detect the IP ad...

Page 32: ...ing OK 4 Select IP Address and Click DS Settings button A Select Routing mode Slave B Set IP Address When using multiple TR515E or machines it is recommended to label the IP address on each TR515E or...

Page 33: ...1 5 Enable Allow on the fly serial port parameter changes This helps TR515E to remote control the serial parameters 6 Click OK to finish TCP IP configuration 7 Complete the New IP settings of TR515E a...

Page 34: ...ction with TR515 terminal PC to TR515 using cable WAS 1498 1 Please refer to above procedure 1 7 for settings 2 Open the Application Program of TR515 Input the IP address of the on line TR515 and sele...

Page 35: ...433 92 MHz 19200 bps Notice for Operation A ID 000 defaul can be set to any TR515 on line However when there are multiple TR515 on line the machine ID cannot be 000 Each TR515 must have its own ID nu...

Page 36: ...TR515 User s Manual 34 b Select 000 default to assign the new ID c Set ID as 001 The correspondent name can be modified at Device Name...

Reviews: