BARIX X8 Скачать руководство пользователя страница 20

PRODUCT MANUAL - BARIX X8 - V01.05 - 10/26/2006

To check if WIEGAND data is available the register 11 has to be 
read. The lower Byte will contain the amount of Bits received.
If it is 00h then no new data was received. The higher Byte 
contains a bitmap of found temperature sensors (see next page)

The Bits of the received WIEGAND data are shifted in (from 
right to left) into the Registers 12 to 16 (5x16=80 bits max):

Register 12

13

14

15

16

Bit

1.......16 17........32 33........48 49........64 65........80

Example:
Register 11: 2B1A 1Ah=26 Bits
Register 12: A8DF
Register 13: D8CA

Register 12 (Word)

Register 13 (Word)

A8 (High Byte)

DF (Low Byte)

D8 (High Byte)

02 (Low Byte)

1 0 1 0 1 0 0 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 0 0 1 1 0 0 1 0 1 0

1 2 3 4 5 6 7 8 9 1

0

1

1

1

2

1

3

1

4

1

5

1

6

1

7

1

8

1

9

2

0

2

1

2

2

2

3

2

4

n

a

n

a

n

a

n

a

n

a

n

a

2

5

2

6

Note: As the Bits are shifted in from right to left, the Bits in the 
last Byte are right aligned. The unused Bits can contain old data ! 
To obtain correct data the last Byte must be masked. 

In the above example with 26 Bits the mask for the last Byte is:

2

0

+ 2

1

 = 1 + 2  = 3

Now let us mask the data received:

CAh AND 03h = 02h

So the WIEGAND data in this example is in fact:

A8 DF D8 02

The BARIX X8 keeps this data in the registers 12 to 16 and will 
NOT read further WIEGAND data until register 11 is cleared 
(Reg. 11 = 00h).
 

Connecting the I/O  ·   14

Содержание X8

Страница 1: ...pplications PRODUCT MANUAL Version 01 05 Date 10 26 2006 For Firmware Version 6 BARIX X8 Barix AG Seefeldstrasse 303 CH 8008 Zürich Switzerland T 41 43 433 22 11 F 41 44 274 28 49 Barix Technology Inc 2182 Helena Road St Paul MN 55128 USA T 866 815 0866 F 209 755 8435 www barix com info barix com ...

Страница 2: ......

Страница 3: ...D Indicators 3 Configuration Memory 3 Connectors 4 Connector Pin out overview 4 J1 Pin out I O 4 J3 Pin out Power RS 485 5 J4 Pin out GND Shield Jumper 5 J5 Pin out Shield 6 LED 1 4 Functions 6 Protocol support 7 General 7 Supported Standard Commands 7 Special Commands 7 Exceptions 8 Command 68 8 Command 69 9 Command 70 9 Command 71 10 ...

Страница 4: ...Barionet controller 16 Power wiring 16 RS 485 wiring 16 Reference wire 16 RS 485 termination 16 Modbus Register Map 17 Live I O 17 Configuration Data 18 Complete Register Map 20 Complete Coils Map 21 Technical specifications 23 CPU 23 I Os 23 5VDC output 23 I O RS 485 Power shield Connectors 23 Host Interface 23 Power Supply Requirements 23 LED Indicators 23 Case 23 Misc 23 Conformity 23 ...

Страница 5: ......

Страница 6: ......

Страница 7: ...r LED s for status display Local analog voltage reading 0 5VDC 8 inputs Local temperature up to 8 Barix TS digital sensors WIEGAND reader to RS 485 converter 2 inputs for D0 and D1 other 6 I Os usable with standard functions The device is configured via the serial interface using standard Modbus read writes If the device ID is unknown a special command is available which can be sent via broadcast ...

Страница 8: ...the BARIX X8 and other BARIX devices Barionet IO12 R6 connected over RS 485 using a single power supply only a DC type power supply can be used as the RS 485 interfaces are not completely potential free All I O pins are directly connected to the CPU and the absolute rating is TTL level 0 to 5VDC When used as digital input the signal is filtered 48 milliseconds period for debouncing to allow for di...

Страница 9: ... termination resistor may be added at each end of the RS 485 bus if required The BARIX X8 as well as other Barix I O extension units feature soft pull up B and pull down A 10kOhm resistors which force the inactive bus to a relatively high impedance idle condition Both A and B line signals are heavily protected against ESD Electrostatic Discharge Supported interface configurations are 19200 baud 8b...

