background image

MOL81 485 1312/MOL81 485 1337

 

MOL81 485 1312-MOL81 485 1337-UM-1.4-EN

 

 

10/20 

6  MESSAGES RECEIVED BY READER 

 

6.1  MODBUS Protocol 

This  is  a  master/slave  protocol.  Each  exchange  is  initiated  by  the  master  and  consists,  except  in  one  case 

(broadcast message), of an exchange of two frames - a command issued by the master and a reply from the 

slave. All frames have the following structure: 

1 byte 

1 byte 

n bytes 

2 bytes 

Slave address 

Function code  

  data   

 control 

 The MOL1312 is a slave on a MODBUS network 

The  commands  issued  by  the  master  are  either  addressed  to  one  slave  (identified  by  its  address)  or  to  all 

slaves on the network  (broadcast). 

Each message or frame contains 4 fields: 

 

The slave address (1 byte): 

Specifies the destination, from 1 to 254. If the address is 0 (zéro), it is a broadcast message. In this case 

there is no reply. 

 

the function code (1 byte): 

Determines  the  type  of  action  to  be  performed  (read,  write,  bit,  word)  and,  in  the  reply,  indicates  if  the 

message was received correctly. 

 

The data field (n bytes): 

Contains the parameters associated with the function: command code, number of bytes, values. 

 

Control field (2 bytes): 

For error detection

 

(CRC 16). 

The  MODBUS  protocol  defines  12  functions  (second  field  in  frame).  Two  of  them  are  implemented  on  the 

MOL81: 

 

function code 3 or 4  

- read n words (*) 

 

function code 16 

 

- write n words 

(*) for reading n words, the MOL 81 accepts function codes 3 and 4. 

 

If  the  message  is  received  with  errors  (CRC  incorrect),  the  reader  does  not  reply.  If  the  message  is  received 

correctly but the reader cannot process it, an error message is sent. This error message has its function code 
field modified, (the msb is set to 1) and the data field contains one byte, an error code with the following values

:

 

 

Error type 

Error code  

Function code unknown 

Command unknown 

Data incorrect 

System non ready 

Execution failure 

 

Figure 6-1: MODBUS error codes 

 

Summary of Contents for MOL81 485 1312

Page 1: ... 800 258 RFID 7343 Fax 810 360 0237 BALOGH SA 189 Rue d Aubervilliers CP 97 75886 Paris Cedex 18 France Téléphone 33 0 1 44 65 65 00 Fax 33 0 1 44 65 65 10 Web http www balogh rfid com MANUEL D INTERFACE MOL81 485 1312 MOL81 485 1337 USER MANUAL Document reference MOL81 485 1312 MOL81 485 1337 UM 1 4 EN ...

Page 2: ...6 MESSAGES RECEIVED BY READER 10 6 1 MODBUS PROTOCOL 10 6 2 MODBUS COMMANDS 11 6 3 COMMAND READ LAST TAG CODE 11 6 4 COMMAND 125 KHZ EMITTER CONTROL 12 6 5 COMMAND READ FIRMWARE VERSION 12 6 6 COMMAND READ DEVICE STATUS 13 6 7 COMMAND WRITE PARAMETERS 14 6 8 COMMAND RESET 14 6 9 COMMAND WRITE DIGITAL OUTPUTS 14 7 DIGITAL OUTPUTS 15 7 1 125 KHZ OK 15 7 2 TAG PRESENCE 15 8 CONNECTORS 16 8 1 CONNECTO...

Page 3: ... 2 02 11 2011 2 2 Basic operations correction of behavior errors no diagnostic and no asynchronous message 7 1 125 KHz OK no diagnostic function implemented 1 3 02 14 2013 2 1 Comment about differences between MOL81 485 1312 and MOL81 485 1337 3 2 Installation requirements 4 1 default behaviour of EEPROM status bit MOL81 parametered in factory 6 3 Comment about CV and CI counters behaviour 6 6 Tab...

Page 4: ...ting and depot storage The device uses two operating frequencies a 125 kHz transmitter of a non modulated carrier for remote powering of tags and a 6 78 MHz narrow band receiver for data reception The unit is self testing and this function can be activated via the serial link A watertight IP67 connector has pins for DC power a serial link and digital outputs Two digital outputs inform of 125 kHz o...

Page 5: ...wered with 24Vdc the voltage range acceptable for correct operation is 21Vdc to 29Vdc including any ripples Typical current drawn at 24Vdc is 600mA with a maximum of 1A The power module is protected against polarity inversions Any changes in settings are memorised so that after a reset the same settings are used as before the previous power down In particular if the 125 kHz emitter was deactivated...

Page 6: ...L ASPECTS 3 1 Case dimensions Size mm 250 x 103 5 x 67 5 Mounting axes mm 225 x 60 Mounting with 4 x M5 screws Thickness at mounting points 4 mm For more information see Appendix 1 Specification Drawing 3 2 Device environment The distance between 2 MOL81 devices must be at least 2 meters ...

