Elatec GmbH
Page 34 of 65
7.4.4.3
Increment Value Block ‘+’
Use this command to increment a value block by a defined value. A read after increment is performed
automatically. The command fails if the specified block is not formatted as value block. You must log
into the respective sector before this command can be executed.
Command:
‘+[BlockAddr][Value]’
Parameters
Description
[BlockAddr]
Block address (1 byte)
[Value]
Value to be added (4 bytes)
Answer
Answer
Description
Data<CR><LF>
Value of block
‘F<CR><LF>’
Error: read failure
‘I<CR><LF>’
Error: invalid block format
‘X<CR><LF>’
Error: Bad value operation, e.g. sign overflow
Examples
Command
Description
+0800000001
Increments block 08 by 00000001h
+0812345678
Increments block 08 by 12345678h
7.4.4.4
Decrement Value Block ‘-’
Use this command to decrement a value block by a defined value. A read after decrement is
performed automatically. The command fails if the specified block is not formatted as value block. You
must log into the respective sector before this command can be executed.
Command:
‘-[BlockAddr][Value]’
Parameters
Description
[BlockAddr]
Block address (1 byte)
[Value]
Value to be subtracted (4 bytes)
Answer
Answer
Description
Data<CR><LF>
Value of block
‘F<CR><LF>’
Error: read failure
‘I<CR><LF>’
Error: invalid block format
‘X<CR><LF>’
Error: Bad value operation, e.g. sign overflow
Examples
Command
Description
-0800000001
Decrements block 08 by 00000001h
-0812345678
Decrements block 08 by 12345678h