14. Write scaling factor – METWRITESCALINGFACTOR(value)
Using this command the user’s application can write the scaling factor set on the device.
Usually is is a good practice to keep the scaling factor sync-ed with the machine’s scaling
factor setting. Some machines are ignoring this and work on their scaling factor. In that
case, if they are not matching, this will drive you to display error on values.
Command
Description
METWRITESCALINGFACTOR(value)
Requires METRESET after issuing this command, since the
value is loaded only once, at start-up
- Writes the SCALING FACTOR setting for credit/price display. For
example set scaling factor to 10:
METWRITESCALINGFACTOR(10)
Device response
{"DeviceResponse": "Acknowledge","MessageID": 101}
{"Error": "Syntax Error","ErrorCode": 1001}
{"Error": "Unknown command","ErrorCode": 1002}
15. Read decimal point - METREADDECIMALPOINT
Using this command the user’s application can read the decimal point on the device.
Usually is is a good practice to keep the decimal point sync-ed with the machine’s decimal
point setting. Some machines are ignoring this and work on their decimal point setting. In
that case, if they are not matching, this will drive you to display error on values.
Command
Description
METREADDECIMALPOINT
- Reads the DECIMAL POINT settings for credit/price display.
Below is an example answer to the METREADDECIMALPOINT
command (where decimal point is 2, meaning 2 decimals after the
decimal point):
Device response
{"DeviceResponse":"ReadDecimalPoint","DecimalsNumber":"2"}
16. Write decimal point – METWRITEDECIMALPOINT(value)
Using this command the user’s application can write the decimal point on the device.
Usually is is a good practice to keep the decimal point sync-ed with the machine’s decimal
point setting. Some machines are ignoring this and work on their decimal point setting. In
that case, if they are not matching, this will drive you to display error on values.
Command
Description
METWRITEDECIMALPOINT(value)
Requires METRESET after issuing this command, since the
value is loaded only once, at start-up
- Writes the DECIMAL POINT. For example set decimal point to 2:
METWRITESCALINGFACTOR(2)
Device response
{"DeviceResponse": "Acknowledge","MessageID": 101}
{"Error": "Syntax Error","ErrorCode": 1001}
{"Error": "Unknown command","ErrorCode": 1002}
© - 2018 – AUTOMATROM SRL –