Re: Всего понемногу (реанимация 4 axis гравера по стеклу)
Добавлено: 23 мар 2012, 10:32
кажись нашли слабинку в "великом и могучем"
в маче это можно сделать в скрипте через Getdro(номер)
Статьи, обзоры, цены на станки и комплектующие.
https://cnc-club.ru/forum/
параметр G5x_indexNightV писал(а):в проге emctop (EMC Status) это как-то реализовано
Код: Выделить всё
vladimir@cnc2:~/emc2/configs/cnc2$ python state.py
File "state.py", line 46
SyntaxError: Non-ASCII character '\xd0' in file state.py on line 46, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
vladimir@cnc2:~/emc2/configs/cnc2$ python state.py
<emc.stat object at 0x9c03d30>
vladimir@cnc2:~/emc2/configs/cnc2$
Код: Выделить всё
vladimir@cnc2:~/emc2/configs/cnc2$ python state.py
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'acceleration', 'active_queue', 'actual_position', 'adaptive_feed_enabled', 'ain', 'angular_units', 'aout', 'axes', 'axis', 'axis_mask', 'block_delete', 'command', 'current_line', 'current_vel', 'cycle_time', 'debug', 'delay_left', 'din', 'distance_to_go', 'dout', 'dtg', 'echo_serial_number', 'enabled', 'estop', 'exec_state', 'feed_hold_enabled', 'feed_override_enabled', 'feedrate', 'file', 'flood', 'g5x_index', 'g5x_offset', 'g92_offset', 'gcodes', 'homed', 'id', 'inpos', 'input_timeout', 'interp_state', 'interpreter_errcode', 'joint_actual_position', 'joint_position', 'kinematics_type', 'limit', 'linear_units', 'lube', 'lube_level', 'max_acceleration', 'max_velocity', 'mcodes', 'mist', 'motion_line', 'motion_mode', 'motion_type', 'optional_stop', 'paused', 'pocket_prepped', 'poll', 'position', 'probe_tripped', 'probe_val', 'probed_position', 'probing', 'program_units', 'queue', 'queue_full', 'read_line', 'rotation_xy', 'settings', 'spindle_brake', 'spindle_direction', 'spindle_enabled', 'spindle_increasing', 'spindle_override_enabled', 'spindle_speed', 'spindlerate', 'state', 'task_mode', 'task_paused', 'task_state', 'tool_in_spindle', 'tool_offset', 'tool_table', 'velocity']
vladimir@cnc2:~/emc2/configs/cnc2$Код: Выделить всё
print s.gcodesКод: Выделить всё
vladimir@cnc2:~/emc2/configs/cnc2$ python state.py
(0, 800, -1, 170, 400, 210, 900, 940, 540, 490, 990, 640, -1, 970, 911, 80)
_
Код: Выделить всё
vladimir@cnc2:~/emc2/configs/cnc2$ emc cnc2.ini
EMC2 - 2.5.0-pre2-626-g402b6cd
Machine configuration directory is '/home/vladimir/emc2/configs/cnc2'
Machine configuration file is 'cnc2.ini'
Starting EMC2...
INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
_
Код: Выделить всё
vladimir@cnc2:~/emc2/configs/cnc2$ emc cnc2.ini
EMC2 - 2.5.0-pre2-626-g402b6cd
Machine configuration directory is '/home/vladimir/emc2/configs/cnc2'
Machine configuration file is 'cnc2.ini'
Starting EMC2...
cnc2.hal:21: execv(state.py): No such file or directory
INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
_
Код: Выделить всё
Starting EMC2...
INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)