Страница 10: ...n 1 Signal GND 6 I O 3 2 I O 7 7 I O 2 3 I O 6 8 I O 1 4 I O 5 9 I O 0 5 I O 4 10 VCC 5VDC For ratings see sections Inputs Outputs and 5VDC output in chapter Hardware Connectors 4 Connector Pin out overview 5 4 3 2 1 5 4 3 2 1 J3 J3 J1 J1 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 10 10 J J5 5 1 1 2 2 3 3 J 4 1 2 LED LED 1 2 3 4 1 2 3 4 S e r i a l J1 Pin out I O ...

Страница 11: ...und of the BARIX X8 via a 100 Ohm resistor and can be used for grounding applications Pin Function 1 Reference Ground 2 RS 485 A 3 RS 485 B 4 VIN AC or DC 5 VIN AC or DC The Jumper J4 can be used to connect the 3 Shield pins on J5 to Signal GND when required Pin Function 1 Signal GND 2 Shield Connectors 5 5 4 3 2 1 5 4 3 2 1 J3 J3 J4 Pin out GND Shield Jumper J 4 1 2 J3 Pin out Power RS 485 ...

Страница 12: ...ted to signal ground and toVCC via two 10nF capacitors See also J4 jumper for connecting the 3 shield pins on J5 to Signal GND Pin Function 1 Shield 2 Shield 3 Shield LED Function 1 CPU heartbeat 2 RS 485 receive activity 3 RS 485 transmit activity 4 Reserved Connectors 6 LED LED 1 2 3 4 1 2 3 4 J J5 5 1 1 2 2 3 3 J5 Pin out Shield LED 1 4 Functions ...

Страница 13: ...tion code Due to the limited memory resources of the BARIX X8 the unit cannot receive messages larger than 95bytes and will ignore these eg write multiple register commands CMD hex Function 03 0x03 read holding register 04 0x04 read input register 05 0x05 write single coil 06 0x06 write single register 16 0x10 write multiple registers The BARIX X8 supports some special Barix proprietary commands w...

Страница 14: ...t address Byte 2 0x44 command code Byte 3 ah first address hi always 0 Byte 4 al first address Modbus address of first device Byte 5 ch count bytes hi always 0 Byte 6 cl count bytes lo 8 bit Byte 7 nb number of bytes following redundant Byte 8 8 nb data bytes for multiple devices Byte 8 nb 1 crc1 crc1 according to Modbus spec Byte 8 nb 2 crc1 crc1 according to Modbus spec Example a command with al...

Страница 15: ...1 configuration data for register 272 Byte 8 c2 configuration data for register 273 Byte 9 c3 configuration data for register 274 Byte 10 c4 configuration data for register 275 Byte 11 crc1 crc1 according to Modbus spec Byte 12 crc2 crc2 according to Modbus spec Despite the broadcast addressing the unit will respond with an acknowledge containing bytes 1 6 plus crc The command code 70 hex 46 is us...

Страница 16: ...s block to address a specific unit The block is sent out as a Modbus broadcast After erasing the firmware the device will go into the download mode with serial settings 19200 n 8 1 Command format Byte 1 0x0 broadcast address Byte 2 0x45 command code Byte 3 s1 serial number first part Byte 4 s2 serial number second part Byte 5 s1 serial number first part repeated Byte 6 s2 serial number second part...

Страница 17: ...in 9 on J1 reapply power to the device The BARIX X8 will lite up all 4 LEDs and the 3rd LED will blink showing that the default parameters are stored in the non volatile memory No communication is possible at this moment disconnect the device from power supply remove the wire between pin 8 and pin 9 on J1 reapply power to the device Now the device can be addressed on Modbus address 255 using the f...

Страница 18: ...abled by default Reg 273 FFh Buttons or contact closures can be attached to each input and to signal ground as shown in the schematic below I7 I0 The 8 I Os of the BARIX X8 can be set to work as outputs Reg 276 FFh LEDs can be attached between each output and the 5VDC source as shown in the schematic below R7 R0 LED7 LED0 Connecting the I O 12 Contacts on inputs LEDs on outputs ...

Страница 19: ... shown in the schematic below TTL level output TTL level input GND O4 I0 One WIEGAND device keypad reader can be interfaced by connecting output D0 to I O6 and output D1 to I O7 which are both inputs by default Vsupply Vsupply WIEGAND D0 DEVICE D1 GND The WIEGAND interface is enabled by setting Bit 6 of register 274 Reg 274 OR 40h Connecting the I O 13 WIEGAND device TTL devices on I O ...

