Fulltext results:
- motion_commands_from_plc
- ===== Running Motion (Positioning) commands from PLC ===== ==== Option 1 ==== Motion Controller and PLC running on myCNC controllers as independent tasks ... ronment. There is API to run motion commands from PLC. This features used for wide range of procedures ... e **g0moveA** is used to send motion command from PLC to motion controller. This procedure has 3 parame
- plc_examples
- ==== PLC Examples ==== //**NOTE**: The myCNC team recommends utilizing the examples provided in this m... neral, using these examples as the basis for your PLCs/macro commands allows for an easier setup process.// * [[plc:M07 Mist Coolant ON]] * [[plc:M03 Simple Spindle ON procedure]] * [[plc:plc_height_map|Getting a H
- plc_height_map
- There is a Height Map settings widget. {{mycnc:plc:mycnc-height-map-001.png}} The following paramet... 8) = saveHCCalibration ==== Log Handler through PLC M-functions ==== As an example add M80 procedure to start-stop Height Map Log file <code C M80.plc> main() { gvarset(5740,eparam); exit(99); }; ... position to the log file - code M85 <code C M85.plc> main() { gvarset(5730,0); exit(99); }; </cod
- plc
- ====== PLC ====== PLC stands for "Programmable Logic Controller". PLC controller can load and run small binary programs (PLC procedures). PLC procedure should be written in a
- spindle_speed_control_through_-10v_dac_channel_et10
- ber of ways to access to DAC Offset register. == PLC controller (Hardware) == DAC offset register is ... to be written high 4 bits is DAC channel Message PLCCMD_SET_CNC_EXTVAR should be sent to myCNC control core from PLC to get access [[mycnc:extern_variables|Extern CNC... elay should be initiated to push the message from PLC to myCNC Core. <code c>#define PLCCMD_SET_CNC_EX
- software_plc_examples
- ==== Software PLC examples ==== //**NOTE**: The myCNC team recommends utilizing the examples provided ... neral, using these examples as the basis for your PLCs/macro commands allows for an easier setup proces... * [[Controller Peripherals Test - BV17]] * [[plc:Charge Pump]] === Endless loop for G-code program === An endless loop can be made in Software PLC procedure. PLC procedure contains an endless loop
- plc_gas_cutting_implementation
- implemented on myCNC controllers through Hardware PLC. === Simple Gas Cutting Control. === {{gas-cont... valve * OC - Cutting Oxygen valve <code c M71.plc> #include pins.h #include vars.h main() { port... 9); }; </code> myCNC software HMI has access to PLC variable **proc** and able to display its value o... nt status (Ignition/Preheat/Cutting/Purge) inside PLC procedure, then this status can be displayed on m
- predefined_procedures
- ==== PLC Predefined (Reserved) Procedure names ==== Most of PLC procedure names represent miscellaneous code. However there are a few reserved PLC names used as a standard event handlers. Table. List of reserved PLC Procedures ^ PLC name ^ PLC description ^ | ES
- управление_шпинделем_подключенным_через_pulse-dir
- эти данные в контроллер. При доступе из Hardware PLC необходимо использовать запись в регистр "сырого" значения (8130) и самостоятельно (в коде PLC) учитывать множитель. Изначально независимый ген... . 1. Добавить код включения генератора в Hardwre PLC процедуру включения шпинделя - M03.plc. Код удобно добавить в конец процедуры перед вызовом exit(99)
- eparam @plc:plc
- 16-bit integer parameters P and L are sent to the PLC procedure in the **eparam** variable. \\ P-parame... simple lines of code can be used in the necessary PLC procedure: <code>P=eparam&0xFFFF;//P-parameter L... some value from the G-code or macro to a hardware PLC command which will use and incorporate this value... ince it relies on calling on a couple of Hardware PLC commands in order to perform the homing procedure
- m88_m89_stop_motion_from_plc_if_input_pin_activated
- ===== M88, M89 PLC procedures. Stop Motion if Input pin activated ===== Video recap of the manual is a... IGA?large}} One of the most popular job for the PLC procedure is moving to given direction till input... others This procedure can be handled in Hardware PLC. We offer M88 and M89 PLC procedures which do this job as a standard procedure. However, it can be cus
- plc_modbus_api
- ===== PLC/Modbus API ===== {{youtube>xb8TfhysbF8?large}} A number of Variables from [[mycnc:global_va... register will send read inquiry to Modbus device (PLC controller will be in Sleep till Register value r... ster 0** | | 60091 | **Input register 32** | ===PLC code examples=== <code c> main() { gvarset (600... e exit(99); };</code> Below is a more realistic PLC example which involves a WP8028ADAM Modbus device
- plc_show_custom_message_box
- ===== Show Custom Message Box from PLC ===== In order to create a custom popup window in myCNC softwar... event like an emergency button press, a software PLC procedure can be added to the myCNC software for ... irements. In order to do so, go to CNC Settings > PLC > Software PLC, then create a new popup window following the instructions below: 1. Press the **Creat
- how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm
- cedure handler can be implemented with **Software PLC**: {{:plc:homing-handler-002.png}} **NOTE:** The homing procedure handler is OFF by default as it ha... g of the program which immediately terminates the PLC as soon as it is started. In order to enable the ... the exit(99); line to comment it out so that the PLC can proceed uninterrupted: {{:plc:homing-handler
- load_from_template
- =====Load PLC from template===== In order to load PLC from template, please use the instructions below: 1. Open **CNC Settings > Config > PLC > Hardware PLC**. You will be presented with the following screen: {{:plc:plc-templates-001.jpg}} 2.