Analog I/O
Analog inputs allow the PLC to read variable values from sensors, such as temperature, pressure, or flow, by converting physical measurements into electrical signals, typically in the form of voltage (e.g., 0-10V) or current (e.g., 4-20mA). Conversely, analog outputs enable the PLC to control devices like motors, valves, or actuators by sending continuous electrical signals to adjust their operation with precision. These I/O channels are crucial for processes that require more than simple on/off control, providing fine-tuned adjustments to optimize performance in dynamic environments. Analog I/O API provides interface for controlling all analog inputs and outputs on your controller.
API Reference
Responses
200
Successful Response
application/json
get
GET /controller/ai HTTP/1.1
Host: robopipe-1.local
Accept: */*
200
Successful Response
[
{
"dev": "text",
"circuit": "text",
"modes": {
"ANY_ADDITIONAL_PROPERTY": {
"value": 1,
"unit": "text",
"range": []
}
},
"mode": "Voltage"
}
]
Path parameters
circuitstringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /controller/ai/{circuit} HTTP/1.1
Host: robopipe-1.local
Accept: */*
{
"dev": "text",
"circuit": "text",
"modes": {
"ANY_ADDITIONAL_PROPERTY": {
"value": 1,
"unit": "text",
"range": []
}
},
"mode": "Voltage"
}
Path parameters
circuitstringRequired
Body
modestring · enumOptionalDefault:
Voltage
Possible values: Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
POST /controller/ai/{circuit} HTTP/1.1
Host: robopipe-1.local
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"mode": "Voltage"
}
{
"dev": "text",
"circuit": "text",
"modes": {
"ANY_ADDITIONAL_PROPERTY": {
"value": 1,
"unit": "text",
"range": []
}
},
"mode": "Voltage"
}
Body
modestring · enumOptionalDefault:
Voltage
Possible values: Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
POST /controller/ai HTTP/1.1
Host: robopipe-1.local
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"mode": "Voltage"
}
[
{
"dev": "text",
"circuit": "text",
"modes": {
"ANY_ADDITIONAL_PROPERTY": {
"value": 1,
"unit": "text",
"range": []
}
},
"mode": "Voltage"
}
]
Responses
200
Successful Response
application/json
get
GET /controller/ao HTTP/1.1
Host: robopipe-1.local
Accept: */*
200
Successful Response
[
{
"dev": "text",
"circuit": "text",
"modes": {
"ANY_ADDITIONAL_PROPERTY": {
"value": 1,
"unit": "text",
"range": []
}
},
"value": 1,
"mode": "Voltage"
}
]
Path parameters
circuitstringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /controller/ao/{circuit} HTTP/1.1
Host: robopipe-1.local
Accept: */*
{
"dev": "text",
"circuit": "text",
"modes": {
"ANY_ADDITIONAL_PROPERTY": {
"value": 1,
"unit": "text",
"range": []
}
},
"value": 1,
"mode": "Voltage"
}
Path parameters
circuitstringRequired
Body
valuenumberRequired
modestring · enumOptionalDefault:
Voltage
Possible values: Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
POST /controller/ao/{circuit} HTTP/1.1
Host: robopipe-1.local
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"value": 1,
"mode": "Voltage"
}
{
"dev": "text",
"circuit": "text",
"modes": {
"ANY_ADDITIONAL_PROPERTY": {
"value": 1,
"unit": "text",
"range": []
}
},
"value": 1,
"mode": "Voltage"
}
Body
valuenumberRequired
modestring · enumOptionalDefault:
Voltage
Possible values: Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
POST /controller/ao HTTP/1.1
Host: robopipe-1.local
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"value": 1,
"mode": "Voltage"
}
[
{
"dev": "text",
"circuit": "text",
"modes": {
"ANY_ADDITIONAL_PROPERTY": {
"value": 1,
"unit": "text",
"range": []
}
},
"value": 1,
"mode": "Voltage"
}
]
Last updated