Страница 20: ...r 13 Word A8 High Byte DF Low Byte D8 High Byte 02 Low Byte 1 0 1 0 1 0 0 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 0 0 1 1 0 0 1 0 1 0 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 n a n a n a n a n a n a 2 5 2 6 Note As the Bits are shifted in from right to left the Bits in the last Byte are right aligned The unused Bits can contain old data To obtain correct data the last By...

Страница 21: ...ning all 8 inputs I O0 I O7 for attached TS sensors Each found sensor is represented by the corresponding Bit in the High Byte of register 11 2 TS sensors attached to I O0 and I O7 1000 0001b 8100h The raw data of each TS sensor typically 12bit resolution see Dallas data sheet value is stored in the Modbus registers 3 to 10 Example code for calculation in degree Celsius IF value 32768 THEN tempera...

Страница 22: ... GND connect Pin 4 J7 to Pin 2 J3 of the BARIX X8 RS 485 A connect Pin 5 J7 to Pin 3 J3 of the BARIX X8 RS 485 B When communication problems occur two measures can be taken to improve the RS 485 signal quality When using two separate power supplies a third wire should be used to ensure a common voltage level Connect Pin 1 or Pin 6 J7 to Pin 1 J3 of the BARIX X8 When the two devices need to be conn...

Страница 23: ... set coil and write register commands In addition the state of the outputs can be read back using the read register command In the coil address map only positions 1 8 Modbus RTU addresses 0 7 are populated in the BARIX X8 which are mapped to outputs 1 8 Write access to any other address is prohibited In the register address map the outputs can be written simultaneously by accessing register 1 Bit ...

Страница 24: ... write permanent information like shipping date system ID location etc The next 16 bytes are used as configuration registers The remaining registers 290 512 can be used to store user information Device information such as device ID software version etc can be accessed using standard register read commands This information is read only and cannot be overwritten The information is accessible using s...

Страница 25: ...conds Register 273 Pull up resistor yes no 1 yes 0 no Register 274 Serial interface speed Bit 0 0 selects 19200 baud 1 selects 9600 baud WIEGAND support Bit 6 0 disabled 1 WIEGAND support enabled Serial interface parity Bit 7 0 Even parity 1 No parity Register 275 This register holds the Modbus address of the unit Register 276 I O function setting 1 output 0 input Register 277 289 Reserved for fut...

Страница 26: ...re inp 6 R 10 Live I O analog temperature inp 7 R 11 High Byte Bitmap of TS temperature sensors found at Power Up Low Byte Received WIEGAND Bits R W 12 16 WIEGAND data shift registers R W 17 256 Reserved not accessible 257 Device type hex 0xB2 R WO 258 Firmware version R WO 259 Serial number 1st part R WO 260 Serial number 2nd part R WO 261 264 reserved R WO 265 272 One time writable for installer...

Страница 27: ...X8 V01 05 10 26 2006 Detailed coils map please note that in the protocol address in Mobus RTU is the coil number less one Coil Function 1 8 Output 0 7 9 65536 Reserved do not access Modbus Register Map 21 Complete Coils Map ...

Страница 28: ......

Страница 29: ...ector blocks for wires AWG28 AWG16 0 08 1 3 mm2 RS 485 9600 and 19200 Baud 8 bit even or no parity 12 to 24 VAC 9 to 30 VDC 1 Watt max 1 LED for CPU heartbeat 2 LED for active traffic indication 1 LED reserved High quality plastic 34 grams Case diameter 2 52mm height 0 9 23mm 2 removable mounting brackets width 0 36 9 mm length 2 76 70mm 0 2 5mm holes center distance 2 36 60mm Internal connector f...

Страница 30: ......

Страница 31: ... product without notice All trademarks mentioned belong to their respective owners Barix BARIX X8 and Barionet are trademarks of Barix AG Switzerland and are registered in certain countries Barix AG Barix Technology Inc Seefeldstrasse 303 2182 Helena Rd 8008 Zürich St Paul MN 55128 SWITZERLAND USA Phone 41 43 433 2211 Phone 866 815 0866 Fax 41 44 274 2849 Fax 209 755 8435 Internet web www barix co...

Страница 32: ......

Отзывы: