- Код: Выделить всё
- macro_command main()
bool w, r
GetData(r, "MODBUS RTU (Adjustable)", 4x_Bit, 514.00, 1)
if w == true then
r = false
SetData(r, "MODBUS RTU (Adjustable)", 4x_Bit, 514.00, 1)
end if
GetData(w, "MODBUS RTU (Adjustable)", 4x_Bit, 530.00, 1)
if r == true then
w = false
SetData(w, "MODBUS RTU (Adjustable)", 4x_Bit, 530.00, 1)
end if
end macro_command