User Tools

Site Tools


mycnc:mycnc_profiles:plc-includes-x1366p

PLC Includes for X1366P

The PLC Includes files allow to systematize and share values and functions among the Hardware and Software PLC procedures within your profile. The below list includes information for the default version of the myCNC X1366P Plasma Cutting profile. The information may differ between profiles, as well as different versions of profiles, and should be used as a general reference only.

A list of G-codes within myCNC software is provided here for reference: G-Codes list

File - pins.h

Defines hardware inputs and outputs (refered to via names, such as OUTPUT_MARKER, INPUT_ARC, etc).

NOTE: The pins.h file is present both in the Hardware and Software PLC tabs within your Settings. On Linux systems, the pins.h labels create a link to a single file - when the values are changed in either the Software or the Hardware tab, they also automatically change in the other upon program reload. This implementation does not work under Windows, therefore the programmer must monitor the synchronization on their own and update the values in both files in order for the changes to take effect correctly.

File - func_plasma.h

Contains plasma cuttings functions (typically related to THC, THC triggers, etc)

Included in: M02 End Program, M45 Start Plasma Marking, M71 Start Cutting, M74 Stop Cutting, M271, M272, OFF

start_thc()

Show code

Included in: M45, M71, M271

stop_thc()

Show code

Included in: M02, M74, M271, OFF (inactive),

stop_trigger1()

Show code

Included in: M02, M74, M271, OFF (inactive),

stop_trigger2()

Show code

Included in: currently not utilized in any hardware PLCs by default

start_trigger1()

Show code

Included in: M71, M271

start_trigger2()

Show code

Included in: M02, M74 (inactive), M271 (inactive)

do_wait_pierce()

Show code

Included in: M71, M271

do_wait_plasma()

Show code

Included in: M45, M71, M271

test_lift_after_cut()

Show code

Included in: M02, M74

do_lift_after_cut()

Show code

Included in: M02, M74

File - func.h

General functions (currently contains timeout codes).

Included in: M89, M90, M162

timeout_10ms()

Show code

Included in: currently not utilized in any hardware PLCs by default

timeout_2ms()

Show code

Included in: M90

File - func_m7.h

Included in: M07

Plasma Dot Marking (M07) functions (as described in the G-codes list manual here).

do_move_marking_height()

Show code

Included in: M07

do_marking_probe()

Show code

Included in: M07

File - vars.h

Defines variables within the M-codes.

Included in: M02, M07, M08, M45, M46, M71, M72, M73, M74, M78, M195, M271, M272, TRIG01, EST, OFF

File - wait.h

“Waiting” functions - used to wait till motion finished.

Included in: currently not utilized in any hardware PLCs by default

wait4wait()

Show code

Included in: currently not utilized in any hardware PLCs by default

test_lift_after_cut()

Show code

Included in: currently not utilized in any hardware PLCs by default (code in func_plasma.h utilized instead, code block planned to be removed in the upcoming updates).

File - func_ihc.h

Initial Height Control functions.

Included in: M45, M71, M271, M272

do_plasma_probe()

Show code

Included in: M45, M71, M271, M272

do_move_ignition_height()

Show code

Included in: M45, M71, M271, M272

do_move_pierce_height()

Show code

Included in: M71, M271

do_move_cutting_height()

Show code

Included in: M45, M71, M271

mycnc/mycnc_profiles/plc-includes-x1366p.txt · Last modified: 2021/11/02 17:26 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki