TDT BH32 Manual Download Page 13

System 3

17-29

BH32 Behavioral Cage Controller

GET_SET_CONFIG

4

Used to set various device parameters. Can directly set Device 

number, RS232 baud rate, and the I/O configuration.

Parameters are 16 bit values, but only one is sent per 32-bit data 

word.

A parameter number of 0 will return all configuration parameters.

Parameter number 

1    =: get/set device number

2-3 =: set RS232 baud rate

4-5 =: read actual baud rate

6    =: read bank-wide settings

0b0101

Message:

Device #

Group

0b0 0b0000100

Param # 

Param mask(s)/val(s) 

(optional)

Reply:

Device #

Group

0b1

0b0000100

Param # 

Param val(s)

GET_SET_TIMESTAMP

5

Used to set/read the device’s internal clock. If a data word is 

sent, the clock is set to the value in the data words, interpreted 

as a single 64-bit value in microseconds.

Message:

Device #

Group

0b0 0b0000101

0x00000000

64-bit timestamp (optional)

Reply:

Device #

Group

0b1

0b0000101

0x00000000

64-bit timestamp

GET_SET_TRACK

6

Sets which individual pins are in TRACK mode, meaning a 64-bit 

timestamp is recorded every time the pins value changes. The 

BH32 will reply with all recorded timestamps (if any) for that pin 

and flush the timestamp memory for that pin. Up 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_NETCONFIG

7

Currently for internal TDT use only.

GET_SET_SERIAL

8

Currently for internal TDT use only.

GET_SET_POLL

9

When period is non-zero, the BH32 will send a POLL_EVENT 

message to Reply IP Address at the specified period. Set period to 

0 to stop sending POLL_EVENT messages.

Message:

Device #

Group

0b0 0b0001001

Reply IP 

Address

32-bit period, in ms (optional)

Reply:

Device #

Group

0b1

0b0001001

Reply IP 

Address

32-bit period, in ms

POLL_EVENT

10

See GET_SET_POLL for information about configuring a device to 

send this message.

Message:

Device #

Group

0b1

0b0001010

32-bit period, 

in ms

I/O state (32-bits)

Reply:

None

GET_SET_TRIGGER

11

When the Trigger Mask is non-zero, the device will enter 

TRIGGER state. A TRIGGER_EVENT message is sent whenever a 

pin indicated in the Trigger Mask changes value.

Message:

Device #

Group

0b0 0b0001011

Reply IP 

Address

Trigger Mask (optional)

Reply:

Device #

Group

0b1

0b0001011

Reply IP 

Address

Trigger Mask

TRIGGER_EVENT

12

See GET_SET_TRIGGER for information about configuring the 

BH32 to send this message.

Message:

Device #

Group

0b1

0b0001010

Trigger Mask

I/O state (32-bits)

Reply:

None

Name

Number

Description

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: