>>Hi : I just got a time attendant clock and I am trying to communicate with it. The manual says for example if I want to activate the buzzer,
>>I have to send the following command trough the serial port ( I know how to do that). Unit Id (1) in Integer format, the word BZZR in ASCII format. Does anyone knows what integer format means. The output information has to be sended in alphanumeric so if i do something like : thisform.comm1.output=1, produces an error. Any suggestions, thanks
>
>Integer is a four-byte number. So your integer should look like this:
>first three bytes should contain zeros, the last byte should contain 1 (chr(1))
The data type integer varies by situation; having dealt with scales before, it's extremely doubtful that it's a 32 bit unsigned long. Also, the order of presentation varies according to how the hardware implements the data type, for example, while Motorola-based 32 bit processors represent a 0x00000001 memory as (0x00)(0x00)(0x00)(0x01), an Intel 32 bit x86 machine would represent it as (0x01)(0x00)(0x00)(0x00) (this is the Big Endian/Little Endian representation issue.)