
2CMC489001M0201
188
G13
Revision: A
User Manual
JSON Communication
User can configure maximum of 4 I/O ports in the meter, either input or
output.
•
port [int] - Can be 1, 2, 3 or 4
•
reset [array] - Array can include 'storedstate', 'counter' or both.
Applicable in case of input only.
•
currentstate [int] - 1 to set to ON, 0 to set to OFF. Applicable in case
of outputs only.
Some possible payload examples:
•
port1 as output, and its state is set to OFF state.
{ "iostatus": [ { "port": 1, "currentstate": 0 }, { "port": 2, "reset": [
"storedstate", "counter" ] } ] }
* Port1 as output, and its state is set to OFF state,
Port2 as input, and its reset array contains ["storedstae","counter"]
{
"iostatus": [
{
"port": 1,
"currentstate": 0
},
{
"port": 2,
"reset": [
"storedstate",
"counter"
]
}
]
}
•
Port1 as output, and its state is set to OFF state,
Port4 as output, and it's state is set to ON state
{
"iostatus": [
{ "port": 1, "currentstate": 0 }, { "port": 4, "currentstate": 1 } ] }
•
Port3 as input, and it's reset array contains ["storedstae","counter"],
Port4 as output, and it's state is set to ON state
{
"iostatus": [
{ "port": 3, "reset": [ "storedstate", "counter" ] }, { "port": 4,
"currentstate": 1 } ] }
Examples
• https://192.168.1.12/meters/ABB_8/io