43 lines
788 B
JavaScript
43 lines
788 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 开启plc读取线程
|
|
export function startReadPlc() {
|
|
return request({
|
|
url: '/device/operation/startAllThread',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
// 停止plc读取线程
|
|
export function stopReadPlc() {
|
|
return request({
|
|
url: '/device/operation/stopAllThread',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 开启plc调度线程
|
|
export function startSchedule() {
|
|
return request({
|
|
url: '/device/operation/startAllThread2',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 关闭plc调度线程
|
|
export function stopSchedule() {
|
|
return request({
|
|
url: '/device/operation/stopAllThread2',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 关闭plc调度线程
|
|
export function getScheduleStatus() {
|
|
return request({
|
|
url: '/device/operation/getScheduleStatus',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|