Page 7: ...plate which extends at least 10cm a beyond the base in both directions Beyond this distance the device can be recessed see figure 2 but not deeper than the height of the case a a In order to guarantee correct range The device must not be installed directly on metal and can be mounted directly onto wooden sleepers Metallic masses shall be distant of at least 10 cm a Beyond this distance the device ...

Page 8: ...ddress values from 1 to 254 It can be modified using the command Write Parameters see 6 7 The default value is MODBUS slave address 1 After first startup the default Modbus address is applied and the EEPROM is not initialized until the slave address is modified Thus the EEPROM status bit is still 0 until a write parameters command is processed by the MOL81 This parameter is set to 1 in factory ...

Page 9: ...ION TO HOST 5 1 Introduction The reader is connected to a host using a serial asynchronous two wire RS 485 link Other devices can be connected on the same link 5 2 Transmission characteristics Baudrate and format are fixed 19200 bits s 8 data bits no parity 1 stop bit RS 485 MOL81 HOST ...

Page 10: ...unction code 1 byte Determines the type of action to be performed read write bit word and in the reply indicates if the message was received correctly The data field n bytes Contains the parameters associated with the function command code number of bytes values Control field 2 bytes For error detection CRC 16 The MODBUS protocol defines 12 functions second field in frame Two of them are implement...

Page 11: ... of words CRC 16 If the address is 00H all the devices process the command without sending a reply Read n words function code 3 or 4 Command 2 bytes 2 bytes Device address 03 command nb of words CRC 16 Reply 1 byte n bytes Device address 03 nb of characters read values CRC 16 bytes read in order number of characters read 2 X number of words in Command always even 6 2 MODBUS Commands These commands...

Page 12: ...d 125 KHz emitter control This command will activate or deactivate the 125 kHz emitter The command can be sent at any time Command 01 10 00 43 00 01 01 EM 00 C1 C2 Reply 01 10 00 43 00 01 F0 1D where EM contains one useful bit D7 D0 0 0 0 0 0 0 0 VE VE Activate emission 0 activate 1 deactivate Example Command 01 10 00 43 00 01 01 01 00 59 33 deactivate emission Reply 01 10 00 43 00 01 F0 1D Comman...

Page 13: ... 125 KHz emitter is operational MOL81 1337 The MOL81 is installed on a metal plate and the 125 KHz emitter is operational MOL81 1312 The 125 KHz emitter is not operational MOL81 1337 The MOL81 is not installed on a metal plate or the 125 KHz emitter is not operational VA The MOL81 has read the same code successfully twice The MOL81 has read one new code successfully not consolidated by a second re...

Page 14: ...ll produce a hardware reset of the device It can be sent at any time After the reset the device will be in the same state as after a power up Command 01 10 00 45 00 01 01 00 00 58 C5 Reply 01 10 00 45 00 01 10 1C 6 9 Command Write digital outputs This command allows testing the digital outputs PRESENCE and 125 kHZ It can be sent at any time Command 01 10 00 52 00 01 01 SP S1 C1 C2 Reply 01 10 00 5...

Page 15: ...n Figure 7 1 the PRESENCE output Special case of two narrowly separated tags When a second tag is detected before the output PRESENCE for the first tag has fallen then the output is forcibly deactivated for a fixed time of 20ms in order to indicate the detection of the second tag Figure 7 2 the PRESENCE output with two closely spaced tags As soon as the second tag has been seen twice the output fa...

Page 16: ...eter of 1 6mm The table shows the pin assignments External view of connector rear view of cable assembly connector The two wire serial link uses pins C and F For a 120ohm line termination pins B and E can be connected together if necessary for RS485 long cable Figure 8 1 Connection diagram for normal RS485 operation with line termination D A C A B COM Controller or PC A B MOL81 F B E VAL Output PR...

Page 17: ... reference is for wire sizes from 0 5mm2 to 1 5mm2 AWG16 to AWG20 See SOURIAU documentation for other references The hood for the female socket must be chosen according to the outside diameter of the cable The above reference is for cable sizes from 8mm to 12 5mm See SOURIAU documentation for other references 8 3 Type of cable to use The cable to be used must be shielded with the following charact...

Page 18: ...ding to the above procedure 9 2 Device replacement If the MOL81 needs to be replaced the procedure is as follows Turn the knurled ring of the plug anti clockwise 1 3 turn to unlock the connectors Remove the 4 mounting screws and dismount the unit taking care to record the orientation Place the new MOL81 in the same position insert the 4 mounting screws and tighten to the specified torque Insert co...

Page 19: ...MOL81 485 1312 MOL81 485 1337 MOL81 485 1312 MOL81 485 1337 UM 1 4 EN 19 20 Appendix 1 Specification Drawing ...

Page 20: ...ice pursuant to part 15 of the FCC Rules These limits are designed to pro vide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of th...

Reviews: