134 lines
3.2 KiB
Tcl
134 lines
3.2 KiB
Tcl
# vim: ft=tcl ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent
|
|
driver aerolas_doppler = {
|
|
protocol = modbus_ap;
|
|
class = instrument;
|
|
simulation_group = motor_simulation;
|
|
group = {
|
|
readable = 1;
|
|
writeable = 1;
|
|
type = int;
|
|
fetch_function = getUShort;
|
|
read_function = rdUShort;
|
|
write_function = wrUShort;
|
|
var run_cmd = {
|
|
allowed = "0,1";
|
|
read_command = "1";
|
|
write_command = "1";
|
|
}
|
|
type = float;
|
|
fetch_function = getFloat;
|
|
read_function = rdFloat;
|
|
write_function = wrFloat;
|
|
var amplitude = {
|
|
read_command = "2";
|
|
write_command = "2";
|
|
lowerlimit = 0; upperlimit = 75;
|
|
units = "mm";
|
|
}
|
|
var velocity = {
|
|
type = float;
|
|
read_command = "4";
|
|
write_command = "4";
|
|
lowerlimit = 0; upperlimit = 4700;
|
|
units = "mm/S";
|
|
}
|
|
}
|
|
group read_write = {
|
|
readable = 1;
|
|
data = false; nxsave = false; mutable = false;
|
|
type = int;
|
|
fetch_function = getUShort;
|
|
read_function = rdUShort;
|
|
write_function = wrUShort;
|
|
var move_profile = {
|
|
allowed = "0,1";
|
|
read_command = "7";
|
|
write_command = "7";
|
|
}
|
|
fetch_function = getULong;
|
|
read_function = rdULong;
|
|
write_function = wrULong;
|
|
var te_ok_cycles = {
|
|
read_command = "8";
|
|
write_command = "8";
|
|
}
|
|
var te_ok_time = {
|
|
read_command = "10";
|
|
write_command = "10";
|
|
}
|
|
}
|
|
group read_only = {
|
|
readable = 1;
|
|
data = false; nxsave = false; mutable = false;
|
|
type = int;
|
|
fetch_function = getUShort;
|
|
read_function = rdUShort;
|
|
var run_state = { read_command = "1001"; }
|
|
var arc_state = { read_command = "1017"; }
|
|
var version_number = { read_command = "1019"; }
|
|
fetch_function = getULong;
|
|
read_function = rdULong;
|
|
var move_error_code = { read_command = "1004"; }
|
|
var move_abs_counter = { read_command = "1006"; }
|
|
var move_abs_counter = { read_command = "1006"; }
|
|
var calc_error_code = { read_command = "1020"; }
|
|
type = float;
|
|
fetch_function = getFloat;
|
|
read_function = rdFloat;
|
|
var move_amplitude_min = { read_command = "1008"; }
|
|
var move_amplitude_max = { read_command = "1010"; }
|
|
var move_velocity_min = { read_command = "1012"; }
|
|
var move_velocity_max = { read_command = "1014"; }
|
|
var braking_distance = { read_command = "1022"; }
|
|
var velocity_ratio = { read_command = "1024"; }
|
|
var continuous_acceleration = { read_command = "1026"; }
|
|
var maximum_acceleration = { read_command = "1028"; }
|
|
}
|
|
|
|
code fetch_function getFloat = {
|
|
@TCL
|
|
set cmd "1:3:${cmd_str}:1:F32"
|
|
@END
|
|
}
|
|
code read_function rdFloat = {
|
|
@TCL
|
|
@END
|
|
}
|
|
code write_function wrFloat = {
|
|
@TCL
|
|
set cmd "1:16:${cmd_str}:1:F32:${par}"
|
|
@END
|
|
}
|
|
|
|
code fetch_function getUShort = {
|
|
@TCL
|
|
set cmd "1:3:${cmd_str}:1:U16"
|
|
@END
|
|
}
|
|
code read_function rdUShort = {
|
|
@TCL
|
|
@END
|
|
}
|
|
code write_function wrUShort = {
|
|
@TCL
|
|
set cmd "1:16:${cmd_str}:1:U16:${par}"
|
|
@END
|
|
}
|
|
|
|
code fetch_function getULong = {
|
|
@TCL
|
|
set cmd "1:3:${cmd_str}:1:U32"
|
|
@END
|
|
}
|
|
code read_function rdULong = {
|
|
@TCL
|
|
@END
|
|
}
|
|
code write_function wrULong = {
|
|
@TCL
|
|
set cmd "1:16:${cmd_str}:1:U32:${par}"
|
|
@END
|
|
}
|
|
|
|
}
|