Hexadecimal codes
Denis
Junior Member
Hi
I have to program a Vidikron plasma. In the manual all serial codes are listed as Hexadecimal code ( ex: 9FH 80H 60H 4EH 00H CDH )
How I have to write my code to get correct command ?
SEND_STRING dvPLASMA, "$9FH,$80H,$60H,$4EH,$00H,$CDH" ?
OR
SEND_STRING dvPLASMA, "$9F,$80,$60,$4E,$00,$CD" ?
I have to program a Vidikron plasma. In the manual all serial codes are listed as Hexadecimal code ( ex: 9FH 80H 60H 4EH 00H CDH )
How I have to write my code to get correct command ?
SEND_STRING dvPLASMA, "$9FH,$80H,$60H,$4EH,$00H,$CDH" ?
OR
SEND_STRING dvPLASMA, "$9F,$80,$60,$4E,$00,$CD" ?
Comments
-
Hi Denis,
The first option you posted won't compile and will generate a syntax error.
You're 2nd option is correct:
SEND_STRING dvPLASMA, "$9F,$80,$60,$4E,$00,$CD"
The $ denotes Hex for AMX. -
Thanks
Thanks Joe !
One thing...I don't know why I don't try this before post this thread, I'm comfused........... -
The 'H' I believe indicates that it is a Hex value. The letters would be a dead give away but what if the hex value is 15 or 29. Is it hex or deciamal or other.
-
True, but the NetLinx compiler doesn't recognize that, which is the issue in this example.Thomas Hayes wrote:The 'H' I believe indicates that it is a Hex value. The letters would be a dead give away but what if the hex value is 15 or 29. Is it hex or deciamal or other. -
Yes, you are correct Dave, I was only trying to indicate that the 'H' although written and denotes Hex it is not used with AMX programming. Sorry for the confusion.
-
Tanks
Thanks guys
I appreciate your specifications for " H "
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
