WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Serial
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Send Power On Hex Command to a Nec Display

 Keywords:  pPutBinary Send Power On Hex Command Nec Display IntControl 42 BinaryPokeHex

; Send Power On Hex Command to a Nec Display.
AddExtender("wwser44i.dll")

PowerOn = "01 30 41 30 41 30 43 02 43 32 30 33 44 36 30 30 30 31 03 73 0D"

port=pComOpen("COM4",0,9600,"8N1","NONNON")

BinBuf = BinaryAlloc(100)
Stored = BinaryPokeHex(BinBuf, 0, PowerOn)
Buffer = IntControl(42,BinBuf,0,0,0)
pPutBinary(port, Buffer, stored)
BinaryFree(BinBuf)

resp = pGetString(port,500) ; Get upto 500 characters of response
Message("Response is",resp) ; Display it

pComClose(port,0)
Exit

Article ID:   W17601
Filename:   Send Power On Hex Command to a Nec Display.txt
File Created: 2012:07:12:14:34:12
Last Updated: 2012:07:12:14:34:12