Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Communicating with external device
Message
From
25/09/1998 08:25:56
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00140498
Message ID:
00140767
Views:
27
>>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.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform