25. Read product counter - METREADPRODUCTCOUNTER(n)
Using this command the user’s application can read the non-volatile counter representing
the total (pieces) sales for a product.
Command
Description
METREADPRODUCTCOUNTER(n)
Reads the product
Below is an example where the device shows a number of 16
poducts sold for selection number 1 as an answer to
METREADPRODUCTCOUNTER(1)
Device response
{"DeviceResponse":"ReadProductCounter","ProductNumber":"1","ProductSalesNumber":"16"}
26. Write product counter – METWRITEPRODUCTCOUNTER(n,value)
Using this command the user’s application can write the non-volatile counter representing
the total (pieces) sales for a product. It can be used to set this value to 0 when the vending
machine operator is performing a refill operation.
Command
Description
METWRITEPRODUCTCOUNTER(n,value)
- Writes the product counter . For example resetting the counter
for product 1 on refill: METWRITEPRODUCTCOUNTER(1,0)
Product number can take values between 1 and 96 and number of
sales can take values between 0 and 65535 (2 bytes)
Device response
{"DeviceResponse": "Acknowledge","MessageID": 101}
{"Error": "Syntax Error","ErrorCode": 1001}
{"Error": "Unknown command","ErrorCode": 1002}
27. Read vending settings - METREADVENDINGSETTINGS
Using this command the user’s application can read the device vending settings
Command
Description
METREADVENDINGSETTINGS
Reads the device vending settings.
Device response
{"DeviceResponse":"ReadVendingSettings","VendingSettingsValue":"7"}
The value is representing the byte at address 384 in memory map table.
28. Write vending settings – METWRITEVENDINGSETTINGS(value)
Using this command the user’s application can write the non-volatile vending settings,
according to the byte at address 384 in memory map (page 6).
Command
Description
METWRITEVENDINGSETTINGS(value)
Requires METRESET after issuing this command, since the
value is loaded only once, at start-up
Writes the vending settings in the device’s memory
Device response
{"DeviceResponse": "Acknowledge","MessageID": 101}
{"Error": "Syntax Error","ErrorCode": 1001}
{"Error": "Unknown command","ErrorCode": 1002}
© - 2018 – AUTOMATROM SRL –