Dataman 40Pro User Manual
Page 165
Common notes
165
The addressing looks like following:
the first Byte at the lowest address
Buffer Address Data
FF0000H ABH
FF0001H CDH
FF0002H EFH
FF0003H 43H
FF0004H 21H
/writebufferex:INDEX:ADDR1:B11,B12,B13,B14,...,B1N[::ADDR2:B21,B22,B23,B24,...,B2M]..
Command /writebufferex is used to write block of Bytes to PG4UW
main buffer at specified address. The command is very similar to
command /writebuffer, except one more parameter – INDEX.
The INDEX parameter specifies the order of buffer, where data will
send. The main buffer has index '1'. The first secondary buffer has
index '2', etc. Please note, the secondary buffer(s) is(are) available for
some kinds of devices only (e.g. Microchip PIC16F628). The kind of
buffer indexed by parameter buffindex depends on order of buffer in
application PG4UW in dialog View/Edit buffer. For example device
Microchip PIC16F628 has additional buffer with label "Data
EEPROM". This buffer can be accessed for data write(s) by this
function when buffindex = 2 is specified.
Example 1:
/writebufferex:1:7FF800:12,AB,C5,D4,7E,80
The command is equivalent to command
/writebuffer:1:7FF800:12,AB,C5,D4,7E,80
described in section about command /writebuffer.
Example 2:
/writebufferex:2:2F:12,AB,C5,D4,7E,80
The command writes 6 Bytes 12H ABH C5H D4H 7EH 80H to secondary buffer
with index “2” at address 2FH. The addressing looks like following:
the first Byte at the lowest address
Buffer Address Data
00002FH 12H
000030H ABH
000031H C5H
000032H D4H
000033H 7EH
000034H 80H
Basic rules for using of executive command line parameters:
1. program pg4uwcmd.exe must be located in the same directory as program pg4uw.exe
2. if pg4uw.exe is not running when pg4uwcmd.exe is called, it will be automatically started
3. command line parameters are not case sensitive
4. command line parameters can be used when first starting of program or when program is
already running
5. if program is already running, then any of command line operation is processed only when
program was not busy (no operation was currently executing in program). Program must
be in basic state, i.e. main program window focused, no modal dialogs displayed, no
menu commands opened or executed