TDT BH32 Manual Download Page 10

17-26

System 3

BH32 Behavioral Cage Controller

BH32

 

Circuit

 

Design

To communicate with an RZ device, the BH32 must first be paired with the RZ 

device. See “RZ Configuration” on page 17-22, for more information. Once paired, 

there are several circuit macros available to access the BH32 using the UDP 

interface on an RZ device. If using one, two, three or four BH32s on the network, 

use the RZ_BH_Send_1-4Ch and RZ_BH_Rec_1-4Ch macros. If using more than 

four BH32s, use the RZ_BH_Send_MC and RZ_BH_Rec_MC macros. All macros can 

be configured to specify the number of BH32s, which corresponds to the size of the 

underlying UDP packets.

RZ_BH_Send

 

Macros

The RZ_BH_Send macros are used to send 32-bit words from the RZ over UDP to 

BH32 devices numbered from 1 to 4. The macro automatically sends a new packet 

if any of the Inputs change value. The 32-bit integer represents the current state of 

all I/O on the BH32 device. The ordering is as follows:
| Bit31 …………………………………. Bit0 |
| A8 … A1 | B8 … B1 | C8 … C1 | D8 … D1 |

Example: 

To change the state of D1 on BH32 Device Number 2, toggle the first bit of Input-

2 of RZ_BH_Send_1-4Ch or channel two of RZ_BH_Send_MC’s Input. 

 

An output labeled “Busy” indicates if the macro is currently in the process of 

sending out a packet. The duration of the busy signal is dependent on the number 

of BH32 devices (it takes NumberOf2 samples to send a packet).

Note:

Since the data packets are sent serially, it is recommended that the macro inputs 

are latched during transmission to ensure that the packet contains data from the 

same sample in time.

RZ_BH_Rec

 

Macros

The RZ_BH_Rec macros are used to receive 32-bit words from networked BH32 

devices through the RZ UDP port. The structure of each 32-bit word is described in 

the Packet Structure section below.

 

Summary of Contents for BH32

Page 1: ...ameter Standard Molex Pin and Socket connectors on the top panel For pinouts see BH32 Technical Specifications on page 17 30 Power The BH32 logic board is powered by either a 6 9V 3A center negative a...

Page 2: ...and current state of all bits in each bank 3 NetBIOS name and IP address 4 IP address of paired RZ device if paired See RZ Configuration on page 17 22 Push and hold the Mode button for two seconds th...

Page 3: ...Controlling the Molex outputs with UDP Serial banks A B only Configure the bank as an output The Molex outputs are low when active The digital output logic is the inverse of the Molex output logic Mo...

Page 4: ...sses configuring the BH32 networking communication and hardware interfaces See RZ UDP Communications Interface on page 1 51 for more information on the basics of networking and the various protocols I...

Page 5: ...er such as Internet Explorer Chrome or Firefox Enter the device s IP address as the web address e g http 10 1 0 100 and press Enter or Enter the NetBIOS name as the web address e g TDT_BHC_32_1001 and...

Page 6: ...ogin information can be changed on the Network Configuration page To access a page that requires authentication 1 Click the navigation link for the page 2 When prompted enter the username and password...

Page 7: ...Device Number is used to identify the BH32 among a network of BH32s For single BH32 use this value should be set to 1 Direction Each Bank can be configured as either Input or Output Logic Level Each...

Page 8: ...and password can be changed on this page If the Enable DHCP check box is checked the IP Address Gateway Address Subnet Mask and DNS server address values are overridden and automatically configured b...

Page 9: ...which supports TCP IP To initialize the PC for a direct connection in Windows XP 1 Physically connect the BH32 Ethernet interface and the PC via an Ethernet crossover cable 2 Click Start Control Panel...

Page 10: ...lly sends a new packet if any of the Inputs change value The 32 bit integer represents the current state of all I O on the BH32 device The ordering is as follows Bit31 Bit0 A8 A1 B8 B1 C8 C1 D8 D1 Exa...

Page 11: ...his writing This header is used by the BH32 and the RZ to identify packets that they should read and process The target device is identified with the next 24 bits of the packet It consists of a 16 bit...

Page 12: ...M mode the BH32 display flashes a prompt for the user to press the input button to set the BH32 device number to the starting device number Message Device Group 0b0 0b0000001 0x00000000 Starting Devic...

Page 13: ...to 256 timestamps total for all pins can be stored in memory Message Device Group 0b0 0b0000110 Pin Number Active 0 or 1 32 bits Reply Device Group 0b1 0b0000110 Pin Number 64 bit timestamp s GET_SET...

Page 14: ...the BH32 will no longer be in RZ_CONTROLLER state and broaast a GET_SET_TRIGGER message on the network with Trigger Mask 0 Message Device Group 0b0 0b0001101 0x00000000 RZ IP Address optional Reply D...

Page 15: ...ion 1 C1 Bank C Bits 1 3 5 and 7 14 C2 Bank C Bits 2 4 6 and 8 2 C3 15 C4 3 C5 16 C6 4 C7 17 C8 5 GND Digital I O Ground 18 A1 Bank A Bits 1 3 5 and 7 6 A2 Bank A Bits 2 4 6 and 8 19 A3 7 A4 20 A5 8 A...

Page 16: ...s are shorted together do not connect a second external power source I O CONNECTORS V Positive Voltage S Signal G Ground Pin Name Description Pin Name Description 1 A1 Bank A Bits 1 3 5 and 7 14 D7 Ba...

Reviews: