plc:plc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plc:plc [2020/05/19 10:05] – ivan | plc:plc [2020/11/18 12:27] – ivan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{mycnc: | ||
- | |||
- | |||
====== PLC ====== | ====== PLC ====== | ||
- | PLC - programmable logic controller. | + | PLC stands for " |
PLC controller can load and run small binary programs (PLC procedures). PLC procedure should be written in a simplified C-like language, compiled and stored in PLC controller memory to be ready to run. myCNC software includes [[plc: | PLC controller can load and run small binary programs (PLC procedures). PLC procedure should be written in a simplified C-like language, compiled and stored in PLC controller memory to be ready to run. myCNC software includes [[plc: | ||
+ | {{mycnc: | ||
+ | myCNC control has 2 types of built-in PLC systems that named | ||
+ | [[#Hardware PLC]] and [[#Software PLC]]. | ||
- | myCNC control has 2 types of built-in PLC systems that named | + | Note that hardware PLC can be launched from software PLC if necessary, through the use of // |
- | [[#Hardware PLC]] and [[#Software PLC]] | + | |
==== Hardware PLC ==== | ==== Hardware PLC ==== | ||
Line 87: | Line 86: | ||
It is possible to access the state of the output via gvarget commands from within the PLC process: | It is possible to access the state of the output via gvarget commands from within the PLC process: | ||
- | < | + | < |
- | b= gvarget (0x407); // OUT7</ | + | b=gvarget(0x407); |
Starting from 0x400 to represent OUT0, this is a hexadecimal system that is simple to convert to dotted decimals (through the likes of a simple reference site [[https:// | Starting from 0x400 to represent OUT0, this is a hexadecimal system that is simple to convert to dotted decimals (through the likes of a simple reference site [[https:// | ||
Line 162: | Line 161: | ||
* All Software PLC procedures (except " | * All Software PLC procedures (except " | ||
- | * " | + | * " |
Line 170: | Line 169: | ||
| < | | < | ||
| < | | < | ||
+ | | < | ||
+ | |||
+ | Variables used in Software PLC: | ||
+ | |||
+ | ^Variable^Use^Example^Comment^ | ||
+ | | 100020 | Jog the selected axis (100020 through to 100027) | // | ||
+ | | 100040 | Launch a Hardware PLC from within a Software PLC | // | ||
+ | | 100041 | Eparameter to feed into the Hardware PLC being launched using 100040 | // | ||
* [[software_plc_examples|Software PLC Examples]] | * [[software_plc_examples|Software PLC Examples]] |
plc/plc.txt · Last modified: 2022/11/07 16:03 by ivan